Container Info
Overview
The "Get Container Info" API endpoint allows you to retrieve detailed information about a specific container. This endpoint requires the container_id
and parent_system_id
to fetch the relevant data and returns a detailed response with the container's information.
Example
- Method:
GET
Endpoint
https://api.gpulab.ai/containerstats
Headers
Header | Description | Type |
---|---|---|
container_id (string) | The unique ID of the container to fetch information for. | string |
api_key (string) | Your API Key for request authorization, must have read access. | string |
Request Body
There is no request body required for this endpoint.
Response
Body (JSON)
{
{
"container_stats": {
"cpu_usage": "3.60%",
"ram_usage": "6.376GiB",
"total_ram": "57GiB",
"ram_percentage": "11.19%",
"status": "running",
"used_volume": "1.00G",
"used_container_disk": "0.1328125G",
"uptime": "0.93 hours",
"created": "0.93 hours",
"total_volume": "100G",
"total_container_disk": "200G",
"used_container_disk_percentage": "0.07%",
"used_volume_percentage": "0.50%"
},
"gpu_stats": [
{
"memory_used": 13,
"total_memory": 24576,
"mem_utilize_percent": "0.05"
}
]
}
}