Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idazure.data_box.jobs

Fields

NameDatatypeDescription
idtextId of the object.
nametextName of the object.
all_devices_losttextfield from the properties object
cancellation_reasontextfield from the properties object
delayed_stagetextfield from the properties object
delivery_infotextfield from the properties object
delivery_typetextfield from the properties object
detailstextfield from the properties object
errortextfield from the properties object
identitytextMsi identity details of the resource
is_cancellabletextfield from the properties object
is_cancellable_without_feetextfield from the properties object
is_deletabletextfield from the properties object
is_prepare_to_ship_enabledtextfield from the properties object
is_shipping_address_editabletextfield from the properties object
jobNametextfield from the properties object
locationtextThe location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on update the request will succeed.
resourceGroupNametextfield from the properties object
reverse_shipping_details_updatetextfield from the properties object
reverse_transport_preference_updatetextfield from the properties object
skutextThe Sku.
start_timetextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextThe list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).
transfer_typetextfield from the properties object
typetextType of the object.

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobName, resourceGroupName, subscriptionIdGets information about the specified job.
listSELECTsubscriptionIdLists all the jobs available under the subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the jobs available under the given resource group.
createINSERTjobName, resourceGroupName, subscriptionId, data__propertiesCreates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.
deleteDELETEjobName, resourceGroupName, subscriptionIdDeletes a job.
updateUPDATEjobName, resourceGroupName, subscriptionIdUpdates the properties of an existing job.
book_shipment_pick_upEXECjobName, resourceGroupName, subscriptionId, data__endTime, data__shipmentLocation, data__startTimeBook shipment pick up.
cancelEXECjobName, resourceGroupName, subscriptionId, data__reasonCancelJob.
mark_devices_shippedEXECjobName, resourceGroupName, subscriptionId, data__deliverToDcPackageDetailsRequest to mark devices for a given job as shipped

SELECT examples

Lists all the jobs available under the subscription.

SELECT
id,
name,
all_devices_lost,
cancellation_reason,
delayed_stage,
delivery_info,
delivery_type,
details,
error,
identity,
is_cancellable,
is_cancellable_without_fee,
is_deletable,
is_prepare_to_ship_enabled,
is_shipping_address_editable,
jobName,
location,
resourceGroupName,
reverse_shipping_details_update,
reverse_transport_preference_update,
sku,
start_time,
status,
subscriptionId,
system_data,
tags,
transfer_type,
type
FROM azure.data_box.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.data_box.jobs (
jobName,
resourceGroupName,
subscriptionId,
data__properties,
location,
tags,
sku,
identity,
properties
)
SELECT
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a jobs resource.

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

DELETE example

Deletes the specified jobs resource.

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