AddDiskReplicaPair_块存储_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

  • 一致性复制组功能支持的地域请参见云盘异步复制概述

  • 只有复制对与一致性复制组的数据复制方向相同(即生产地域、生产可用区、容灾地域、容灾可用区分别相同)时,才能将复制对加入到该一致性复制组中。

  • 要添加的复制对和添加到的一致性复制组均要处于已创建created)或者已停止stopped)状态。

  • 单个一致性复制组中最大支持添加 17 个复制对。

  • 将复制对添加到一致性复制组后,复制对原有的 RPO 会失效,并按照一致性复制组的 RPO 进行运行。

流控信息

请求速率为40/1(s)。更多流控信息,请前往配额中心查看

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
ebs:AddDiskReplicaPair
Create
DiskReplicaGroup
acs:ebs:{#regionId}:{#accountId}:diskreplicagroup/{#ReplicaGroupId}

请求参数

字段名称字段详情
RegionIdstring

一致性复制组所属的地域 ID。

示例值:cn-beijing参考取值来源:
    DescribeRegions
ReplicaGroupIdstring

一致性复制组 ID。

示例值:pg-myreplica****参考取值来源:
    CreateDiskReplicaGroup
    DescribeDiskReplicaGroups
ReplicaPairIdstring

复制对 ID。您可以调用 DescribeDiskReplicaPairs 查询已创建的复制对 ID。

示例值:pair-cn-dsa****参考取值来源:
    CreateDiskReplicaPair
    DescribeDiskReplicaPairs
ClientTokenstring

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。更多信息,请参见如何保证幂等性

示例值:123e4567-e89b-12d3-a456-42665544****

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:C123F94F-4E38-19AE-942A-A8D6F44F****

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
403
OperationDenied
The operation is not allowed.诊断
403
OperationDenied.GroupStatusCannotAddPair
The pair cannot be added in group current status.诊断
403
OperationDenied.InvalidStatus
The operation is not allowed in current status.诊断
403
OperationDenied.PairGroupAZoneConflict
The operation is not allowed due to pair and group having different RegionId or ZoneId.诊断
403
OperationDenied.PairGroupStatusConflict
The operation is not allowed due to pair and group status are not consistent.诊断
403
OperationDenied.PairInAnotherGroup
The operation is not allowed because pair is already in another group.诊断
403
OperationDenied.PairInitializing
The operation is not allowed due to pair initializing, please try again later.诊断
403
OperationDenied.PairStatusCannotAddToGroup
The pair cannot be added in pair current status.诊断
403
OperationDenied.QuotaExceed
The operation is not allowed due to quota exceed.诊断
403
OperationDenied.PairsExceedInGroup
The operation is not allowed due to too much pair in the group.诊断
403
OperationDenied.GroupTotalDiskCapacityLimit
The disk space in the replication pair-consistent group exceeds the upper limit.诊断
403
Forbidden
User is not authorized to operate.诊断
403
Forbidden.Action
User is not authorized to operate this action.诊断
404
NoSuchResource
The specified resource does not exist.诊断
500
InternalError
The request processing has failed due to some unknown error, exception or failure.诊断
504
RequestTimeout
The request is timeout, please try again later.诊断

变更历史

变更时间变更内容概要操作
2023-04-17
变更错误码403

相关示例