Pause Container
The endpoint /actions/:cluster/container/:containerName/pause of the Dashium API allows you to pause a Docker container.
Endpoint
- Path :
/actions/:cluster/container/:containerName/pause - Method :
PUT
Paramètres
:cluster(path parameter): The ID of the cluster containing the container.:containerName(path parameter): The name of the container to pause.
Response
The response confirms the successful pause of the Docker container.
Response Example
{
"info": "Container {containerName} paused!"
}
Example
fetch('http://your-api-url/actions/your-cluster/container/your-container/pause', {
method: 'PUT',
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));