Aller au contenu principal

Image

L'endpoint /detail/:cluster/image/:imageName de l'API Dashium fournit des informations détaillées sur une image Docker spécifique.

Utilisez cette route pour récupérer les détails de l'image, y compris sa configuration et son historique.

Endpoint

  • Chemin : /detail/:cluster/image/:imageName
  • Méthode : GET
  • Paramètres :
    • :cluster (Identifiant du cluster Docker)
    • :imageName (Nom de l'image Docker)

Réponse

La réponse inclut des informations détaillées sur l'image Docker spécifiée.

Exemple de Réponse

{
"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"
}
]
}

Exemple

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