Skip to main content

protected_item_operation_status

Creates, updates, deletes, gets or lists a protected_item_operation_status resource.

Overview

Nameprotected_item_operation_status
TypeResource
Idazure.recovery_services_backup.protected_item_operation_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the operation.
namestringName of the operation.
endTimestring (date-time)Operation end time. Format: ISO-8601.
errorobjectError information related to this operation.
propertiesobjectAdditional information associated with this operation.
startTimestring (date-time)Operation start time. Format: ISO-8601.
statusstringOperation status.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectvaultName, resourceGroupName, subscriptionId, fabricName, containerName, protectedItemName, operationIdapi-versionFetches 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.

NameDatatypeDescription
containerNamestringContainer name associated with the backup item.
fabricNamestringFabric name associated with the backup item.
operationIdstringOperationID represents the operation whose status needs to be fetched.
protectedItemNamestringBackup item name whose details are to be fetched.
resourceGroupNamestringThe name of the resource group where the recovery services vault is present.
subscriptionIdstringThe subscription Id.
vaultNamestringThe name of the recovery services vault.
api-versionstringClient Api Version.

SELECT examples

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,
properties,
startTime,
status
FROM azure.recovery_services_backup.protected_item_operation_status
WHERE vaultName = '{{ vaultName }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND fabricName = '{{ fabricName }}' -- required
AND containerName = '{{ containerName }}' -- required
AND protectedItemName = '{{ protectedItemName }}' -- required
AND operationId = '{{ operationId }}' -- required
AND api-version = '{{ api-version }}'
;