v1

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

Restart a single container

Restart a container with a given container ID or name (corresponding IBM Containers command: cf ic restart <container>).

post/containers/{name_or_id}/restart

Path parameters

name_or_idstring required

The unique identifier or name of the container that you want to restart. Run cf ic ps or call the GET /containers/json endpoint to review all containers in your space.

Query parameters

tinteger

The number of seconds to wait before the container is restarted. For example, if you want a container to restart 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 restart of the container has been initiated.