ALIYUN::EBS::DiskReplicaPairAddition

ALIYUN::EBS::DiskReplicaPairAddition类型用于块存储添加复制对到一致性复制组。

语法

{
  "Type": "ALIYUN::EBS::DiskReplicaPairAddition",
  "Properties": {
    "ReplicaPairId": String,
    "ReplicaGroupId": String
  }
}

属性

属性名称类型必须允许更新描述约束
ReplicaPairIdString复制对ID。您可以调用DescribeDiskReplicaPairs接口查询已创建的复制对ID。
ReplicaGroupIdString一致性复制组ID。

返回值

Fn::GetAtt

  • ReplicaPairId:复制对ID。
  • ReplicaGroupId:一致性复制组ID。

示例

  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ReplicaPairId": {
          "Type": "String",
          "Description": "The ID of the replication pair. You can call the DescribeDiskReplicaPairs operation to query the IDs of existing replication pairs."
        },
        "ReplicaGroupId": {
          "Type": "String",
          "Description": "The ID of the replication pair-consistent group."
        }
      },
      "Resources": {
        "DiskReplicaPairAddition": {
          "Type": "ALIYUN::EBS::DiskReplicaPairAddition",
          "Properties": {
            "ReplicaPairId": {
              "Ref": "ReplicaPairId"
            },
            "ReplicaGroupId": {
              "Ref": "ReplicaGroupId"
            }
          }
        }
      },
      "Outputs": {
        "ReplicaPairId": {
          "Description": "The ID of the replication pair.",
          "Value": {
            "Fn::GetAtt": [
              "DiskReplicaPairAddition",
              "ReplicaPairId"
            ]
          }
        },
        "ReplicaGroupId": {
          "Description": "The ID of the replication pair-consistent group.",
          "Value": {
            "Fn::GetAtt": [
              "DiskReplicaPairAddition",
              "ReplicaGroupId"
            ]
          }
        }
      }
    }
  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ReplicaGroupId:
        Description: The ID of the replication pair-consistent group.
        Type: String
      ReplicaPairId:
        Description: The ID of the replication pair. You can call the DescribeDiskReplicaPairs
          operation to query the IDs of existing replication pairs.
        Type: String
    Resources:
      DiskReplicaPairAddition:
        Properties:
          ReplicaGroupId:
            Ref: ReplicaGroupId
          ReplicaPairId:
            Ref: ReplicaPairId
        Type: ALIYUN::EBS::DiskReplicaPairAddition
    Outputs:
      ReplicaGroupId:
        Description: The ID of the replication pair-consistent group.
        Value:
          Fn::GetAtt:
          - DiskReplicaPairAddition
          - ReplicaGroupId
      ReplicaPairId:
        Description: The ID of the replication pair.
        Value:
          Fn::GetAtt:
          - DiskReplicaPairAddition
          - ReplicaPairId