replication_protection_container_mappings
Creates, updates, deletes, gets or lists a replication_protection_container_mappings
resource.
Overview
Name | replication_protection_container_mappings |
Type | Resource |
Id | azure.recovery_services_site_recovery.replication_protection_container_mappings |
Fields
- vw_replication_protection_container_mappings
- replication_protection_container_mappings
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource Name |
fabricName | text | field from the properties object |
health | text | field from the properties object |
health_error_details | text | field from the properties object |
location | text | Resource Location |
mappingName | text | field from the properties object |
policy_friendly_name | text | field from the properties object |
policy_id | text | field from the properties object |
protectionContainerName | 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 |
source_fabric_friendly_name | text | field from the properties object |
source_protection_container_friendly_name | text | field from the properties object |
state | text | field from the properties object |
subscriptionId | text | field from the properties object |
target_fabric_friendly_name | text | field from the properties object |
target_protection_container_friendly_name | text | field from the properties object |
target_protection_container_id | 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 container mapping properties. |
type | string | Resource Type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | Gets the details of a protection container mapping. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Lists the protection container mappings in the vault. |
list_by_replication_protection_containers | SELECT | fabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | Lists the protection container mappings for a protection container. |
create | INSERT | fabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | The operation to create a protection container mapping. |
delete | DELETE | fabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | The operation to delete or remove a protection container mapping. |
update | UPDATE | fabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | The operation to update protection container mapping. |
purge | EXEC | fabricName, mappingName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | The operation to purge(force delete) a protection container mapping. |
SELECT
examples
Lists the protection container mappings in the vault.
- vw_replication_protection_container_mappings
- replication_protection_container_mappings
SELECT
id,
name,
fabricName,
health,
health_error_details,
location,
mappingName,
policy_friendly_name,
policy_id,
protectionContainerName,
provider_specific_details,
resourceGroupName,
resourceName,
source_fabric_friendly_name,
source_protection_container_friendly_name,
state,
subscriptionId,
target_fabric_friendly_name,
target_protection_container_friendly_name,
target_protection_container_id,
type
FROM azure.recovery_services_site_recovery.vw_replication_protection_container_mappings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.replication_protection_container_mappings
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_container_mappings
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_protection_container_mappings (
fabricName,
mappingName,
protectionContainerName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ fabricName }}',
'{{ mappingName }}',
'{{ protectionContainerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: targetProtectionContainerId
value: string
- name: policyId
value: string
- name: providerSpecificInput
value:
- name: instanceType
value: string
UPDATE
example
Updates a replication_protection_container_mappings
resource.
/*+ update */
UPDATE azure.recovery_services_site_recovery.replication_protection_container_mappings
SET
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND mappingName = '{{ mappingName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified replication_protection_container_mappings
resource.
/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_protection_container_mappings
WHERE fabricName = '{{ fabricName }}'
AND mappingName = '{{ mappingName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';