Admiral

Projects

List live components in one environment or across all

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

Scope: env: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 components 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 are resource_name, name, kind, version.component_id (the registry component, cmp-, it runs) and version.version_id (the registry version, ver-, it runs).

resource_name takes the full resource name, with - for any parent, and name the short name.

Example: version.component_id = "cmp-7q2k9m4x8p1c" AND version.version_id = "ver-3k9x2m7qpl0a", or resource_name = "projects/-/environments/-/components/web", or name = "web"

Lengthlength <= 1024
order_by?order_by

Fields to order by, in AIP-132 syntax such as created_at desc. Accepted fields: name. 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/components"
{  "components": [    {      "name": "string",      "resource_name": "string",      "environment_id": "string",      "kind": "KIND_UNSPECIFIED",      "version": {        "component_id": "string",        "version_id": "string",        "digest": "string",        "requested": "string"      },      "last_apply": {        "change_set_id": "string",        "revision_id": "string",        "applied_at": "2023-01-15T01:30:15.01Z",        "run_id": "string"      },      "outputs": [        {          "name": "string",          "value": null,          "sensitive": true        }      ],      "settings": {        "assignment_id": "string",        "kind": "AGENT_KIND_UNSPECIFIED",        "infra": {          "backend": {            "type": "string",            "config": {              "property1": null,              "property2": null            }          },          "engine": {            "engine": "ENGINE_UNSPECIFIED",            "version": "string"          }        }      },      "inputs": [        {          "path": {            "segments": [              {                "key": "string"              }            ],            "display": "string"          },          "source": "SOURCE_UNSPECIFIED",          "from": "string"        }      ],      "observed": {        "infra": {          "engine": {            "engine": "ENGINE_UNSPECIFIED",            "version": "string"          }        }      },      "health": {        "status": "STATUS_UNSPECIFIED",        "status_reason": "string",        "observed_at": "2023-01-15T01:30:15.01Z"      }    }  ],  "next_page_token": "string",  "unreadable_environments": 0}