Kill a container
post
/api/v2/containers/{container_id}/kill
Kills a running container, identified with the container_id parameter.
Request
Path Parameters
-
container_id: string
container_id
Security
-
Authorization: apiKey
Type:
apiKey
Response
Supported Media Types
- application/json
200 Response
200 Response
Default Response
Error Payload
Examples
The following example shows how to kill a running container. You perform this task by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.
cURL Command
curl -sk
-X "POST"
-H "Authorization: Bearer b39f09c71c297f1d"
"https://rest_server_url/api/v2/containers/e60b0b93b8ac4578c10a256cf058532a3bcc1144b438f41e86e8a15afc11e81d/kill"
Example of Response Body
{
"task_id": "eed24579-a992-4640-be18-436f4f20f227"
}