Querying Sales Status of Cloud Phone Server Flavors
Function
This API is used to query accessible AZs and sales status of cloud phone server flavors in the AZs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
GET /v1/{project_id}/server-model-offerings
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Specifies the project ID. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| marker | No | String | Specifies the pagination marker. The query starts from the next data record specified by marker. |
| limit | No | Integer | Specifies the maximum number of returned records. The value ranges from 1 to 1000, and the default value is 100. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Specifies the user token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| request_id | String | Specifies the unique ID of a request. |
| count | Integer | Specifies the total number of flavors. |
| models | Array of models objects | Specifies the cloud phone server flavor details. |
| page_info | page_info object | Specifies the page marker. |
Example Requests
Querying accessible AZs and sales status of cloud phone server flavors in the AZs
GET https://{CPH Endpoint}/v1/{project_id}/server-model-offerings Example Responses
Status code: 200
OK
{
"request_id" : "5aac6ab146ba76e5b12a3d00a03a9869",
"models" : [ {
"available_zone" : "cn-east-3a",
"model_name" : "physical.rx1.xlarge.cg",
"sell_status" : "available"
} ],
"page_info" : {
"next_marker" : "cGh5c2ljYWwua2cxLjR4bGFyZ2UuY3AuZGVkaWNhdGVkI2NuLXNvdXRod2VzdC0yNDJi"
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
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