All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::EBS::DiskReplicaPairAddition

更新時間:Aug 12, 2024

ALIYUN::EBS::DiskReplicaPairAddition is used to add a replication pair to a replication pair-consistent group.

Syntax

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

Properties

PropertyTypeRequiredEditableDescriptionConstraint
ReplicaPairIdStringYesNoThe ID of the replication pair. You can call the DescribeDiskReplicaPairs operation to query the IDs of created replication pairs.
ReplicaGroupIdStringYesNoThe ID of the replication pair-consistent group. None.

Return values

Fn::GetAtt

  • ReplicaPairId: the ID of the replication pair.
  • ReplicaGroupId: the ID of the replication pair-consistent group.

Examples

  • JSON format

    {
      "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 format

    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