You need to enable JavaScript to run this app.
文档中心
云数据库 PostgreSQL 版

云数据库 PostgreSQL 版

复制全文
下载 pdf
实例管理
ModifyDBInstanceChargeType
复制全文
下载 pdf
ModifyDBInstanceChargeType
调用 ModifyDBInstanceChargeType 接口修改实例计费类型。​
请求类型​
异步请求。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
​
参数​
类型​
是否必选​
示例值​
描述​
InstanceId​
String​
是​
postgres-21a3333b****​
实例 ID。​
ChargeType​
String​
是​
PrePaid​
付费类型。取值为 PrePaid(包年包月)。​
说明​
仅支持将按量计费类型的实例转为包年包月类型的实例。​
AutoRenew​
Boolean​
否​
true​
预付费场景下是否自动续费。​
  • true:自动续费。​
  • false:不自动续费 (默认)。​
PeriodUnit​
String​
否​
Month​
预付费场景下的购买周期。​
  • Month:包月(默认)。​
  • Year:包年。​
Period​
Integer​
否​
1​
预付费场景下的购买时长。默认值:1。取值范围:​
  • 当 PeriodUnit 取值为 Month 时,Period 的取值范围为 1~9。​
  • 当 PeriodUnit 取值为 Year 时,Period 的取值范围为 1~3。​
​
返回参数​
​
参数​
类型​
示例值​
描述​
InstanceId​
String​
postgres-21a3333b****​
实例 ID。​
OrderNO​
String​
Order709899242175681****​
订单 ID。​
​
示例​
请求示例​
​
POST /?Action=ModifyDBInstanceChargeType&Version=2022-01-01 HTTP/1.1​
Content-Type: application/json​
Host: rds-postgresql.cn-beijing.volcengineapi.com​
X-Date: 20231002T101010Z​
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****​
{​
"InstanceId": "postgres-ca7b7019****",​
"ChargeType": "PrePaid",​
"PeriodUnit": "Month",​
"AutoRenew": false​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230802104119518A5717C82679D86E18",​
"Action": "ModifyDBInstanceChargeType",​
"Version": "2022-01-01",​
"Service": "rds_postgresql",​
"Region": "cn-beijing"​
},​
"Result": {​
"InstanceId": "postgres-ca7b7019****",​
"OrderNO": "Order726254891288237****"​
}​
}​
​
最近更新时间:2026.03.31 10:39:11
这个页面对您有帮助吗?
有用
有用
无用
无用