Skip to main content

data_transfer_jobs

Creates, updates, deletes, gets or lists a data_transfer_jobs resource.

Overview

Namedata_transfer_jobs
TypeResource
Idazure.cosmos_db.data_transfer_jobs

Fields

NameDatatypeDescription
idtextThe unique resource identifier of the database account.
nametextThe name of the database account.
accountNametextfield from the properties object
destinationtextfield from the properties object
durationtextfield from the properties object
errortextfield from the properties object
jobNametextfield from the properties object
job_nametextfield from the properties object
last_updated_utc_timetextfield from the properties object
modetextfield from the properties object
processed_counttextfield from the properties object
resourceGroupNametextfield from the properties object
sourcetextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
total_counttextfield from the properties object
typetextThe type of Azure resource.
worker_counttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, jobName, resourceGroupName, subscriptionIdGet a Data Transfer Job.
list_by_database_accountSELECTaccountName, resourceGroupName, subscriptionIdGet a list of Data Transfer jobs.
createINSERTaccountName, jobName, resourceGroupName, subscriptionId, data__propertiesCreates a Data Transfer Job.
cancelEXECaccountName, jobName, resourceGroupName, subscriptionIdCancels a Data Transfer Job.
completeEXECaccountName, jobName, resourceGroupName, subscriptionIdCompletes a Data Transfer Online Job.
pauseEXECaccountName, jobName, resourceGroupName, subscriptionIdPause a Data Transfer Job.
resumeEXECaccountName, jobName, resourceGroupName, subscriptionIdResumes a Data Transfer Job.

SELECT examples

Get a list of Data Transfer jobs.

SELECT
id,
name,
accountName,
destination,
duration,
error,
jobName,
job_name,
last_updated_utc_time,
mode,
processed_count,
resourceGroupName,
source,
status,
subscriptionId,
total_count,
type,
worker_count
FROM azure.cosmos_db.vw_data_transfer_jobs
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new data_transfer_jobs resource.

/*+ create */
INSERT INTO azure.cosmos_db.data_transfer_jobs (
accountName,
jobName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ accountName }}',
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;