Skip to main content

iot_dps_resource_operation_results

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

Overview

Nameiot_dps_resource_operation_results
TypeResource
Idazure.iot_hub_device_provisioning.iot_dps_resource_operation_results

Fields

The following fields are returned by SELECT queries:

The status of the long running operation.

NameDatatypeDescription
errorobjectError message containing code, description and details
statusstringcurrent status of a long running operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoperationId, subscriptionId, resourceGroupName, provisioningServiceName, asyncinfoapi-versionGets the status of a long running operation, such as create, update or delete a provisioning service.

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
asyncinfostringAsync header used to poll on the status of the operation, obtained while creating the long running operation.
operationIdstringOperation id corresponding to long running operation. Use this to poll for the status.
provisioningServiceNamestringName of provisioning service that the operation is running on.
resourceGroupNamestringResource group identifier.
subscriptionIdstringThe subscription identifier.
api-versionstringThe version of the API.

SELECT examples

Gets the status of a long running operation, such as create, update or delete a provisioning service.

SELECT
error,
status
FROM azure.iot_hub_device_provisioning.iot_dps_resource_operation_results
WHERE operationId = '{{ operationId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND provisioningServiceName = '{{ provisioningServiceName }}' -- required
AND asyncinfo = '{{ asyncinfo }}' -- required
AND api-version = '{{ api-version }}'
;