最近更新时间:2023-03-30
预付费续费
名称 | 类型 | 是否必选 | 描述 | 示例 |
Action | String | 是 | 系统规定参数取值:RenewResourcePack | RenewResourcePack |
名称 | 类型 | 是否必选 | 描述 | 示例 |
instanceIds | String | 是 | 资源包id | pack-h58kdagr9vsf |
orderCategory | String | 是 | 订单类型 | RENEW |
payType | String | 是 | 计费模式 | YEAR_MONTH |
rentCount | Integer | 是 | 租借数量 | 1 |
rentUnit | String | 是 | 租借单位 | month |
名称 | 类型 | 描述 | 示例值 |
RequestId | String | 请求ID | f79fd132-eae6-455e-8542-c0db5296d69b |
Status | Boolean | 状态 | true |
Auth | Boolean | 用户认证 | true |
Code | String | 状态码 | Success |
Res | List | 文件系统id和订单id | "Ids": [ " pack-h58kdagr9vyv " ], "OrderId": " 1038174323649126788 " |
Message | String | 错误提示信息 (异常返回才有此项) | The specified parameter “Signature” is not valid |
示例 | 示例内容 |
请求示例 | https://api.unicloud.com/openapi/nas?SignatureVersion=2.0&Action=RenewResourcePack&Format=json&SignatureNonce=16343456325226&Version=2020-07-30&AccessKeyId=6oPiV0WMJXhxiT65&SignatureMethod=HMAC-SHA1®ionId=cn-tianjin-yfb&Timestamp=2020-07-30T12%3A00%3A00Z&Signature=UX6gBetVd0xnOCUJh9YN17a9MPo%3D body: { "instanceIds": [ "pack-h58kdagr9vsf" ], "orderCategory":"RENEW", "payType": "YEAR_MONTH", "productCode":"NASBAG", "rentCount": 1, "rentUnit": "month" } |
正常返回示例 | { "Status": true, "Auth": true, "Code": "Success", "Res": { "Ids": [ "pack-h58kdagr9vsf" ], "OrderId": "1038174306469270808" }, "RequestId": "a9c9e70c-5a66-4334-ae68-d03c6b99961a" } |
异常返回示例 | { "Status": false, "Msg": "实例不存在", "Auth": true, "Code": "InstanceNotExist", "RequestId": "4783f915-567a-4e57-a430-22cec026fbd3" } |
HttpCode | 错误码 | 错误信息 | 错误描述 |
400 | InvalidParameter | "The specified parameter”Signature”is not valid." | 签名无效 |