You need to enable JavaScript to run this app.
导航

ModifyDBInstanceAvailabilityZone

最近更新时间2024.03.25 14:27:38

首次发布时间2024.03.25 13:57:29

调用 ModifyDBInstanceAvailabilityZone 接口迁移节点至同一地域下的其他可用区。

请求类型

异步请求。

请求参数

名称类型是否必选示例值描述
InstanceIdStringpostgres-aa7e1633****实例 ID。

NodeInfo

Array of NodeZoneInfoObject

请参见请求示例

需要迁移的节点和拟迁移到的目的可用区。关于 NodeZoneInfo 的更多信息,请参见 数据结构

说明

  • 仅支持将单可用区实例迁移为多可用区实例。
  • 仅支持迁移备节点或只读节点,也支持同时迁移备节点和只读节点。

返回参数

名称类型示例值描述
InstanceIdStringpostgres-aa7e1633****实例 ID。

OrderId

String

订单 ID。

说明

该字段的返回值为空。

请求示例

POST /?Action=ModifyDBInstanceAvailabilityZone&Version=2022-01-01 HTTP/1.1
Content-Type: application/json
Host: rds.volcengineapi.com
X-Date: 20231002T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****

{
    "InstanceId": "postgres-aa7e1633****",
    "NodeInfo":[
        {
            "NodeId": "postgres-aa7e1633****",
            "ZoneId": "cn-beijing-b"
        },
        {
            "NodeId": "postgres-aa7e1633****-pxcm",
            "ZoneId": "cn-beijing-c"
        },
        {
            "NodeId": "postgres-aa7e1633****-roe6c0",
            "ZoneId": "cn-beijing-b"
        }
    ]
}

返回示例

正常返回示例

{
    "ResponseMetadata": {
        "RequestId": "202401082241020D9550F8209B0738F56A",
        "Action": "ModifyDBInstanceAvailabilityZone",
        "Version": "2022-01-01",
        "Service": "rds_postgresql",
        "Region": "cn-beijing"
    },
    "Result": {
        "InstanceId": "postgres-aa7e1633****",
        "OrderId": ""
    }
}