预留实例券转出列表
更新时间:2026-06-22
该接口用于查询预留实例券转出列表。
API Explorer
去调试
您可以在 API Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,API Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1POST /v{version}/instance/reserved/transfer/out/list?marker={marker}&maxKeys={maxKeys} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
4
5{
6 "reservedInstanceIds" : [reservedInstanceId],
7 "transferRecordIds" : [transferRecordId],
8 "spec" : spec,
9 "status" : status
10}
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号 |
| marker | String | 否 | Query参数 | 分页标记,首次查询不传或传-1 |
| maxKeys | int | 否 | Query参数 | 每页最大数量,默认1000 |
| reservedInstanceIds | List<String> | 否 | RequestBody参数 | 通过预留实例券id列表过滤 |
| transferRecordIds | List<String> | 否 | RequestBody参数 | 通过预留实例券转移记录id列表过滤 |
| spec | String | 否 | RequestBody参数 | 通过实例规格过滤 |
| status | String | 否 | RequestBody参数 | 通过转移记录状态过滤 |
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| marker | String | 当前页标记 |
| isTruncated | Boolean | 是否还有下一页 |
| nextMarker | String | 下一页标记 |
| maxKeys | int | 每页最大数量 |
| totalCount | int | 预留实例券转移记录总数 |
| transferRecords | List<TransferOutRecord> | 预留实例券转移记录详情 |
错误码
| 错误码 | 错误描述 | HTTP状态码 | 中文解释 |
|---|---|---|---|
| BadRequest | request is invalid | 400 | 请求参数无效 |
请求示例
Plain Text
1POST /v2/instance/reserved/transfer/out/list HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4
5{
6 "reservedInstanceIds": [
7 "r-OQJhJY5Z"
8 ],
9 "transferRecordIds": [
10 "t-EbYIxxgG"
11 ],
12 "spec": "bcc.g3.c1m1",
13 "status": "timeout"
14}
返回示例
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Wed, 03 Dec 2014 06:42:19 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6
7{
8 "totalCount": 1,
9 "transferRecords": [
10 {
11 "transferRecordId": "t-EbYIxxgG",
12 "recipientUserId": "xxxx************************yyyy",
13 "status": "timeout",
14 "reservedInstanceInfo": {
15 "reservedInstanceId": "r-OQJhJY5Z",
16 "reservedInstanceName": "reservedInstance-qGRTVDmq",
17 "scope": "AZ",
18 "zoneName": "cn-bj-a",
19 "spec": "bcc.g3.c1m1",
20 "reservedType": "BCC",
21 "offeringType": "PostPay",
22 "osType": "all",
23 "reservedInstanceStatus": "Active",
24 "instanceCount": 1,
25 "effectiveTime": "2024-03-22T10:07:04Z",
26 "expireTime": "2024-04-22T10:18:26Z",
27 "autoRenew": false,
28 "renewTimeUnit": "",
29 "renewTime": 0,
30 "nextRenewTime": ""
31 },
32 "applicationTime": "2024-03-26T07:30:48Z",
33 "expireTime": "2024-03-26T08:30:48Z",
34 "endTime": "2024-03-26T08:30:48Z"
35 }
36 ]
37}
评价此篇文章
