全部产品
Search
文档中心

资源编排:ALIYUN::EBS::DiskReplicaPair

更新时间:Aug 12, 2024

ALIYUN::EBS::DiskReplicaPair类型用于创建一个云盘异步复制关系。

语法

{
  "Type": "ALIYUN::EBS::DiskReplicaPair",
  "Properties": {
    "DiskReplicaPairName": String,
    "Description": String,
    "DestinationDiskId": String,
    "ResourceGroupId": String,
    "Period": Integer,
    "RPO": Integer,
    "DestinationRegionId": String,
    "Bandwidth": Integer,
    "DestinationZoneId": String,
    "PaymentType": String,
    "SourceZoneId": String,
    "Tags": List,
    "PeriodUnit": String,
    "DiskId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DiskReplicaPairName

String

异步复制关系的名称。

Description

String

异步复制关系的描述信息。

DestinationDiskId

String

目标云盘(从盘)的云盘ID。

ResourceGroupId

String

资源组ID 。

Period

Integer

购买资源的时长。

单位为:月。

当创建实例时,取值范围:1、2、3、6、12、24、36、60。

RPO

Integer

复制对的RPO值。

单位:秒。

DestinationRegionId

String

目标云盘(从盘)所属的地域信息。

Bandwidth

Integer

异步复制时使用的带宽。

单位:Kbps。

DestinationZoneId

String

从盘所属的可用区。

PaymentType

String

实例的付费类型。

取值:

  • PrePay:包年包月。

  • PostPay:按量付费。

SourceZoneId

String

源云盘(主盘)所属的可用区ID。

Tags

List

自定义标签。

最多添加20个标签。

更多信息,请参见Tags属性

PeriodUnit

String

预付费时长单位。

取值:Month。

DiskId

String

源云盘(主盘)的云盘ID。

Tags语法

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags属性

属性名称

类型

必须

允许更新

描述

约束

Value

String

标签值。

长度为0~128个字符,不能以aliyunacs:开头,不能包含http://https://

Key

String

标签键。

长度为1~128个字符,不能以aliyunacs:开头,不能包含http://https://

返回值

Fn::GetAtt

  • DiskReplicaPairName:异步复制关系的名称。

  • Description:异步复制关系的描述信息。

  • DestinationDiskId:目标云盘(从盘)的云盘ID。

  • ResourceGroupId:资源组ID。

  • CreateTime:创建时间。

  • ReplicaPairId:异步复制关系ID。

  • RPO:云盘异步复制关系设定的RPO值。

  • DestinationRegionId:目标云盘(从盘)所属的地域ID。

  • Bandwidth:云盘之间异步复制数据时的带宽。

  • DestinationZoneId:目标云盘(从盘)所属的可用区ID。

  • PaymentType:实例的付费类型。

  • SourceZoneId:源云盘(主盘)所属的可用区ID。

  • Tags:自定义标签信息。

  • DiskId:源云盘(主盘)的云盘ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DestinationDiskId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Disk::DiskId
        Description: The ID of the standby disk.
    Resources:
      ExtensionResource:
        Type: ALIYUN::EBS::DiskReplicaPair
        Properties:
          DiskReplicaPairName: TestReplicaPair
          DestinationDiskId:
            Ref: DestinationDiskId
          RPO: 900
          DestinationRegionId: cn-beijing
          Bandwidth: 10240
          DestinationZoneId: cn-beijing-h
          PaymentType: PostPay
          SourceZoneId:
            Fn::Select:
              - '0'
              - Fn::GetAZs:
                  Ref: ALIYUN::Region
          DiskId: d-sa1f82p58p1tdw9g****
    Outputs:
      DiskReplicaPairName:
        Description: The name of the asynchronous replication relationship.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - DiskReplicaPairName
      Description:
        Description: The description of the asynchronous replication relationship.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Description
      DestinationDiskId:
        Description: The ID of the standby disk.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - DestinationDiskId
      ResourceGroupId:
        Description: The ID of the resource group.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - ResourceGroupId
      CreateTime:
        Description: The creation time of the resource.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - CreateTime
      ReplicaPairId:
        Description: The ID of the disk replica pair.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - ReplicaPairId
      RPO:
        Description: The RPO value set by the consistency group in seconds.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - RPO
      DestinationRegionId:
        Description: The ID of the region to which the disaster recovery site belongs.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - DestinationRegionId
      Bandwidth:
        Description: The bandwidth for asynchronous data replication between cloud disks.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Bandwidth
      DestinationZoneId:
        Description: The ID of the zone to which the disaster recovery site belongs.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - DestinationZoneId
      PaymentType:
        Description: The payment type of the resource.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - PaymentType
      SourceZoneId:
        Description: The ID of the zone to which the production site belongs.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - SourceZoneId
      Tags:
        Description: The tags of the disk replica pair.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Tags
      DiskId:
        Description: The ID of the primary disk.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - DiskId
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "DestinationDiskId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Disk::DiskId",
          "Description": "The ID of the standby disk."
        }
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::EBS::DiskReplicaPair",
          "Properties": {
            "DiskReplicaPairName": "TestReplicaPair",
            "DestinationDiskId": {
              "Ref": "DestinationDiskId"
            },
            "RPO": 900,
            "DestinationRegionId": "cn-beijing",
            "Bandwidth": 10240,
            "DestinationZoneId": "cn-beijing-h",
            "PaymentType": "PostPay",
            "SourceZoneId": {
              "Fn::Select": [
                "0",
                {
                  "Fn::GetAZs": {
                    "Ref": "ALIYUN::Region"
                  }
                }
              ]
            },
            "DiskId": "d-sa1f82p58p1tdw9g****"
          }
        }
      },
      "Outputs": {
        "DiskReplicaPairName": {
          "Description": "The name of the asynchronous replication relationship.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DiskReplicaPairName"
            ]
          }
        },
        "Description": {
          "Description": "The description of the asynchronous replication relationship.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Description"
            ]
          }
        },
        "DestinationDiskId": {
          "Description": "The ID of the standby disk.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DestinationDiskId"
            ]
          }
        },
        "ResourceGroupId": {
          "Description": "The ID of the resource group.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "ResourceGroupId"
            ]
          }
        },
        "CreateTime": {
          "Description": "The creation time of the resource.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CreateTime"
            ]
          }
        },
        "ReplicaPairId": {
          "Description": "The ID of the disk replica pair.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "ReplicaPairId"
            ]
          }
        },
        "RPO": {
          "Description": "The RPO value set by the consistency group in seconds.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "RPO"
            ]
          }
        },
        "DestinationRegionId": {
          "Description": "The ID of the region to which the disaster recovery site belongs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DestinationRegionId"
            ]
          }
        },
        "Bandwidth": {
          "Description": "The bandwidth for asynchronous data replication between cloud disks.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Bandwidth"
            ]
          }
        },
        "DestinationZoneId": {
          "Description": "The ID of the zone to which the disaster recovery site belongs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DestinationZoneId"
            ]
          }
        },
        "PaymentType": {
          "Description": "The payment type of the resource.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "PaymentType"
            ]
          }
        },
        "SourceZoneId": {
          "Description": "The ID of the zone to which the production site belongs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "SourceZoneId"
            ]
          }
        },
        "Tags": {
          "Description": "The tags of the disk replica pair.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Tags"
            ]
          }
        },
        "DiskId": {
          "Description": "The ID of the primary disk.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DiskId"
            ]
          }
        }
      }
    }