DATASOURCE::EBS::DiskReplicaPair

更新时间:2025-02-28 02:44

DATASOURCE::EBS::DiskReplicaPair类型用于查询一个异步复制关系。

语法

{
  "Type": "DATASOURCE::EBS::DiskReplicaPair",
  "Properties": {
    "ReplicaPairId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

ReplicaPairId

String

异步复制关系的 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

取值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • DiskReplicaPairName:复制对的名称。

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

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

  • ResourceGroupId:异步复制对所在的企业资源组 ID。

  • CreateTime:创建时间。该参数以时间戳的形式提供返回值。单位:秒。

  • ReplicaPairId:异步复制关系的 ID。

  • RPO:复制对的 RPO 值。单位:秒。

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

  • Bandwidth:异步复制时使用的带宽。单位:Kbps。

  • DestinationZoneId:从盘所属的可用区。

  • PaymentType:付费类型。

  • SourceZoneId:主盘所属的可用区。

  • Tags:异步复制对的标签。

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

示例

YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ReplicaPairId:
    Type: String
    Description:
      en: The ID of the replication pair.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::EBS::DiskReplicaPair
    Properties:
      ReplicaPairId:
        Ref: ReplicaPairId
Outputs:
  DiskReplicaPairName:
    Description: The name of the asynchronous replication relationship.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DiskReplicaPairName
  Description:
    Description: The description of the replication pair.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  DestinationDiskId:
    Description: The ID of the secondary disk.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DestinationDiskId
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  CreateTime:
    Description: 'The time when the replication pair was created. The value of this parameter is a timestamp. Unit: seconds.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  ReplicaPairId:
    Description: The ID of the replication pair.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ReplicaPairId
  RPO:
    Description: 'The recovery point objective (RPO) of the replication pair. Unit: seconds.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RPO
  DestinationRegionId:
    Description: The ID of the region to which the disaster recovery site belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DestinationRegionId
  Bandwidth:
    Description: The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Bandwidth
  DestinationZoneId:
    Description: The ID of the zone to which the disaster recovery site belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DestinationZoneId
  PaymentType:
    Description: The payment type of the replication pair.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PaymentType
  SourceZoneId:
    Description: The zone ID of the primary disk.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SourceZoneId
  Tags:
    Description: The tags of the replication pair.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
  DiskId:
    Description: The ID of the primary disk.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DiskId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ReplicaPairId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the replication pair."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::EBS::DiskReplicaPair",
      "Properties": {
        "ReplicaPairId": {
          "Ref": "ReplicaPairId"
        }
      }
    }
  },
  "Outputs": {
    "DiskReplicaPairName": {
      "Description": "The name of the asynchronous replication relationship.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DiskReplicaPairName"
        ]
      }
    },
    "Description": {
      "Description": "The description of the replication pair.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "DestinationDiskId": {
      "Description": "The ID of the secondary disk.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DestinationDiskId"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the replication pair was created. The value of this parameter is a timestamp. Unit: seconds.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "ReplicaPairId": {
      "Description": "The ID of the replication pair.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ReplicaPairId"
        ]
      }
    },
    "RPO": {
      "Description": "The recovery point objective (RPO) of the replication pair. Unit: seconds.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RPO"
        ]
      }
    },
    "DestinationRegionId": {
      "Description": "The ID of the region to which the disaster recovery site belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DestinationRegionId"
        ]
      }
    },
    "Bandwidth": {
      "Description": "The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Bandwidth"
        ]
      }
    },
    "DestinationZoneId": {
      "Description": "The ID of the zone to which the disaster recovery site belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DestinationZoneId"
        ]
      }
    },
    "PaymentType": {
      "Description": "The payment type of the replication pair.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PaymentType"
        ]
      }
    },
    "SourceZoneId": {
      "Description": "The zone ID of the primary disk.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SourceZoneId"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of the replication pair.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "DiskId": {
      "Description": "The ID of the primary disk.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DiskId"
        ]
      }
    }
  }
}
                        
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回值
  • 示例
文档反馈