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

NameDatatypeDescription
idtextResource Id
nametextResource Name
creation_time_utctextfield from the properties object
friendly_nametextfield from the properties object
intentObjectNametextfield from the properties object
is_activetextfield from the properties object
job_idtextfield from the properties object
job_statetextfield from the properties object
locationtextResource Location
provider_specific_detailstextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTintentObjectName, resourceGroupName, resourceName, subscriptionIdGets the details of an ASR replication protection intent.
listSELECTresourceGroupName, resourceName, subscriptionIdGets the list of ASR replication protection intent objects in the vault.
createINSERTintentObjectName, resourceGroupName, resourceName, subscriptionIdThe operation to create an ASR replication protection intent item.

SELECT examples

Gets the list of ASR replication protection intent objects in the vault.

SELECT
id,
name,
creation_time_utc,
friendly_name,
intentObjectName,
is_active,
job_id,
job_state,
location,
provider_specific_details,
resourceGroupName,
resourceName,
subscriptionId,
type
FROM azure.recovery_services_site_recovery.vw_replication_protection_intents
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new replication_protection_intents resource.

/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_protection_intents (
intentObjectName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ intentObjectName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;