预留实例券转入列表
更新时间:2024-07-02
该接口用于查询预留实例券转入列表。
请求结构
POST /v{version}/instance/reserved/transfer/in/list HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
{
"reservedInstanceIds": [reservedInstanceId],
"transferRecordIds": [transferRecordId],
"spec": spec,
"status": status
}
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号 |
clientToken | String | 否 | Query参数 | 幂等性Token,是一个长度不超过64位的ASCII字符串,详见链接。 |
reservedInstanceIds | List |
否 | requestBody参数 | 通过预留实例券id列表过滤 |
transferRecordIds | List |
否 | requestBody参数 | 通过预留实例券转移记录id列表过滤 |
spec | String | 否 | requestBody参数 | 通过实例规格过滤 |
status | String | 否 | requestBody参数 | 通过转移记录状态过滤 |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
totalCount | int | 预留实例券转移记录总数 |
transferRecords | List<TransferInRecord> | 预留实例券转移记录详情 |
错误码
错误码 | 错误描述 | HTTP状态码 | 中文解释 |
---|---|---|---|
BadRequest | request is invalid | 400 | 请求参数无效 |
请求示例
POST http://bcc.bj.baidubce.com/v2/instance/reserved/transfer/in/list
Host: bcc.bj.baidubce.com
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
{
"reservedInstanceIds": ["r-OQJhJY5Z"],
"transferRecordIds": ["t-EbYIxxgG"],
"spec": "bcc.g3.c1m1",
"status": "timeout"
}
返回示例
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Date: Wed, 08 Jul 2015 03:28:11 GMT
x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
Server: BWS
{
"totalCount": 1,
"transferRecords": [{
"transferRecordId": "t-EbYIxxgG",
"grantorUserId": "xxxx************************yyyy",
"status": "timeout",
"reservedInstanceInfo": {
"reservedInstanceId": "r-OQJhJY5Z",
"reservedInstanceName": "reservedInstance-qGRTVDmq",
"scope": "AZ",
"zoneName": "cn-bj-a",
"spec": "bcc.g3.c1m1",
"reservedType": "BCC",
"offeringType": "PostPay",
"osType": "all",
"reservedInstanceStatus": "Active",
"instanceCount": 1,
"effectiveTime": "2024-03-22T10:07:04Z",
"expireTime": "2024-04-22T10:18:26Z",
"autoRenew": false,
"renewTimeUnit": "",
"renewTime": 0,
"nextRenewTime": ""
},
"applicationTime": "2024-03-26T07:30:48Z",
"expireTime": "2024-03-26T08:30:48Z",
"endTime": "2024-03-26T08:30:48Z"
}]
}