Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idazure.storage_import_export.jobs

Fields

NameDatatypeDescription
idtextSpecifies the resource identifier of the job.
nametextSpecifies the name of the job.
backup_drive_manifesttextfield from the properties object
cancel_requestedtextfield from the properties object
delivery_packagetextfield from the properties object
diagnostics_pathtextfield from the properties object
drive_listtextfield from the properties object
encryption_keytextfield from the properties object
exporttextfield from the properties object
identitytextSpecifies the identity properties.
incomplete_blob_list_uritextfield from the properties object
jobNametextfield from the properties object
job_typetextfield from the properties object
locationtextSpecifies the Azure location where the job is created.
log_leveltextfield from the properties object
percent_completetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
return_addresstextfield from the properties object
return_packagetextfield from the properties object
return_shippingtextfield from the properties object
shipping_informationtextfield from the properties object
statetextfield from the properties object
storage_account_idtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextSpecifies the tags that are assigned to the job.
typetextSpecifies the type of the job resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobName, resourceGroupName, subscriptionIdGets information about an existing job.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturns all active and completed jobs in a resource group.
list_by_subscriptionSELECTsubscriptionIdReturns all active and completed jobs in a subscription.
createINSERTjobName, resourceGroupName, subscriptionIdCreates a new job or updates an existing job in the specified subscription.
deleteDELETEjobName, resourceGroupName, subscriptionIdDeletes an existing job. Only jobs in the Creating or Completed states can be deleted.
updateUPDATEjobName, resourceGroupName, subscriptionIdUpdates specific properties of a job. You can call this operation to notify the Import/Export service that the hard drives comprising the import or export job have been shipped to the Microsoft data center. It can also be used to cancel an existing job.

SELECT examples

Returns all active and completed jobs in a subscription.

SELECT
id,
name,
backup_drive_manifest,
cancel_requested,
delivery_package,
diagnostics_path,
drive_list,
encryption_key,
export,
identity,
incomplete_blob_list_uri,
jobName,
job_type,
location,
log_level,
percent_complete,
provisioning_state,
resourceGroupName,
return_address,
return_package,
return_shipping,
shipping_information,
state,
storage_account_id,
subscriptionId,
system_data,
tags,
type
FROM azure.storage_import_export.vw_jobs
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.storage_import_export.jobs (
jobName,
resourceGroupName,
subscriptionId,
location,
tags,
properties
)
SELECT
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a jobs resource.

/*+ update */
UPDATE azure.storage_import_export.jobs
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified jobs resource.

/*+ delete */
DELETE FROM azure.storage_import_export.jobs
WHERE jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';