replication_policies
Creates, updates, deletes, gets or lists a replication_policies
resource.
Overview
Name | replication_policies |
Type | Resource |
Id | azure.recovery_services_site_recovery.replication_policies |
Fields
- vw_replication_policies
- replication_policies
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource Name |
friendly_name | text | field from the properties object |
location | text | Resource Location |
policyName | text | field from the properties object |
provider_specific_details | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource Type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource Name |
location | string | Resource Location |
properties | object | Protection profile custom data details. |
type | string | Resource Type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | policyName, resourceGroupName, resourceName, subscriptionId | Gets the details of a replication policy. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Lists the replication policies for a vault. |
create | INSERT | policyName, resourceGroupName, resourceName, subscriptionId | The operation to create a replication policy. |
delete | DELETE | policyName, resourceGroupName, resourceName, subscriptionId | The operation to delete a replication policy. |
update | UPDATE | policyName, resourceGroupName, resourceName, subscriptionId | The operation to update a replication policy. |
SELECT
examples
Lists the replication policies for a vault.
- vw_replication_policies
- replication_policies
SELECT
id,
name,
friendly_name,
location,
policyName,
provider_specific_details,
resourceGroupName,
resourceName,
subscriptionId,
type
FROM azure.recovery_services_site_recovery.vw_replication_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.replication_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new replication_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_policies (
policyName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ policyName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: providerSpecificInput
value:
- name: instanceType
value: string
UPDATE
example
Updates a replication_policies
resource.
/*+ update */
UPDATE azure.recovery_services_site_recovery.replication_policies
SET
properties = '{{ properties }}'
WHERE
policyName = '{{ policyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified replication_policies
resource.
/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_policies
WHERE policyName = '{{ policyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';