Obtaining Instance Monitoring Data
Function
This API is used to obtain instance monitoring data.
URI
POST /v1/{project_id}/audit/{instance_id}/system/monitorinfo
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition: Project ID. You can obtain the value by calling the IAM API for querying the project list of a specified IAM user. Constraints N/A Range: The value is subject to the return value of the IAM service interface. The value contains 32 to 64 characters. Default Value: N/A |
instance_id |
Yes |
String |
Definition: Instance ID. The value can be obtained from the ID field of the API for querying the instance list. Constraints N/A Range: The value is subject to the value of the API for querying the instance list. The value contains 32 to 64 characters. Default Value: N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition: User token. You can obtain the token by calling the IAM API used to query the user token. The token is the value of X-Subject-Token in the response header. Constraints N/A Range: The value is subject to the user token query interface of the IAM service. Default Value: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
time |
Yes |
Duration object |
Query time range. time_range takes precedence over start_time/end_time. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
disk_infos |
DiskInfo object |
Disk Usage |
system_infos |
Array of SystemInfo objects |
System information |
traffic_infos |
Array of TrafficInfo objects |
Data Statistics |
Parameter |
Type |
Description |
---|---|---|
data_available |
Double |
Available Data Disk |
data_total |
Double |
Total Data Disk Capacity |
data_use_percent |
Integer |
Data Disk Usage Percentage |
id |
String |
Recording the ID |
swap_available |
Double |
Available Temporary Directory Space |
swap_total |
Double |
Total capacity of the temporary directory |
swap_use_percent |
Integer |
Usage percentage of the temporary directory |
system_available |
Double |
Available System Disks |
system_total |
Double |
System Disk |
system_use_percent |
Integer |
System Disk Usage Percentage |
time |
String |
Time |
Parameter |
Type |
Description |
---|---|---|
cpu_use |
Double |
CPU usage. |
id |
String |
Record ID. |
mem_use |
Double |
Memory usage. |
time |
String |
Time when data is recorded. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Record ID. |
rxmegabytes |
Double |
Number of bytes received per second |
time |
String |
Time |
txmegabytes |
Double |
Number of bytes sent per second |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
details |
Array of DbssErrorDetail objects |
PDP5 authentication exception information |
encoded_authorization_message |
String |
PDP5 authentication exception information |
error_code |
String |
Error Codes |
error_msg |
String |
Error message. |
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Codes |
error_msg |
String |
PDP5 error information |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
details |
Array of DbssErrorDetail objects |
PDP5 authentication exception information |
encoded_authorization_message |
String |
PDP5 authentication exception information |
error_code |
String |
Error Codes |
error_msg |
String |
Error message. |
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Codes |
error_msg |
String |
PDP5 error information |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
details |
Array of DbssErrorDetail objects |
PDP5 authentication exception information |
encoded_authorization_message |
String |
PDP5 authentication exception information |
error_code |
String |
Error Codes |
error_msg |
String |
Error message. |
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Codes |
error_msg |
String |
PDP5 error information |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
details |
Array of DbssErrorDetail objects |
PDP5 authentication exception information |
encoded_authorization_message |
String |
PDP5 authentication exception information |
error_code |
String |
Error Codes |
error_msg |
String |
Error message. |
Example Requests
/v1/{project_id}/audit/{instance_id}/system/monitorinfo
Example Responses
Status code: 200
OK
{ "system_infos" : [ { "id" : null, "time" : "2025-08-18 16:00:00-2025-08-18 16:37:17", "cpu_use" : 1, "mem_use" : 43.39 }, { "id" : null, "time" : "2025-08-18 16:37:17-2025-08-18 17:14:34", "cpu_use" : 1, "mem_use" : 43.38 } ], "traffic_infos" : [ { "id" : null, "time" : "2025-08-18 16:00:00-2025-08-18 16:37:17", "txmegabytes" : 0.0125, "rxmegabytes" : 0.0125 } ], "disk_infos" : { "id" : null, "time" : "2025-08-19 14:50:00", "system_available" : 13.47, "system_total" : 18.59, "system_use_percent" : 28, "data_available" : 955.56, "data_total" : 1006.85, "data_use_percent" : 5, "swap_available" : 0, "swap_total" : 0, "swap_use_percent" : 0 } }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Invalid request parameter. |
401 |
Authorization failed. |
403 |
Unauthorized |
500 |
Server error. |
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