Skip to main content

backup_operation_statuses

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

Overview

Namebackup_operation_statuses
TypeResource
Idazure.recovery_services_backup.backup_operation_statuses

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.
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)Operation start time. Format: ISO-8601.
statusstringOperation status. Known values are: "Invalid", "InProgress", "Succeeded", "Failed", and "Canceled". (Invalid, InProgress, Succeeded, Failed, Canceled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectvault_name, resource_group_name, operation_id, subscription_idFetches 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 an operation. Some operations create jobs. This method returns the list of jobs when the operation is complete.

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
operation_idstringOperationID which represents the operation. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vault_namestringThe name of the recovery services vault. Required.

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 an operation. Some operations create jobs. This method returns the list of jobs when the operation is complete.

SELECT
id,
name,
endTime,
error,
objectType,
startTime,
status
FROM azure.recovery_services_backup.backup_operation_statuses
WHERE vault_name = '{{ vault_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;