protected_item_operation_statuses
Creates, updates, deletes, gets or lists a protected_item_operation_statuses resource.
Overview
| Name | protected_item_operation_statuses |
| Type | Resource |
| Id | azure.recovery_services_backup.protected_item_operation_statuses |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
id | string | ID of the operation. |
name | string | Name of the operation. |
endTime | string (date-time) | Operation end time. Format: ISO-8601. |
error | object | Error information related to this operation. |
objectType | string | This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. Required. Default value is None. |
startTime | string (date-time) | Operation start time. Format: ISO-8601. |
status | string | Operation status. Known values are: "Invalid", "InProgress", "Succeeded", "Failed", and "Canceled". (Invalid, InProgress, Succeeded, Failed, Canceled) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, subscription_id | Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of the operation. Some operations create jobs. This method returns the list of jobs associated with the 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.
| Name | Datatype | Description |
|---|---|---|
container_name | string | The name of the ProtectionContainerResource. Required. |
fabric_name | string | backupFabrics. Required. |
operation_id | string | The name of the ProtectedItemResource. Required. |
protected_item_name | string | The name of the ProtectedItemResource. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
vault_name | string | vaults. Required. |
SELECT examples
- get
Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of the operation. Some operations create jobs. This method returns the list of jobs associated with the operation.
SELECT
id,
name,
endTime,
error,
objectType,
startTime,
status
FROM azure.recovery_services_backup.protected_item_operation_statuses
WHERE vault_name = '{{ vault_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND fabric_name = '{{ fabric_name }}' -- required
AND container_name = '{{ container_name }}' -- required
AND protected_item_name = '{{ protected_item_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;