job
Creates, updates, deletes, gets or lists a job resource.
Overview
| Name | job |
| Type | Resource |
| Id | azure.recovery_services_data_replication.job |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
activityId | string | Gets or sets the job activity id. |
allowedActions | array | Gets or sets the list of allowed actions on the job. |
customProperties | object | Job model custom properties. Required. |
displayName | string | Gets or sets the friendly display name. |
endTime | string (date-time) | Gets or sets the end time. |
errors | array | Gets or sets the list of errors. |
objectId | string | Gets or sets the affected object Id. |
objectInternalId | string | Gets or sets the affected object internal Id. |
objectInternalName | string | Gets or sets the affected object internal name. |
objectName | string | Gets or sets the affected object name. |
objectType | string | Gets or sets the object type. Known values are: "AvsDiskPool", "FabricAgent", "Fabric", "Policy", "ProtectedItem", "RecoveryPlan", "ReplicationExtension", and "Vault". (AvsDiskPool, FabricAgent, Fabric, Policy, ProtectedItem, RecoveryPlan, ReplicationExtension, Vault) |
provisioningState | string | Gets or sets the provisioning state of the job. Known values are: "Canceled", "Creating", "Deleting", "Deleted", "Failed", "Succeeded", and "Updating". (Canceled, Creating, Deleting, Deleted, Failed, Succeeded, Updating) |
replicationProviderId | string | Gets or sets the replication provider. |
sourceFabricProviderId | string | Gets or sets the source fabric provider. |
startTime | string (date-time) | Gets or sets the start time. |
state | string | Gets or sets the job state. Known values are: "Pending", "Started", "Cancelling", "Succeeded", "Failed", "Cancelled", "CompletedWithInformation", "CompletedWithWarnings", and "CompletedWithErrors". (Pending, Started, Cancelling, Succeeded, Failed, Cancelled, CompletedWithInformation, CompletedWithWarnings, CompletedWithErrors) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetFabricProviderId | string | Gets or sets the target fabric provider. |
tasks | array | Gets or sets the list of tasks. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
activityId | string | Gets or sets the job activity id. |
allowedActions | array | Gets or sets the list of allowed actions on the job. |
customProperties | object | Job model custom properties. Required. |
displayName | string | Gets or sets the friendly display name. |
endTime | string (date-time) | Gets or sets the end time. |
errors | array | Gets or sets the list of errors. |
objectId | string | Gets or sets the affected object Id. |
objectInternalId | string | Gets or sets the affected object internal Id. |
objectInternalName | string | Gets or sets the affected object internal name. |
objectName | string | Gets or sets the affected object name. |
objectType | string | Gets or sets the object type. Known values are: "AvsDiskPool", "FabricAgent", "Fabric", "Policy", "ProtectedItem", "RecoveryPlan", "ReplicationExtension", and "Vault". (AvsDiskPool, FabricAgent, Fabric, Policy, ProtectedItem, RecoveryPlan, ReplicationExtension, Vault) |
provisioningState | string | Gets or sets the provisioning state of the job. Known values are: "Canceled", "Creating", "Deleting", "Deleted", "Failed", "Succeeded", and "Updating". (Canceled, Creating, Deleting, Deleted, Failed, Succeeded, Updating) |
replicationProviderId | string | Gets or sets the replication provider. |
sourceFabricProviderId | string | Gets or sets the source fabric provider. |
startTime | string (date-time) | Gets or sets the start time. |
state | string | Gets or sets the job state. Known values are: "Pending", "Started", "Cancelling", "Succeeded", "Failed", "Cancelled", "CompletedWithInformation", "CompletedWithWarnings", and "CompletedWithErrors". (Pending, Started, Cancelling, Succeeded, Failed, Cancelled, CompletedWithInformation, CompletedWithWarnings, CompletedWithErrors) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
targetFabricProviderId | string | Gets or sets the target fabric provider. |
tasks | array | Gets or sets the list of tasks. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, vault_name, job_name, subscription_id | Gets the details of the job. | |
list | select | resource_group_name, vault_name, subscription_id | odataOptions, continuationToken, pageSize | Gets the list of jobs in the given vault. |
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 |
|---|---|---|
job_name | string | The job name. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
vault_name | string | The vault name. Required. |
continuationToken | string | Continuation token. Default value is None. |
odataOptions | string | OData options. Default value is None. |
pageSize | integer | Page size. Default value is None. |
SELECT examples
- get
- list
Gets the details of the job.
SELECT
id,
name,
activityId,
allowedActions,
customProperties,
displayName,
endTime,
errors,
objectId,
objectInternalId,
objectInternalName,
objectName,
objectType,
provisioningState,
replicationProviderId,
sourceFabricProviderId,
startTime,
state,
systemData,
targetFabricProviderId,
tasks,
type
FROM azure.recovery_services_data_replication.job
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND job_name = '{{ job_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets the list of jobs in the given vault.
SELECT
id,
name,
activityId,
allowedActions,
customProperties,
displayName,
endTime,
errors,
objectId,
objectInternalId,
objectInternalName,
objectName,
objectType,
provisioningState,
replicationProviderId,
sourceFabricProviderId,
startTime,
state,
systemData,
targetFabricProviderId,
tasks,
type
FROM azure.recovery_services_data_replication.job
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND odataOptions = '{{ odataOptions }}'
AND continuationToken = '{{ continuationToken }}'
AND pageSize = '{{ pageSize }}'
;