Images
The /list/:cluster/volumes endpoint of the Dashium API allows you to retrieve the list of Docker volumes for a specific cluster.
Use this route to fetch details about all volumes associated with the cluster.
Endpointβ
- Path:
/list/:cluster/volumes - Method:
GET - Parameters:
:cluster(Docker cluster name)
Responseβ
The response of this route includes a complete list of Docker volumes associated with the specified cluster.
Each item in the list contains the following information:
CreatedAt: Date and time when the volume was created.Driver: Driver used to manage the volume (in this example, "local").Labels: Labels associated with the volume.Mountpoint: Mount point of the volume on the host file system.Name: Name of the volume.Options: Volume configuration options (in this example, "null" as no options specified).Scope: Scope of the volume (in this example, "local").
{
"Volumes": [
{
"CreatedAt": "2023-12-12T13:49:36Z",
"Driver": "local",
"Labels": {
"com.docker.volume.anonymous": ""
},
"Mountpoint": "/var/lib/docker/volumes/VOLUME_ID/_data",
"Name": "VOLUME_NAME",
"Options": null,
"Scope": "local"
},
{
// Details of the second volume
},
// ...
]
}
Usage Exampleβ
Make a GET request to this route by replacing :cluster with the name of the Docker cluster you want to query.
curl -X GET https://your-dashium-api.com/list/your-cluster/volumes
Upon success, you will receive a detailed JSON response about the volumes.