查询资源开通信息
功能介绍
查询资源开通信息,根据项目ID查询订单详情
URI
GET /v1/{project_id}/period/product/specification
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID |
请求参数
无
响应参数
状态码: 200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
orderInfos |
Array of ProductOrderInfo objects |
订单列表 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
tenantId |
String |
租户ID |
|
periodType |
String |
订购周期类型 |
|
periodNum |
Integer |
订购周期数量 |
|
resourceId |
String |
资源ID |
|
productInfo |
Array of ProductInfoBean objects |
产品信息 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
allResourceNames |
Array of strings |
资源名称列表 |
|
cloudServiceType |
String |
云服务类型 |
|
displayId |
String |
展示ID |
|
productId |
String |
产品ID |
|
productSpecDesc |
String |
产品规格描述 |
|
resourceName |
String |
资源名称 |
|
resourceSize |
Integer |
产品支持的数据库数量,或者支持obs的扫描量 |
|
resourceSizeMeasureId |
Integer |
资源容量度量标识,枚举值举例如下:15:mbps(购买带宽时使用),17:gb(购买云硬盘时使用),14:个/次 |
|
resourceSpecCode |
String |
产品编码 |
|
resourceType |
String |
资源类型 |
|
usageFactor |
String |
已使用系数 |
|
usageMeasureId |
Integer |
已使用容量度量标识 |
|
usageValue |
Double |
已使用值 |
状态码: 400
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
error_code |
String |
错误码 |
|
error_msg |
String |
错误信息 |
请求示例
查询资源开通信息
GET /v1/{project_id}/period/product/specification
响应示例
状态码: 200
请求成功
{
"orderInfos" : [ {
"tenantId" : "xxxxxxxxxxxx",
"periodType" : 2,
"periodNum" : 1,
"resourceId" : "xxxxxxxxxxxx",
"productInfo" : [ {
"cloudServiceType" : "hws.service.type.sdg",
"productId" : "xxxxxxxxxxxx",
"resourceSize" : "xx",
"resourceSizeMeasureId" : "xxxxxxxxxxxx",
"resourceSpecCode" : "base_professional",
"resourceType" : "hws.resource.type.dsc.base"
} ]
} ]
}
状态码: 400
无效请求
{
"error_code" : "dsc.40000011",
"error_msg" : "Invalid parameter"
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
请求成功 |
|
400 |
无效请求 |
错误码
请参见错误码。