Jobs /
List job containers
Gets a list of containers for the given job.
Required permission
Project > Jobs > Deployment > View Instance Logs
Path parameters
- projectId string requiredID of the project
- jobId string requiredID of the job
Query parameters
- per_page integerThe number of results to display per request. Maximum of 100 results per page.
- page integerThe page number to access.
- cursor stringThe cursor returned from the previous page of results, used to request the next page.
- runId stringIf provided, only returns containers for this specific job run.
Response body
- {object}Response object.
- data {object} requiredResult data.
- containers [array]
- {object}Data about a container.
- name string requiredThe name of the container.
- createdAt integer requiredThe timestamp the container was created.min1
- status string requiredThe current status of the container.one ofTASK_RUNNING, TASK_STARTING, TASK_STAGING, TASK_KILLING, TASK_KILLED, TASK_FAILED, TASK_FINISHED
- nodeName stringBYOC only: the name of the node the container was scheduled to
- nodePoolUserId stringBYOC only: the user facing ID of the node pool that the container was scheduled to
- nodePoolProviderId stringBYOC only: the provider facing ID of the node pool that the container was scheduled to
- host stringBYOC only: the host address of the node the container was scheduled to
- ipAddresses [array]BYOC only: the IP addresses mapping to the container
- string
- updatedAt integer requiredThe timestamp the container was last updated.min1
- runId string requiredThe id of the associated job run.
- pagination {object} requiredData about the endpoint pagination.
- hasNextPage boolean requiredIs there another page of results available?
- cursor stringThe cursor to access the next page of results.
- count number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/projects/{projectId}/jobs/{jobId}/containers
Example response
200 OK
Details about the job's containers.
JSON
{
  "data": {
    "containers": [
      {
        "name": "example-service-78b4d4459d-sbtn8",
        "createdAt": 1611241087,
        "status": "TASK_RUNNING",
        "updatedAt": 1611241087
      }
    ],
    "runId": "00000676-9be8-41dd-b0f7-ba7df935cf27"
  },
  "pagination": {
    "hasNextPage": false,
    "count": 1
  }
}