Projects
List live components in one environment or across all
Scope: env:read
Authorization
bearerAuth An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
The project id.
The environment id.
Query Parameters
Maximum number of components to return per page. Defaults to 50 when omitted or 0; must not exceed 100.
int320 <= value <= 100Opaque pagination token from a previous response.
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"
length <= 1024Fields 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.
length <= 256Response 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}