Skip to main content

replication_protection_containers

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

Overview

Namereplication_protection_containers
TypeResource
Idazure.recovery_services_site_recovery.replication_protection_containers

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name
fabricNametextfield from the properties object
fabric_friendly_nametextfield from the properties object
fabric_specific_detailstextfield from the properties object
fabric_typetextfield from the properties object
friendly_nametextfield from the properties object
locationtextResource Location
pairing_statustextfield from the properties object
protected_item_counttextfield from the properties object
protectionContainerNametextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
roletextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdGets the details of a protection container.
listSELECTresourceGroupName, resourceName, subscriptionIdLists the protection containers in a vault.
list_by_replication_fabricsSELECTfabricName, resourceGroupName, resourceName, subscriptionIdLists the protection containers in the specified fabric.
createINSERTfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdOperation to create a protection container.
deleteDELETEfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdOperation to remove a protection container.
discover_protectable_itemEXECfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdThe operation to a add a protectable item to a protection container(Add physical server).
switch_cluster_protectionEXECfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdOperation to switch protection from one container to another.
switch_protectionEXECfabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionIdOperation to switch protection from one container to another or one replication provider to another.

SELECT examples

Lists the protection containers in a vault.

SELECT
id,
name,
fabricName,
fabric_friendly_name,
fabric_specific_details,
fabric_type,
friendly_name,
location,
pairing_status,
protected_item_count,
protectionContainerName,
resourceGroupName,
resourceName,
role,
subscriptionId,
type
FROM azure.recovery_services_site_recovery.vw_replication_protection_containers
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_containers resource.

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

DELETE example

Deletes the specified replication_protection_containers resource.

/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_protection_containers
WHERE fabricName = '{{ fabricName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';