replication_protection_containers
Creates, updates, deletes, gets or lists a replication_protection_containers
resource.
Overview
Name | replication_protection_containers |
Type | Resource |
Id | azure.recovery_services_site_recovery.replication_protection_containers |
Fields
- vw_replication_protection_containers
- replication_protection_containers
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource Name |
fabricName | text | field from the properties object |
fabric_friendly_name | text | field from the properties object |
fabric_specific_details | text | field from the properties object |
fabric_type | text | field from the properties object |
friendly_name | text | field from the properties object |
location | text | Resource Location |
pairing_status | text | field from the properties object |
protected_item_count | text | field from the properties object |
protectionContainerName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
role | 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 | fabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | Gets the details of a protection container. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Lists the protection containers in a vault. |
list_by_replication_fabrics | SELECT | fabricName, resourceGroupName, resourceName, subscriptionId | Lists the protection containers in the specified fabric. |
create | INSERT | fabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | Operation to create a protection container. |
delete | DELETE | fabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | Operation to remove a protection container. |
discover_protectable_item | EXEC | fabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | The operation to a add a protectable item to a protection container(Add physical server). |
switch_cluster_protection | EXEC | fabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | Operation to switch protection from one container to another. |
switch_protection | EXEC | fabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | Operation to switch protection from one container to another or one replication provider to another. |
SELECT
examples
Lists the protection containers in a vault.
- vw_replication_protection_containers
- replication_protection_containers
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 }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_protection_containers (
fabricName,
protectionContainerName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ fabricName }}',
'{{ protectionContainerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: providerSpecificInput
value:
- - name: instanceType
value: string
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 }}';