Querying the Supported Lite Server Scaling Specifications and Capacity Calculation
Function
This API is used to obtain supported scaling specifications of a Lite Server supernode and calculate the capacity. It is used when you need to know the scaling options supported by the Lite Server supernode so that you can select proper specifications when adjusting the supernode resources and evaluate the resource requirements after scaling. Before using this API, ensure that you have logged in to the system and have the permission to query the supernode scaling specifications, and the specified supernode exists. After the query, the API returns the list of supported scaling specifications and capacity calculation results, including the specification ID, CPU, memory, storage, and resource usage after scaling. If you do not have the required permission, the specified supernode does not exist, or no scaling specifications are available in the system, the API returns an error message.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
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, no identity policy-based permission required for calling this API.
URI
GET /v1/{project_id}/dev-servers/hyperinstance/{id}/scale-evaluations
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id |
Yes |
String |
Definition: Lite Server supernode ID. Constraints: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ Range: N/A Default Value: N/A |
|
project_id |
Yes |
String |
Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed. Range: N/A Default Value: N/A |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
evaluations |
Array of ServerScaleEvaluation objects |
Flavor capacity retention. |
Example Requests
GET https://{endpoint}/v1/{project_id}/dev-servers/hyperinstance/{id}/live-scale-up
Example Responses
Status code: 200
Accepted
{
"evaluations" : [ {
"is_sold_out" : false,
"flavor" : "physical.xx.8765",
"resource_flavor" : "modelarts.bm.abc.arm.ei.d"
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Accepted |
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