
Batch
Batch creates a new Cosmos item and returns its respective Cosmos batch response output.
type: "io.kestra.plugin.azure.storage.cosmosdb.Batch"Examples
id: azure_cosmos_container_batch_create_item
namespace: company.team
tasks:
- id: batch_create
type: io.kestra.plugin.azure.storage.cosmosdb.Batch
endpoint: "https://yourcosmosaccount.documents.azure.com"
databaseId: your_data_base_id
containerId: your_container_id
tenantId: "{{ secret('AZURE_TENANT_ID') }}"
clientId: "{{ secret('AZURE_CLIENT_ID') }}"
clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
items:
- id: item_one
key: value
- id: item_two
key: value
Properties
containerId*Requiredstring
container ID
databaseId*Requiredstring
databaseId
items*Requiredarray
partitionKeyValue*Requiredstring
The partition key for all items in the batch.
tenantId*Requiredstring
Tenant ID
clientIdstring
Client ID
Client ID of the Azure service principal. If you don't have a service principal, refer to create a service principal with Azure CLI.
clientSecretstring
Client Secret
Service principal client secret. The tenantId, clientId and clientSecret of the service principal are required for this credential to acquire an access token.
connectionStringstring
connectionString
consistencyLevelstring
SessionSTRONGBOUNDED_STALENESSSESSIONEVENTUALCONSISTENT_PREFIXconsistencyLevel
Represents the consistency levels supported for Azure Cosmos DB client operations in the Azure Cosmos DB service.
contentResponseOnWriteEnabledbooleanstring
truecontentResponseOnWriteEnabled
Sets the boolean to only return the headers and status code in Cosmos DB response in case of Create, Update and Delete operations on CosmosItem. If set to false (which is by default), service doesn't return payload in the response. It reduces networking and CPU load by not sending the payload back over the network and serializing it on the client.
endpointstring
endpoint
pemCertificatestring
PEM Certificate
Your stored PEM certificate.
The tenantId, clientId and clientCertificate of the service principal are required for this credential to acquire an access token.
Outputs
activityIdstring
diagnostics
com.azure.cosmos.CosmosDiagnostics
com.azure.cosmos.implementation.FeedResponseDiagnostics
com.azure.cosmos.implementation.ClientSideRequestStatistics
date-timedate-timecom.azure.cosmos.implementation.query.QueryInfo-QueryPlanDiagnosticsContext
date-timedate-timecom.azure.cosmos.implementation.QueryMetrics
durationdurationdurationdurationdurationstring
durationerrorMessagestring
requestChargenumber
responseHeadersobject
responseLengthinteger
resultsarray
com.azure.cosmos.models.CosmosBatchOperationResult
com.azure.cosmos.CosmosItemSerializer
retryAfterDurationstring
duration