Skip to main content

Image

The /detail/:cluster/image/:imageName endpoint of the Dashium API provides detailed information about a specific Docker image.

Use this route to retrieve image details, including its configuration and history.

Endpoint​

  • Path: /detail/:cluster/image/:imageName
  • Method: GET
  • Parameters:
    • :cluster (Docker cluster identifier)
    • :imageName (Docker image name)

Response​

The response includes detailed information about the specified Docker image.

Response Example​

{
"Id": "IMAGE_ID",
"Created": "2023-12-10T21:23:54.946616826Z",
"Size": 123456789,
"VirtualSize": 987654321,
"Labels": {
"org.opencontainers.image.version": "1.0",
"org.opencontainers.image.ref.name": "your-image:tag"
},
"History": [
{
"Id": "LAYER_ID",
"CreatedBy": "some_command",
"Comment": "Initial commit"
},
{
"Id": "ANOTHER_LAYER_ID",
"CreatedBy": "another_command",
"Comment": "Another commit"
}
]
}

Example​

fetch('http://your-api-url/detail/your-cluster/image/your-image:tag')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));