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 projectjobId
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.min1status
string requiredThe current status of the container.one ofTASK_RUNNING, TASK_STARTING, TASK_STAGING, TASK_KILLING, TASK_KILLED, TASK_FAILED, TASK_FINISHEDupdatedAt
integer requiredThe timestamp the container was last updated.min1runId
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
}
}