v1
latestOpenAPI 3.0.0(C) Copyright IBM Corp. 2016 All Rights Reserved.2026-07-144737155.4 KBList single containers in a space.
This endpoint returns a list of all single containers in a space that are currently in a running state (corresponding IBM Containers command: cf ic ps). To list all single containers independent of their current state, set the all query parameter to true.
Query parameters
By default, the GET /containers/json endpoint returns a list of all single containers in a space that are in a running state. To request a list of all containers independent of their current state, set the all query parameter to true. Allowed values are: all=true, all=True, and all=1.
You can filter your containers by any environment variable key or value that is listed in the Env section of your CLI/ API response when you run the cf ic inspect <container> command, or call the GET /containers/{id}/json endpoint. Your search criteria does not need to be an exact match. It can also be a part of the key or value you are looking for. For example, to filter all containers with an environment variable that contains id in one of their environment variables, use filter=id.
Headers
The Bluemix JSON web token that you receive when logging into Bluemix. Run cf oauth-token to retrieve your access token.
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
OK. A list of single containers that match the search criteria is returned.