Querying the Capacity Data Ranking of Application, Component, and Group
Function
This API is used to query the ranking of application, component, and group capacity data. Only one of the following is set: application, component, and group ID.
URI
GET /v1/capacity/order
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
application_id |
No |
String |
Definition Application ID. Constraints N/A Range ID of the application whose capacity data ranking needs to be queried. Default value N/A |
|
component_id |
No |
String |
Definition Component ID. Constraints N/A Range ID of the component whose capacity data ranking needs to be queried. Default value N/A |
|
group_id |
No |
String |
Definition Group ID. Constraints N/A Range ID of the group whose capacity data ranking is to be queried. Default value N/A |
|
provider |
Yes |
String |
Definition Cloud service name. Constraints N/A Range The value is a string. The value can be ecs, cce, or rds. Default value N/A |
|
type |
Yes |
String |
Definition Resource type. Constraints N/A Range There are many resource types. Select a resource type based on the actual service. The common resource types are as follows:
Default value N/A |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
Array of data objects |
Definition Capacity ranking data. Range Ranking of the capacity data of applications, components, or groups. |
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Definition Capacity type. Range Capacity type displayed based on the cloud service capacity data.
|
|
rank_list |
rank_list object |
Definition List of top 5 ranking objects. Range List of capacity information about top 5 applications, components, or groups by capacity type. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Definition ID of an application, component, or group. Range IDs of top 5 applications, components, or groups by capacity type. |
|
name |
String |
Definition Name of an application, component, or group. Range Names of the top 5 applications, components, or groups by capacity. |
|
value |
String |
Definition Capacity of an application, component, or group. Range Capacity of the top 5 applications, components, or groups. |
Example Requests
Query the capacity data ranking of application, component, and group.
GET https://{Endpoint}/v1/capacity/order?component_id=673c04d5f77f2c62d81a3b59&type=cloudservers&provider=ecs
Example Responses
Status code: 200
The capacity ranking is queried.
{
"data" : [ {
"type" : "cpu",
"rank_list" : [ {
"id" : "67dccc6bcc8db1018650ce26",
"name" : "Test_cmdb_Intelligent correlation",
"value" : "1187.0"
}, {
"id" : "6784d2cf796f946ff344708a",
"name" : "vvvvvvvvvv",
"value" : "1075.0"
}, {
"id" : "6788bdadbc066c540614692a",
"name" : "dddddddd",
"value" : "525.0"
}, {
"id" : "67dccc20cc8db10186500689",
"name" : "cadacca",
"value" : "4.0"
}, {
"id" : "687204a28e3d61245b9d54fb",
"name" : "group071201",
"value" : "1.0"
} ]
}, {
"type" : "mem",
"rank_list" : [ {
"id" : "67dccc6bcc8db1018650ce26",
"name" : "Test_cmdb_Intelligent correlation",
"value" : "2914304.0"
}, {
"id" : "6784d2cf796f946ff344708a",
"name" : "vvvvvvvvvv",
"value" : "2335744.0"
}, {
"id" : "6788bdadbc066c540614692a",
"name" : "dddddddd",
"value" : "1069056.0"
}, {
"id" : "67dccc20cc8db10186500689",
"name" : "cadacca",
"value" : "16384.0"
}, {
"id" : "687204a28e3d61245b9d54fb",
"name" : "group071201",
"value" : "1024.0"
} ]
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The capacity ranking is queried. |
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