Skip to main content

replication_protection_intents

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

Overview

Namereplication_protection_intents
TypeResource
Idazure.recovery_services_site_recovery.replication_protection_intents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
creationTimeUTCstringThe creation time in UTC.
friendlyNamestringThe name.
isActivebooleanA value indicating whether the intent object is active.
jobIdstringThe job Id.
jobStatestringThe job state.
locationstringResource Location.
providerSpecificDetailsobjectThe Replication provider custom settings.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, intent_object_name, subscription_idGets the details of a Replication protection intent item. Gets the details of an ASR replication protection intent.
listselectresource_group_name, resource_name, subscription_idskipToken, takeTokenGets the list of replication protection intent objects. Gets the list of ASR replication protection intent objects in the vault.
createinsertresource_group_name, resource_name, intent_object_name, subscription_idCreate protection intent Resource. The operation to create an ASR replication protection intent item.

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
intent_object_namestringReplication protection intent name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the Vault. Required.
subscription_idstring
skipTokenstringThe pagination token. Default value is None.
takeTokenstringThe page size. Default value is None.

SELECT examples

Gets the details of a Replication protection intent item. Gets the details of an ASR replication protection intent.

SELECT
id,
name,
creationTimeUTC,
friendlyName,
isActive,
jobId,
jobState,
location,
providerSpecificDetails,
systemData,
type
FROM azure.recovery_services_site_recovery.replication_protection_intents
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND intent_object_name = '{{ intent_object_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create protection intent Resource. The operation to create an ASR replication protection intent item.

INSERT INTO azure.recovery_services_site_recovery.replication_protection_intents (
properties,
resource_group_name,
resource_name,
intent_object_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ intent_object_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;