接口描述
根据主订单id查询订单详情
接口约束
无
URI
GET /v1/eop/order-detail
请求参数
query参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
masterOrderId | String | 主订单id | 25e8a9a3c9e04f98aea78cdf26b00cef |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | Integer | 状态码 | 800 | |
message | String | 消息提示 | SUCCESS | |
returnObj | Array | 返回对象 | [] | OrderDtail |
OrderDtail
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
orderItemId | String | 订单项标识 | ||
instanceId | String | 虚拟实例标识 | ||
accountId | String | 账户id | ||
userId | String | 用户id | ||
innerOrderId | String | 内部订单ID | ||
innerOrderItemId | String | 内部订单项ID | ||
productId | String | 产品ID | ||
masterOrderId | String | 主订单ID | ||
orderId | String | 订单ID | ||
masterResourceId | String | 主虚拟资源ID | ||
resourceId | String | 子虚拟资源ID | ||
serviceTag | String | 服务标签 | ||
resourceType | String | 资源类型 | ||
startDate | TIMESTAMP | 开始时间 | ||
expireDate | TIMESTAMP | 过期时间 | ||
createDate | TIMESTAMP | 创建时间 | ||
updateDate | TIMESTAMP | 更新时间 | ||
status | String | 资源状态 | ||
salesEntryId | String | 销售品ID | ||
orderStatus | Integer | 资源使用状态 | ||
itemValue | String | 订单项值 | ||
chargingStatus | String | 计费状态 | ||
resourceConfig | String | 资源配置 | ||
resourceConfigMap | Map | 资源配置,resouceConfig转换成的map对象 | ||
autoToOnDemand | Boolean | ? | ||
master | Boolean | 是否主资源 | ||
doubleItemValue | Double | 订单项值的浮点数形式 |
请求示例
/v1/eop/order-detail?masterOrderId=25e8a9a3c9e04f98aea78cdf26b00cef
请求头header
请求体body
响应示例
{
"message": "SUCCESS",
"returnObj": [
{
"orderItemId": "ce665b31b93a46529561cc8fdad0e3b4",
"instanceId": "dd9f002cb1404293a26cdf37ae1fab5b",
"accountId": "5a101a9e7d2e4df0af71742390db1504",
"userId": "3a412fbf26094e5c93eb4f9efeb5cfa6",
"innerOrderId": "a75714d726224b698bc95631e2445776",
"innerOrderItemId": "1811d673ebd04af68d08a0fcc5097408",
"productId": "2d9338d00b564638a8b89a2b604d0ee1",
"masterOrderId": "25e8a9a3c9e04f98aea78cdf26b00cef",
"orderId": "2560ba0ecf524f938a344afff8413ed5",
"masterResourceId": "dc7af3591eff44dd800ea0cbce23d917",
"resourceId": "dc7af3591eff44dd800ea0cbce23d917",
"serviceTag": "PAAS",
"resourceType": "PGSQL_VM",
"startDate": 1666944262000,
"expireDate": 1672214662000,
"createDate": 1666943662000,
"updateDate": 1666944300000,
"status": 2,
"salesEntryId": "a0782b8992fe436cb497f7ee7c162a2c",
"orderStatus": 1,
"itemValue": "1",
"chargingStatus": 1,
"resourceConfig": "{\"subnetId\":\"7d3fe61d-b279-4c2a-b190-afd9754125b4\",\"dbName\":\"admin\",\"ifAutoRenew\":\"false\",\"edition\":\"standby\",\"billMode\":\"1\",\"zoneType\":\"2\",\"number\":\"1\",\"flavorVersion\":\"2\",\"networkCards\":\"[{\\\"subnetId\\\":\\\"7d3fe61d-b279-4c2a-b190-afd9754125b4\\\",\\\"master\\\":true}]\",\"vendor\":\"ctyun\",\"root\":\"ROOT\",\"vpcId\":\"07a41838-845c-467d-b2e8-e1001a9fc01f\",\"isAuto\":\"0\",\"value\":\"1\",\"prodIsSupportedCredit\":\"PUB_100_02_0001\",\"version\":\"v1\",\"cpuNum\":\"2\",\"db_version\":\"12.0\",\"autoReNewCycleCnt\":\"0\",\"size\":\"1\",\"regionId\":\"100054c0416811e9a6690242ac110002\",\"YPT_PRODUCT_LIMIT\":\"PUB_100_02_0001\",\"dbtype\":\"PostgreSQL\",\"cpumem\":\"2H8\",\"memSize\":\"4\",\"secgroups\":\"aa8ddfb7-f042-4c57-bb25-7df09d5c732a\",\"dbPassword\":\"1msZk8YH DuM=aZT\"}",
"resourceConfigMap": {
"subnetId": "7d3fe61d-b279-4c2a-b190-afd9754125b4",
"dbName": "admin",
"ifAutoRenew": "false",
"edition": "standby",
"billMode": "1",
"zoneType": "2",
"number": "1",
"flavorVersion": "2",
"networkCards": "[{\"subnetId\":\"7d3fe61d-b279-4c2a-b190-afd9754125b4\",\"master\":true}]",
"vendor": "ctyun",
"root": "ROOT",
"vpcId": "07a41838-845c-467d-b2e8-e1001a9fc01f",
"isAuto": "0",
"value": "1",
"prodIsSupportedCredit": "PUB_100_02_0001",
"version": "v1",
"cpuNum": "2",
"db_version": "12.0",
"autoReNewCycleCnt": "0",
"size": "1",
"regionId": "100054c0416811e9a6690242ac110002",
"YPT_PRODUCT_LIMIT": "PUB_100_02_0001",
"dbtype": "PostgreSQL",
"cpumem": "2H8",
"memSize": "4",
"secgroups": "aa8ddfb7-f042-4c57-bb25-7df09d5c732a",
"dbPassword": "1msZk8YH DuM=aZT"
},
"autoToOnDemand": false,
"master": true,
"doubleItemValue": 1.0
},
{
"orderItemId": "4fd4226962d9499183db9eeab37b5418",
"instanceId": "6bd4feca500a4d9285fdf1ec805519bc",
"accountId": "5a101a9e7d2e4df0af71742390db1504",
"userId": "3a412fbf26094e5c93eb4f9efeb5cfa6",
"innerOrderId": "a75714d726224b698bc95631e2445776",
"innerOrderItemId": "242dea15a0ea4d8195667772ae58b528",
"productId": "8ef8700c28474af0b0185c27fdfef4f0",
"masterOrderId": "25e8a9a3c9e04f98aea78cdf26b00cef",
"orderId": "2560ba0ecf524f938a344afff8413ed5",
"masterResourceId": "dc7af3591eff44dd800ea0cbce23d917",
"resourceId": "bd96fbc32fb748058a89a1d7a78078e6",
"serviceTag": "PAAS",
"resourceType": "PGSQL_EBSC",
"startDate": 1666944262000,
"expireDate": 1672214662000,
"createDate": 1666943662000,
"updateDate": 1666944301000,
"status": 2,
"salesEntryId": "5a9868068fe941ea8d81a38c97f36e06",
"orderStatus": 1,
"itemValue": "100",
"chargingStatus": 1,
"resourceConfig": "{\"volumeType\":\"SATA\",\"number\":\"100\",\"size\":\"100\",\"regionId\":\"100054c0416811e9a6690242ac110002\",\"YPT_PRODUCT_LIMIT\":\"PUB_100_02_0001\",\"edition\":\"standby\",\"billMode\":\"1\",\"zoneType\":\"2\",\"prodIsSupportedCredit\":\"PUB_100_02_0001\",\"version\":\"v1\",\"value\":\"100\"}",
"resourceConfigMap": {
"volumeType": "SATA",
"number": "100",
"size": "100",
"regionId": "100054c0416811e9a6690242ac110002",
"YPT_PRODUCT_LIMIT": "PUB_100_02_0001",
"edition": "standby",
"billMode": "1",
"zoneType": "2",
"prodIsSupportedCredit": "PUB_100_02_0001",
"version": "v1",
"value": "100"
},
"autoToOnDemand": false,
"master": false,
"doubleItemValue": 100.0
},
{
"orderItemId": "9f8baa395de8487bb7149945791f3b8d",
"instanceId": "c1948aedb6c646c49b54fce78ece959e",
"accountId": "5a101a9e7d2e4df0af71742390db1504",
"userId": "3a412fbf26094e5c93eb4f9efeb5cfa6",
"innerOrderId": "a75714d726224b698bc95631e2445776",
"innerOrderItemId": "6ccab2bb762349779e890ceb593629d2",
"productId": "bf30ad16db214c70bea8c680249e2354",
"masterOrderId": "25e8a9a3c9e04f98aea78cdf26b00cef",
"orderId": "2560ba0ecf524f938a344afff8413ed5",
"masterResourceId": "dc7af3591eff44dd800ea0cbce23d917",
"resourceId": "467c839865ef49fa8312ba6c43837eb3",
"serviceTag": "PAAS",
"resourceType": "PGSQL_BACKUP",
"startDate": 1666944262000,
"expireDate": 1672214662000,
"createDate": 1666943662000,
"updateDate": 1666944301000,
"status": 2,
"salesEntryId": "1daaeb363cc949929cfd29745a6750ce",
"orderStatus": 1,
"itemValue": "100",
"chargingStatus": 1,
"resourceConfig": "{\"volumeType\":\"SATA\",\"number\":\"100\",\"size\":\"100\",\"regionId\":\"100054c0416811e9a6690242ac110002\",\"YPT_PRODUCT_LIMIT\":\"PUB_100_02_0001\",\"billMode\":\"1\",\"zoneType\":\"2\",\"prodIsSupportedCredit\":\"PUB_100_02_0001\",\"version\":\"v1\",\"value\":\"100\"}",
"resourceConfigMap": {
"volumeType": "SATA",
"number": "100",
"size": "100",
"regionId": "100054c0416811e9a6690242ac110002",
"YPT_PRODUCT_LIMIT": "PUB_100_02_0001",
"billMode": "1",
"zoneType": "2",
"prodIsSupportedCredit": "PUB_100_02_0001",
"version": "v1",
"value": "100"
},
"autoToOnDemand": false,
"master": false,
"doubleItemValue": 100.0
}
],
"statusCode": 800
}
错误码
访问ErrorCodes说明文档查看更多错误码。