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
idstringResource Id
namestringResource Name
locationstringResource Location
propertiesobjectThe custom data.
typestringResource Type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceName, resourceGroupName, subscriptionId, intentObjectNameapi-versionGets the details of an ASR replication protection intent.
listselectresourceName, resourceGroupName, subscriptionIdapi-version, skipToken, takeTokenGets the list of ASR replication protection intent objects in the vault.
createinsertresourceName, resourceGroupName, subscriptionId, intentObjectNameapi-versionThe 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
intentObjectNamestringA name for the replication protection item.
resourceGroupNamestringThe name of the resource group where the recovery services vault is present.
resourceNamestringThe name of the recovery services vault.
subscriptionIdstringThe subscription Id.
api-versionstringClient Api Version.
skipTokenstringThe pagination token.
takeTokenstringThe page size.

SELECT examples

Gets the details of an ASR replication protection intent.

SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.replication_protection_intents
WHERE resourceName = '{{ resourceName }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND intentObjectName = '{{ intentObjectName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

The operation to create an ASR replication protection intent item.

INSERT INTO azure.recovery_services_site_recovery.replication_protection_intents (
data__properties,
resourceName,
resourceGroupName,
subscriptionId,
intentObjectName,
api-version
)
SELECT
'{{ properties }}',
'{{ resourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ intentObjectName }}',
'{{ api-version }}'
RETURNING
id,
name,
location,
properties,
type
;