Querying Network Devices
Function
This API is used to query network devices.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
ies::listNetworkOfferings
List
-
-
- ies:system:listNetworkOfferings
-
URI
GET /v2/{domain_id}/network-device-offerings
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_id |
Yes |
String |
Account ID in the path. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
zone_code |
No |
String |
Area code. |
|
storage_type |
No |
Array of strings |
Storage type. |
|
pay_mode |
No |
Array of strings |
Billing mode. |
|
period_num |
No |
Array of integers |
Purchase duration. |
|
limit |
No |
Integer |
Page size. |
|
marker |
No |
String |
Pagination identifier. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
offerings |
Array of NetworkDeviceOffering objects |
Offering list. |
|
page_info |
PageInfo object |
Pagination information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Sales policy ID. |
|
zone_code |
String |
Area code, which indicates that devices can be purchased and deployed in this area. |
|
scene_code |
String |
Sales scenario code. |
|
status |
String |
Rack status.
|
|
spec |
NetworkDeviceSpec object |
Network device specifications. |
|
product_info |
ProductInfo object |
Attribute information about the product to which the offering belongs. |
|
sale_cycles |
Array of SaleCycle objects |
Objects of the sales cycle. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Network device specification ID. |
|
name |
String |
Network device specification name. |
|
power |
Integer |
Device power (W). |
|
unit |
Integer |
Device height (U spaces). |
|
performance_type |
String |
Usage. |
|
Parameter |
Type |
Description |
|---|---|---|
|
cloud_service_type |
String |
Cloud service type. |
|
resource_type |
String |
Resource type. |
|
resource_spec_code |
String |
Resource code. |
Example Requests
Example request for querying network devices
GET https://{ies_endpoint}/v2/{domain_id}/network-device-offerings
Example Responses
Status code: 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
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
successful operation |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot