ModifyDBClusterPrimaryZone_云数据库 PolarDB_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.

流控信息

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

授权信息

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

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
polardb:ModifyDBClusterPrimaryZone
Update
dbcluster
acs:polardb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}

请求参数

字段名称字段详情
DBClusterIdstring

集群 ID。展开详情

示例值:pc-**************参考取值来源:
    ModifyDBCluster
    CreateDBCluster
    DescribeDBClusters
    EnableDBClusterServerless
    RestartDBLink
    TransformDBClusterPayType
    DisableDBClusterServerless
ZoneIdstring

新的可用区 ID。展开详情

示例值:cn-hangzhou-g
ZoneTypestring

更换的可用区类型。取值范围如下:展开详情

示例值:Primary枚举值:PrimaryStandby
VSwitchIdstring

目标可用区的虚拟交换机(VSwitch)ID。展开详情

示例值:vsw-**************参考取值来源:
    DescribeVSwitches
IsSwitchOverForDisasterstring

是否回切原可用区,取值范围如下:展开详情

示例值:false
PlannedStartTimestring

开始执行定时(即在目标时间段内执行)变更可用区任务的最早时间。格式为YYYY-MM-DDThh:mm:ssZ(UTC)。展开详情

示例值:2021-01-14T09:00:00Z
PlannedEndTimestring

开始执行目标定时任务的最晚时间。格式为YYYY-MM-DDThh:mm:ssZ(UTC)。展开详情

示例值:2021-01-14T09:30:00Z
FromTimeServiceboolean

立即执行或定时执行更换可用区。取值范围如下:展开详情

示例值:false
VPCIdstring

切换可用区支持指定的专有网络 ID。

示例值:vpc-**********

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:ED12C6FF-3261-4571-AB57-3570F6******

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
ScheduleTaskExist
The specified cluster already has a scheduled task.诊断
400
InvalidZoneId.Malformed
The specified parameter ZoneId is not valid.诊断
400
InvalidZoneId.Same
The specified parameter ZoneId is same with origin zoneId.诊断
403
ActionUnauthorized
The specified action is not available for you.诊断
403
OperationDenied.MutexLock
The operation is not permitted due to the mutex lock.诊断
404
InvalidDBCluster.NotFound
The DBClusterId provided does not exist in our records.诊断
404
InvalidDBClusterId.Malformed
The specified parameter DBClusterId is not valid.诊断
404
InsufficientResource
The specified target zone has insufficient resources.诊断
500
InternalError
The request processing has failed due to some unknown error, exception or failure.诊断

变更历史

变更时间变更内容概要操作
2024-02-27
新增请求参数ZoneType
2023-11-23
变更错误码404
2023-09-12
变更错误码400
新增错误码403
变更错误码404
新增错误码500
2023-07-10
新增请求参数IsSwitchOverForDisaster
2023-06-28
新增请求参数VPCId