RenewResourcePackage - 资源包续费服务
为用户某个资源包实例续费。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
bss:CreateResourcePackage |
update |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
InstanceId |
string |
是 |
用户实例 ID。 |
lskd****sljhsdj |
EffectiveDate |
string |
否 |
资源包生效时间,不填默认立即生效。 日期格式按照 ISO8601 标准表示,并需要使用 UTC 时间。格式为:yyyy-MM-ddTHH:mm:ssZ。 |
2020-02-02T12:00:00Z |
Duration |
integer |
是 |
资源包续费时长。 |
1 |
PricingCycle |
string |
是 |
资源包时长单位,取值:
默认为 Month。 |
Month |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
Code |
string |
状态码。 |
Success |
Message |
string |
错误信息。 |
Successful! |
RequestId |
string |
请求 ID。 |
6000EE23-274B-4E07-A697-FF2E999520A4 |
Success |
boolean |
是否成功。 |
true |
OrderId |
integer |
订单 ID。 |
204322301110333 |
Data |
object |
返回数据。 |
|
OrderId |
integer |
订单 ID。 |
204322560333 |
InstanceId |
string |
实例 ID。 |
OSSBAG-cn-0xl0n****003 |
示例
正常返回示例
JSON
格式
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
"Success": true,
"OrderId": 204322301110333,
"Data": {
"OrderId": 204322560333,
"InstanceId": "OSSBAG-cn-0xl0n****003"
}
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | NotApplicable | This API is not applicable for caller. | |
400 | NotAuthorized | This API is not authorized for caller. | |
400 | MissingParameter | Absent some mandatory parameter for this request. | |
400 | InvalidParameter | This request contain some invalid parameter | |
400 | InvalidOwner | The specified owner doesn't belong to caller. | 用户身份错误 |
400 | DurationInvalid | Parameter duration can only be positive integer. | |
400 | ProductNotFound | Product not found. | |
400 | PackageTypeNotFound | No such resource package type found. | |
400 | SpecificationInvalid | Parameter specification can only be positive integer. | |
400 | IdInvalid | Parameter ownerId is invalid. | |
400 | EffectiveDateInvalid | Parameter effectiveDate is invalid. | |
400 | IdMissing | Paramter ownerId is missing. | |
400 | PackageTypeNotSupported | Package type currently is not supported. | |
500 | InternalError | The request processing has failed due to some unknown error. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。