全部產品
Search
文件中心

:ALIYUN::EBS::DiskReplicaPair

更新時間:Jun 19, 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"
            ]
          }
        }
      }
    }