调用 ModifyDBInstanceSpec 接口修改实例配置。
异步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | postgres-21a3333b**** | 实例 ID。 |
NodeInfo | Object[] | 否 | 请参见请求示例。 | 实例规格配置。Primary 节点有且只有 1 个,Secondary 节点有且只有 1 个,Read-Only 节点可选 0~10 个。 说明
|
ModifyType | String | 否 | Temporary | 变配方式。取值为:
说明 仅当实例的计费类型为包年包月实例时,支持为该参数取值为 |
RollbackTime | String | 否 | 2023-12-16T03:59:10.000Z | 还原时间,时间格式为 说明
|
StorageType | String | 否 | LocalSSD | 实例存储类型。取固定值 说明
|
StorageSpace | Integer | 否 | 100 | 实例存储空间。取值范围为 [20, 3000],单位为 GB,步长为 10GB。 说明
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
InstanceId | String | postgres-21a3333b**** | 实例 ID。 |
OrderId | String | Order725743560891294**** | 订单 ID。 |
POST /?Action=ModifyDBInstanceSpec&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-ca7b7019****", "StorageType": "LocalSSD", "StorageSpace": 60, "NodeInfo": [{ "NodeId": "postgres-ca7b7019****", "ZoneId": "cn-beijing-a", "NodeSpec": "rds.postgres.1c2g", "NodeType": "Primary" }, { "NodeId": "postgres-ca7b7019****-wmjy", "ZoneId": "cn-beijing-a", "NodeSpec": "rds.postgres.1c2g", "NodeType": "Secondary" }, { "ZoneId": "cn-beijing-a", "NodeSpec": "rds.postgres.1c2g", "NodeType": "ReadOnly", "NodeOperateType": "Create" }] } ``` - 临时升配示例(升级主备节点规格) ```json POST /?Action=ModifyDBInstanceSpec&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-ca7b7019****", "NodeInfo": [{ "NodeId": "postgres-ca7b7019****", "ZoneId": "cn-beijing-a", "NodeSpec": "rds.postgres.2c4g", "NodeType": "Primary", "NodeOperateType":"Modify" }, { "NodeId": "postgres-ca7b7019****-wmjy", "ZoneId": "cn-beijing-a", "NodeSpec": "rds.postgres.2c4g", "NodeType": "Secondary", "NodeOperateType":"Modify }], "ModifyType":"Temporary", "RollbackTime":"2023-12-16T03:59:10.000Z" }
{ "ResponseMetadata": { "RequestId": "202308011557433BA18653C86F63A04B1B", "Action": "ModifyDBInstanceSpec", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": { "InstanceId": "postgres-21a3333b****", "OrderId": "Order725743560891294****" } }