Queries the node resource usage and pod resource requests in an AI database cluster.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the AI database cluster. |
cn-hangzhou |
| DBClusterId |
string |
No |
The ID of the AI database cluster. |
pc-2zeu0t5v0p98***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| DBClusterId |
string |
The ID of the AI database cluster. |
pc-2zeu0t5v0p98***** |
| Engine |
string |
The database engine of the cluster. |
AI |
| EngineVersion |
string |
The DPI engine version of the cluster. |
3.0 |
| CreateTime |
string |
The time when the cluster was created, in ISO 8601 UTC format. |
2021-09-13T15:45:27Z |
| NodeItems |
array<object> |
The resource usage information of the nodes in the cluster. |
|
|
array<object> |
|||
| DBNodeId |
string |
The ID of the database node. |
pi-2ze7sztqv1***** |
| VNodeId |
string |
The ID of the virtual node associated with the database node. |
vnode-001 |
| CPU |
string |
The total CPU capacity of the node. |
4 |
| GPU |
string |
The total GPU capacity of the node. |
1 |
| Memory |
string |
The total memory capacity of the node. |
16Gi |
| CPUUsed |
string |
The used CPU capacity of the node. |
2 |
| GPUUsed |
string |
The used GPU capacity of the node. |
0 |
| MemoryUsed |
string |
The used memory capacity of the node. |
8Gi |
| GPUModel |
string |
The GPU model of the node. |
NVIDIA A10 |
| PodItems |
array<object> |
The resource information of the pods on the node. |
|
|
object |
|||
| PodIP |
string |
The IP address of the pod. |
10.0.0.12 |
| Name |
string |
The name of the pod. |
ai-db-pod-001 |
| Status |
string |
The status of the pod. |
Running |
| NameSpace |
string |
The namespace to which the pod belongs. |
default |
| CreateTime |
string |
The time when the pod was created, in ISO 8601 UTC format. |
2021-09-13T15:45:27Z |
| ResourceRequest |
string |
The requested resources of the pod. |
cpu=1,memory=2Gi |
Examples
Success response
JSON format
{
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"DBClusterId": "pc-2zeu0t5v0p98*****",
"Engine": "AI",
"EngineVersion": "3.0",
"CreateTime": "2021-09-13T15:45:27Z",
"NodeItems": [
{
"DBNodeId": "pi-2ze7sztqv1*****",
"VNodeId": "vnode-001",
"CPU": "4",
"GPU": "1",
"Memory": "16Gi",
"CPUUsed": "2",
"GPUUsed": "0",
"MemoryUsed": "8Gi",
"GPUModel": "NVIDIA A10",
"PodItems": [
{
"PodIP": "10.0.0.12",
"Name": "ai-db-pod-001",
"Status": "Running",
"NameSpace": "default",
"CreateTime": "2021-09-13T15:45:27Z",
"ResourceRequest": "cpu=1,memory=2Gi"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.