Skip to main content

operation_status

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

Overview

Nameoperation_status
TypeResource
Idazure.data_protection.operation_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringIt should match what is used to GET the operation result.
namestringIt must match the last segment of the "id" field, and will typically be a GUID / system generated value.
endTimestring (date-time)End time of the operation.
errorobjectRequired if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into the v2.2 Azure REST API guidelines. The full set of optional properties (e.g. inner errors / details) can be found in the "Error Response" section.
objectTypestringThis property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. Required. Default value is None.
startTimestring (date-time)Start time of the operation.
statusstring:vartype status: str

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, operation_id, subscription_idGets the operation status for a resource. Gets the operation status for a resource.

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
locationstringThe name of the Azure region. Required.
operation_idstringRequired.
subscription_idstring

SELECT examples

Gets the operation status for a resource. Gets the operation status for a resource.

SELECT
id,
name,
endTime,
error,
objectType,
startTime,
status
FROM azure.data_protection.operation_status
WHERE location = '{{ location }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;