查询网络设备商品列表 - ListNetworkDeviceOfferings
功能介绍
查询网络设备商品列表。
URI
GET /v2/{domain_id}/network-device-offerings
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
domain_id |
是 |
String |
path中租户的账号ID |
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
zone_code |
否 |
String |
地区编码 |
|
storage_type |
否 |
Array of strings |
存储类型 |
|
pay_mode |
否 |
Array of strings |
付费模式 |
|
period_num |
否 |
Array of integers |
购买时长 |
|
limit |
否 |
Integer |
每页的数量 |
|
marker |
否 |
String |
分页标识 |
请求参数
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
X-Auth-Token |
是 |
String |
用户Token |
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
offerings |
Array of NetworkDeviceOffering objects |
商品列表 |
|
page_info |
PageInfo object |
分页信息 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
id |
String |
销售策略ID |
|
zone_code |
String |
地区编码,表示允许在这个地区购买部署 |
|
scene_code |
String |
销售场景编码 |
|
status |
String |
机柜状态说明: |
|
spec |
NetworkDeviceSpec object |
网络设备规格 |
|
product_info |
ProductInfo object |
商品归属产品属性信息 |
|
sale_cycles |
Array of SaleCycle objects |
销售周期对象 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
id |
String |
网络设备规格ID |
|
name |
String |
网络设备规格名称。 |
|
power |
Integer |
设备功率。单位:w |
|
unit |
Integer |
设备高度。U位数。 |
|
performance_type |
String |
用途 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
cloud_service_type |
String |
云服务类型 |
|
resource_type |
String |
资源类型 |
|
resource_spec_code |
String |
资源编码 |
请求示例
查询网络设备商品列表
GET https://{ies_endpoint}/v2/{domain_id}/network-device-offerings
响应示例
状态码:200
successful operation
{
"offerings" : [ {
"id" : "00000000-0000-000-0000-000000000000",
"zone_code" : "CN",
"scene_code" : "normal",
"status" : "ONSALE",
"spec" : {
"id" : "00000000-0000-000-0000-000000000000",
"name" : "network_device01",
"power" : 1000,
"unit" : 3,
"performance_type" : "normal"
},
"product_info" : {
"cloud_service_type" : "hws.service.type.ies",
"resource_type" : "hws.resource.type.iesserver",
"resource_spec_code" : "ies.cbu.testnetwork"
},
"sale_cycles" : [ {
"pay_mode" : "HALF",
"period_type" : "year",
"period_num" : 3
}, {
"pay_mode" : "FULL",
"period_type" : "year",
"period_num" : 3
} ]
} ],
"page_info" : {
"current_count" : 1
}
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
successful operation |
错误码
请参见错误码。