DATASOURCE::EBS::DiskReplicaGroups is used to query the information about replication pair-consistent groups.
Syntax
{
"Type": "DATASOURCE::EBS::DiskReplicaGroups",
"Properties": {
"Site": String,
"ResourceGroupId": String,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Site | String | No | Yes | The type of the site from which you want to query the information about the replication pairs and the replication pair-consistent groups. | This property is used in scenarios where replication pairs are used across zones.
|
ResourceGroupId | String | No | Yes | The ID of the resource group. | None. |
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values
Fn::GetAtt
ReplicaGroupIds: the IDs of the replication pair-consistent groups.
DiskReplicaGroups: details of the replication pair-consistent groups.
Property | Type | Description | Constraint |
ReplicaGroupIds | List | The IDs of the replication pair-consistent groups. | None. |
DiskReplicaGroups | List | Details of the replication pair-consistent groups. | None. |
Status | String | The status of the replication pair-consistent group. | Valid values:
|
SourceZoneId | String | The zone ID of the primary site. | None. |
PrimaryRegion | String | The initial source region (primary region) of the replication pair-consistent group. | None. |
Description | String | The description of the replication pair-consistent group. | None. |
Tags | Map | Details of the custom tags. | None. |
ReplicaGroupId | String | The ID of the replication pair-consistent group. | None. |
StandbyRegion | String | The initial destination region (secondary region) of the replication pair-consistent group. | None. |
PairIds | String | The IDs of the replication pairs that belong to the replication pair-consistent group. | None. |
LastRecoverPoint | String | The time when the most recent asynchronous replication was complete in the replication pair-consistent group. | The value of this property is a timestamp. Unit: seconds. |
Site | String | The type of the site from which the information about the replication pairs and the replication pair-consistent groups is queried. | Valid values:
|
DestinationRegionId | String | The region ID of the secondary site. | None. |
ResourceGroupId | String | The ID of the resource group. | None. |
DiskReplicaGroupName | String | The name of the replication pair-consistent group. | None. |
StandbyZone | String | The initial destination zone (secondary zone) of the replication pair-consistent group. | None. |
SourceRegionId | String | The region ID of the primary site. | None. |
DestinationZoneId | String | The zone ID of the secondary site. | None. |
PrimaryZone | String | The initial source zone (primary zone) of the replication pair-consistent group. | None. |
RPO | Number | The recovery point objective (RPO) of the replication pair-consistent group. | Unit: seconds. |
PairNumber | Number | The number of replication pairs that belong to the replication pair-consistent group. | None. |
Examples
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Resources:
ExtensionDataSource:
Properties:
Site: production
Type: DATASOURCE::EBS::DiskReplicaGroups
Outputs:
DiskReplicaGroups:
Description: The list of disk replica groups.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DiskReplicaGroups
ReplicaGroupIds:
Description: The list of replica group IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ReplicaGroupIds
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::EBS::DiskReplicaGroups",
"Properties": {
"Site": "production"
}
}
},
"Outputs": {
"ReplicaGroupIds": {
"Description": "The list of replica group IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ReplicaGroupIds"
]
}
},
"DiskReplicaGroups": {
"Description": "The list of disk replica groups.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DiskReplicaGroups"
]
}
}
}
}