StacClient.CreateItem Method

Definition

Overloads

Name Description
CreateItem(WaitUntil, String, StacItemOrStacItemCollection, CancellationToken)

Create a new STAC item or a set of items in a collection.

CreateItem(WaitUntil, String, RequestContent, RequestContext)

Create a new STAC item or a set of items in a collection.

CreateItem(WaitUntil, String, StacItemOrStacItemCollection, CancellationToken)

Source:
StacClient.cs

Create a new STAC item or a set of items in a collection.

public virtual Azure.Operation CreateItem(Azure.WaitUntil waitUntil, string collectionId, Azure.Analytics.PlanetaryComputer.StacItemOrStacItemCollection body, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateItem : Azure.WaitUntil * string * Azure.Analytics.PlanetaryComputer.StacItemOrStacItemCollection * System.Threading.CancellationToken -> Azure.Operation
override this.CreateItem : Azure.WaitUntil * string * Azure.Analytics.PlanetaryComputer.StacItemOrStacItemCollection * System.Threading.CancellationToken -> Azure.Operation
Public Overridable Function CreateItem (waitUntil As WaitUntil, collectionId As String, body As StacItemOrStacItemCollection, Optional cancellationToken As CancellationToken = Nothing) As Operation

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

collectionId
String

Catalog collection id.

body
StacItemOrStacItemCollection

STAC Item or StacItemCollection Represents a STAC Item or StacItemCollection as defined by the STAC 1.0.0 standard. Item: A GeoJSON Feature that represents a single spatiotemporal asset. It includes metadata such as geometry, datetime, and links to related assets. Example: A satellite image with its metadata. StacItemCollection: A GeoJSON FeatureCollection that contains multiple Items. It is used to group multiple related Items together, such as a collection of satellite images. This union allows the request body to accept either a single Item or a collection of Items.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

collectionId or body is null.

collectionId is an empty string, and was expected to be non-empty.

Applies to

CreateItem(WaitUntil, String, RequestContent, RequestContext)

Source:
StacClient.cs

Create a new STAC item or a set of items in a collection.

public virtual Azure.Operation CreateItem(Azure.WaitUntil waitUntil, string collectionId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateItem : Azure.WaitUntil * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Operation
override this.CreateItem : Azure.WaitUntil * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Operation
Public Overridable Function CreateItem (waitUntil As WaitUntil, collectionId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Operation

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

collectionId
String

Catalog collection id.

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

collectionId or content is null.

collectionId is an empty string, and was expected to be non-empty.

Applies to