operation_status
Creates, updates, deletes, gets or lists an operation_status
resource.
Overview
Name | operation_status |
Type | Resource |
Id | azure.recovery_services.operation_status |
Fields
The following fields are returned by SELECT
queries:
- get
Name | Datatype | Description |
---|---|---|
id | string | It should match what is used to GET the operation result |
name | string | It must match the last segment of the "id" field, and will typically be a GUID / system generated value |
endTime | string (date-time) | End time of the operation |
error | object | Required 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. |
startTime | string (date-time) | Start time of the operation |
status | string | The status of the operation. (InProgress/Success/Failed/Cancelled) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , vaultName , operationId | 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.
Name | Datatype | Description |
---|---|---|
operationId | string | |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
vaultName | string | The name of the recovery services vault. |
SELECT
examples
- get
Gets the operation status for a resource.
SELECT
id,
name,
endTime,
error,
startTime,
status
FROM azure.recovery_services.operation_status
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND vaultName = '{{ vaultName }}' -- required
AND operationId = '{{ operationId }}' -- required
;