Container
The /detail/:cluster/container/:containerName endpoint of the Dashium API allows you to get details about a specific Docker container.
Use this route to access detailed information about a container, including configuration details, state, and much more.
Endpointβ
- Path:
/detail/:cluster/container/:containerName - Method:
GET - Parameters:
:cluster(Docker cluster identifier):containerName(Docker container name)
Responseβ
The response from this route includes details of the specified Docker container.
{
"Id": "ID",
"Created": "2023-12-10T21:23:54.946616826Z",
"Path": "/bin/bash",
"Args": [
"-c",
"tail -f /var/log/dmesg"
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"ExitCode": 1,
"Error": "",
"StartedAt": "2023-12-10T21:23:55.182110222Z",
"FinishedAt": "2023-12-10T21:23:55.183653762Z"
},
// Other container details
}
Id: Container IDCreated: Container creation datePath: Path of the container's entry commandArgs: Arguments of the entry commandState: Current state of the containerImage: Image used by the containerName: Container nameMounts: Container mountsConfig: Container configurationNetworkSettings: Container network settings
And many other pieces of information.
Example Usageβ
Make a GET request to this route replacing :cluster with the Docker cluster identifier and :containerName with the name of the Docker container you want to query.
curl -X GET https://your-dashium-api.com/detail/cluster/1/container/my_container
Upon success, you will receive a JSON response indicating details of the specified container.