Skip to main content

operation_status

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

Overview

Nameoperation_status
TypeResource
Idazure.terraform.operation_status

Fields

The following fields are returned by SELECT queries:

The request has succeeded.

NameDatatypeDescription
idstringThe operation status resource id.
namestringThe operation name.
endTimestring (date-time)The end time of the operation.
errorobjectThe error detail.
percentCompletenumber (double)The progress percentage of the operation, ranges from 0 to 100
propertiesobjectThe Terraform export result
resourceIdstringThe fully qualified resource id of the resource for which the operation was performed.
startTimestring (date-time)The start time of the operation.
statusstringThe status of the operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoperationId, subscriptionIdGet the status of a long running azure asynchronous operation.

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
operationIdstringThe ID of an ongoing async operation.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get the status of a long running azure asynchronous operation.

SELECT
id,
name,
endTime,
error,
percentComplete,
properties,
resourceId,
startTime,
status
FROM azure.terraform.operation_status
WHERE operationId = '{{ operationId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;