replicationv_center
Creates, updates, deletes, gets or lists a replicationv_center
resource.
Overview
Name | replicationv_center |
Type | Resource |
Id | azure.recovery_services_site_recovery.replicationv_center |
Fields
- vw_replicationv_center
- replicationv_center
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource Name |
discovery_status | text | field from the properties object |
fabricName | text | field from the properties object |
fabric_arm_resource_name | text | field from the properties object |
friendly_name | text | field from the properties object |
health_errors | text | field from the properties object |
infrastructure_id | text | field from the properties object |
internal_id | text | field from the properties object |
ip_address | text | field from the properties object |
last_heartbeat | text | field from the properties object |
location | text | Resource Location |
port | text | field from the properties object |
process_server_id | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
run_as_account_id | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource Type |
vcenterName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource Name |
location | string | Resource Location |
properties | object | vCenter properties. |
type | string | Resource Type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fabricName, resourceGroupName, resourceName, subscriptionId, vcenterName | Gets the details of a registered vCenter server(Add vCenter server). |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Lists the vCenter servers registered in the vault. |
list_by_replication_fabrics | SELECT | fabricName, resourceGroupName, resourceName, subscriptionId | Lists the vCenter servers registered in a fabric. |
create | INSERT | fabricName, resourceGroupName, resourceName, subscriptionId, vcenterName | The operation to create a vCenter object.. |
delete | DELETE | fabricName, resourceGroupName, resourceName, subscriptionId, vcenterName | The operation to remove(unregister) a registered vCenter server from the vault. |
update | UPDATE | fabricName, resourceGroupName, resourceName, subscriptionId, vcenterName | The operation to update a registered vCenter. |
SELECT
examples
Lists the vCenter servers registered in the vault.
- vw_replicationv_center
- replicationv_center
SELECT
id,
name,
discovery_status,
fabricName,
fabric_arm_resource_name,
friendly_name,
health_errors,
infrastructure_id,
internal_id,
ip_address,
last_heartbeat,
location,
port,
process_server_id,
resourceGroupName,
resourceName,
run_as_account_id,
subscriptionId,
type,
vcenterName
FROM azure.recovery_services_site_recovery.vw_replicationv_center
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.replicationv_center
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new replicationv_center
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replicationv_center (
fabricName,
resourceGroupName,
resourceName,
subscriptionId,
vcenterName,
properties
)
SELECT
'{{ fabricName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ vcenterName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: friendlyName
value: string
- name: ipAddress
value: string
- name: processServerId
value: string
- name: port
value: string
- name: runAsAccountId
value: string
UPDATE
example
Updates a replicationv_center
resource.
/*+ update */
UPDATE azure.recovery_services_site_recovery.replicationv_center
SET
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vcenterName = '{{ vcenterName }}';
DELETE
example
Deletes the specified replicationv_center
resource.
/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replicationv_center
WHERE fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vcenterName = '{{ vcenterName }}';