Querying Server Offerings
Function
This API is used to query server offerings.
URI
GET /v2/{domain_id}/server-offerings
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_id |
Yes |
String |
Account ID in the URI. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
zone_code |
No |
String |
Area code. |
|
pay_mode |
No |
Array of strings |
Billing mode. |
|
period_num |
No |
Array of integers |
Purchase duration. |
|
limit |
No |
Integer |
The number of records on each page. |
|
marker |
No |
String |
Pagination marker. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
offerings |
Array of ServerOffering objects |
Offering list. |
|
page_info |
PageInfo object |
Pagination information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
The server offering 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. Options: |
|
spec |
ServerSpec object |
Server 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 |
Server flavor ID. |
|
name |
String |
Server flavor name. |
|
server_type |
String |
Server type. Options: COMPUTE: Computing servers NETWORK: Network servers BLOCK_STORAGE: Disk storage servers |
|
flavor_type |
String |
Server flavor type. |
|
performance_type |
String |
ECS flavor categories, for example, general computing, cloud desktop, and gateway. |
|
power |
Integer |
Server power (W). |
|
unit |
Integer |
Height of a device. U spaces. |
|
vcpus |
Integer |
The number of available vCPU cores. |
|
memory |
Integer |
Available memory (GB). |
|
storage_capacity |
Integer |
Available storage capacity (TiB). |
|
cpu_name |
String |
CPU name. |
|
cpu_architecture |
String |
CPU architecture. |
|
Parameter |
Type |
Description |
|---|---|---|
|
cloud_service_type |
String |
Cloud service type. |
|
resource_type |
String |
Resource type. |
|
resource_spec_code |
String |
Resource code. |
Example Request
Querying server offerings
GET https://{ies_endpoint}/v2/{domain_id}/server-offerings
Example Response
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" : "S7",
"server_type" : "COMPUTE",
"flavor_type" : null,
"performance_type" : "normal",
"power" : 10,
"unit" : 3,
"vcpus" : 100,
"memory" : 800,
"storage_capacity" : 3000,
"cpu_name" : "",
"cpu_architecture" : "X86"
},
"product_info" : {
"cloud_service_type" : "hws.service.type.ies",
"resource_type" : "hws.resource.type.iesserver",
"resource_spec_code" : "ies.cbu.testcompute"
},
"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 Code
|
Status Code |
Description |
|---|---|
|
200 |
successful operation |
Error Codes
For details, 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