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