v1

latestOpenAPI 3.0.0(C) Copyright IBM Corp. 2016 All Rights Reserved.2026-07-144737155.4 KB
Single containers

Stop a single container

Stop a single container with a given container name or ID (corresponding IBM Containers command: cf ic stop <container>).

post/containers/{name_or_id}/stop

Path parameters

name_or_idstring required

The unique identifier or name of the container that you want to stop. Run cf ic ps or call the GET /containers/json endpoint to review the containers in your space that are currently in a running state.

Query parameters

tinteger

The number of seconds to wait before the container is stopped. For example, if you want a container to stop after 10 seconds, enter t=10.

Headers

X-Auth-Tokenstring required

The Bluemix JSON web token that you receive when logging into Bluemix. Run cf oauth-token to retrieve your access token.

X-Auth-Project-Idstring required

The unique ID of your organization space where you want to create or work with your containers. Run cf space <space_name> --guid, where <space_name> is the name of your space, to retrieve your space ID.

Response

No Content. The stop of the container has been initiated.