Skip to main content

ingestion

Creates, updates, deletes, gets or lists an ingestion resource.

Overview

Nameingestion
TypeResource
Idazure.planetary_computer_dataplane.ingestion

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringRun id. Required.
creationTimestring (date-time)Creation time. Required.
keepOriginalAssetsbooleanKeep original source assets.
operationobjectOperation. Required.
parentRunIdstringRun id which this run is associated to because it has been retried or rerun.
skipExistingItemsbooleanSkip any item that already exist in the GeoCatalog.
sourceCatalogUrlstringURL of the source catalog.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_runselectcollection_id, ingestion_id, run_id, endpointGet a run of an ingestion.
getselectcollection_id, ingestion_id, endpointGet the definition of an ingestion.
listselectcollection_id, endpoint$top, $skipGet ingestions of a catalog.
get_operationselectoperation_id, endpointGet an operation of a geo-catalog collection.
get_sourceselectid, endpointGet an ingestion source in a geo-catalog.
list_operationsselectendpoint$top, $skip, collectionId, statusGet operations of a geo-catalog collection.
createinsertcollection_id, endpoint, importTypeCreate a new ingestion.
updateupdatecollection_id, ingestion_id, endpoint, importTypeUpdate an existing ingestion.
deletedeletecollection_id, ingestion_id, endpointDelete an ingestion from a catalog. All runs of the ingestion will be deleted. Ingestion must not have any runs in progress or queued.
cancel_operationdeleteoperation_id, endpointCancel a running operation of a geo-catalog collection.
cancel_all_operationsdeleteendpointCancel all pending and running operations across the entire GeoCatalog instance. This is a catalog-wide operation and is not scoped to a specific collection.
list_runsexeccollection_id, ingestion_id, endpoint$top, $skipGet the runs of an ingestion.
create_runexeccollection_id, ingestion_id, endpointCreate a new run of an ingestion.
list_sourcesexecendpoint$top, $skipGet ingestion sources in a geo-catalog.
create_sourceexecendpoint, id, kindCreate a new ingestion source in a geo-catalog.
list_managed_identitiesexecendpointGet all managed identities with access to storage accounts configured for a geo-catalog.
replace_sourceexecid, endpoint, id, kindUpdate an existing ingestion source in a geo-catalog.
delete_sourceexecid, endpointDelete an ingestion source from a geo-catalog.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
collection_idstringCatalog collection id. Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
idstringIngestion source id. Required.
ingestion_idstringIngestion id. Required.
operation_idstringOperation id. Required.
run_idstringRun id. Required.
$skipintegerThe number of items to skip. Default value is None.
$topintegerThe number of items to return. Default value is None.
collectionIdstringOperation id used to filter the results. Default value is None.
statusstringOperation status used to filter the results. Known values are: "Pending", "Running", "Succeeded", "Canceled", "Canceling", and "Failed". Default value is None.

SELECT examples

Get a run of an ingestion.

SELECT
id,
creationTime,
keepOriginalAssets,
operation,
parentRunId,
skipExistingItems,
sourceCatalogUrl
FROM azure.planetary_computer_dataplane.ingestion
WHERE collection_id = '{{ collection_id }}' -- required
AND ingestion_id = '{{ ingestion_id }}' -- required
AND run_id = '{{ run_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Create a new ingestion.

INSERT INTO azure.planetary_computer_dataplane.ingestion (
importType,
displayName,
sourceCatalogUrl,
stacGeoparquetUrl,
skipExistingItems,
keepOriginalAssets,
collection_id,
endpoint
)
SELECT
'{{ importType }}' /* required */,
'{{ displayName }}',
'{{ sourceCatalogUrl }}',
'{{ stacGeoparquetUrl }}',
{{ skipExistingItems }},
{{ keepOriginalAssets }},
'{{ collection_id }}',
'{{ endpoint }}'
RETURNING
id,
creationTime,
displayName,
importType,
keepOriginalAssets,
skipExistingItems,
sourceCatalogUrl,
stacGeoparquetUrl,
status
;

UPDATE examples

Update an existing ingestion.

UPDATE azure.planetary_computer_dataplane.ingestion
SET
importType = '{{ importType }}',
displayName = '{{ displayName }}',
sourceCatalogUrl = '{{ sourceCatalogUrl }}',
stacGeoparquetUrl = '{{ stacGeoparquetUrl }}',
skipExistingItems = {{ skipExistingItems }},
keepOriginalAssets = {{ keepOriginalAssets }}
WHERE
collection_id = '{{ collection_id }}' --required
AND ingestion_id = '{{ ingestion_id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND importType = '{{ importType }}' --required
RETURNING
id,
creationTime,
displayName,
importType,
keepOriginalAssets,
skipExistingItems,
sourceCatalogUrl,
stacGeoparquetUrl,
status;

DELETE examples

Delete an ingestion from a catalog. All runs of the ingestion will be deleted. Ingestion must not have any runs in progress or queued.

DELETE FROM azure.planetary_computer_dataplane.ingestion
WHERE collection_id = '{{ collection_id }}' --required
AND ingestion_id = '{{ ingestion_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Get the runs of an ingestion.

EXEC azure.planetary_computer_dataplane.ingestion.list_runs 
@collection_id='{{ collection_id }}' --required,
@ingestion_id='{{ ingestion_id }}' --required,
@endpoint='{{ endpoint }}' --required,
@$top='{{ $top }}',
@$skip='{{ $skip }}'
;