Admiral

Projects

List runs

GET
/v1/projects/{project}/environments/{environment}/runs

Scope: run:read

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Path Parameters

project*string

The project id.

environment*string

The environment id.

Query Parameters

page_size?page_size

Maximum number of runs to return per page. Defaults to 50 when omitted or 0; must not exceed 100.

Formatint32
Range0 <= value <= 100
page_token?page_token

Opaque pagination token from a previous response.

filter?filter

An AIP-160 filter expression. Filterable fields:

  • id: runs by id, for fetching several at once.
  • change_set_id: the runs of one change set.
  • status: the run's status, such as PLANNED.

Example: status = PLANNED

Lengthlength <= 4096
order_by?order_by

Fields to order by, in AIP-132 syntax such as created_at desc. Accepted fields: created_at. Left empty, the list keeps the order stated above. An unknown field is INVALID_ARGUMENT.

Lengthlength <= 256

Response Body

application/json

curl -X GET "https://example.com/v1/projects/string/environments/string/runs"
{  "runs": [    {      "id": "string",      "resource_name": "string",      "environment_id": "string",      "change_set_id": "string",      "status": "STATUS_UNSPECIFIED",      "wait_reason": "WAIT_REASON_UNSPECIFIED",      "plan": {        "jobs": [          {            "job_id": "string",            "components": [              "string"            ],            "agent_id": "string",            "assignment_id": "string",            "status": "JOB_STATUS_UNSPECIFIED",            "wait_reason": "WAIT_REASON_UNSPECIFIED"          }        ],        "plan_digest": "string",        "components": [          {            "component": "string",            "changes": [              {                "resource": {                  "kubernetes": {                    "api_version": "string",                    "kind": "string",                    "namespace": "string",                    "name": "string"                  }                },                "action": "ACTION_UNSPECIFIED",                "diff_digest": "string"              }            ],            "plan_file_digest": "string",            "deferred": {              "pending_inputs": [                {                  "path": {                    "segments": [                      {                        "key": "string"                      }                    ],                    "display": "string"                  },                  "component": "string",                  "output": "string"                }              ]            }          }        ],        "status_reason": "string",        "started_at": "2023-01-15T01:30:15.01Z",        "finished_at": "2023-01-15T01:30:15.01Z"      },      "apply": {        "jobs": [          {            "job_id": "string",            "components": [              "string"            ],            "agent_id": "string",            "assignment_id": "string",            "status": "JOB_STATUS_UNSPECIFIED",            "wait_reason": "WAIT_REASON_UNSPECIFIED"          }        ],        "components": [          {            "component": "string",            "status": "STATUS_UNSPECIFIED",            "status_reason": "string"          }        ],        "planned_components": [          {            "component": "string",            "changes": [              {                "resource": {                  "kubernetes": {                    "api_version": "string",                    "kind": "string",                    "namespace": "string",                    "name": "string"                  }                },                "action": "ACTION_UNSPECIFIED",                "diff_digest": "string"              }            ],            "plan_file_digest": "string",            "deferred": {              "pending_inputs": [                {                  "path": {                    "segments": [                      {                        "key": "string"                      }                    ],                    "display": "string"                  },                  "component": "string",                  "output": "string"                }              ]            }          }        ],        "generation": "string",        "status_reason": "string",        "started_at": "2023-01-15T01:30:15.01Z",        "finished_at": "2023-01-15T01:30:15.01Z",        "applied_by": {          "id": "string",          "display_name": "string",          "email": "string"        },        "accepted_by": {          "id": "string",          "display_name": "string",          "email": "string"        },        "accepted_reason": "string",        "accepted_at": "2023-01-15T01:30:15.01Z"      },      "required_approval": {        "required_approvals": 0,        "groups": [          {            "group_id": "string",            "approvals": 1          }        ]      },      "approvals": [        {          "plan_digest": "string",          "reason": "string",          "approved_by": {            "id": "string",            "display_name": "string",            "email": "string"          },          "approved_at": "2023-01-15T01:30:15.01Z"        }      ],      "finished_at": "2023-01-15T01:30:15.01Z",      "created_by": {        "id": "string",        "display_name": "string",        "email": "string"      },      "created_at": "2023-01-15T01:30:15.01Z",      "revision_id": "string"    }  ],  "next_page_token": "string"}