--- title: "List live components in one environment or across all" canonical: "https://admiral.io/docs/api/projects/EnvironmentAPI_ListEnvironmentComponents" --- # List live components in one environment or across all `GET https://api.admiral.io/v1/projects/{project}/environments/{environment}/components` Scope: `env:read` ### Path parameters - `project` (string, required): The project id. - `environment` (string, required): The environment id. ### Query parameters - `page_size` (integer (int32)): Maximum number of components to return per page. Defaults to 50 when omitted or 0; must not exceed 100. Value 0 to 100. - `page_token` (string): Opaque pagination token from a previous response. - `filter` (string): An AIP-160 filter expression. Filterable fields are `name`, `kind`, `version.component_id` (the registry component, `cmp-`, it runs) and `version.version_id` (the registry version, `ver-`, it runs). Example: `version.component_id = "cmp-7q2k9m4x8p1c" AND version.version_id = "ver-3k9x2m7qpl0a"` Length at most 1024. ### Response 200 Success - `components` (array of EnvironmentComponent): Live components, sorted by environment and then name. - `name` (string): (IDENTIFIER) The component's name, `projects/{project}/environments/{environment}/components/{component}`, such as `projects/payments-api/environments/dev/components/web`. The last segment is the component's name in the environment, the one a change set edit names. Pattern `^projects/[a-z]([a-z0-9-]{0,61}[a-z0-9])?/environments/[a-z]([a-z0-9-]{0,61}[a-z0-9])?/components/[a-z]([a-z0-9-]{0,51}[a-z0-9])?$`. - `environment_id` (string): The uid of the environment it is live in. Pattern `^env-[0-9a-z]+$`. Read-only. - `kind` (Kind): What its version is: Terraform, Helm or manifests. One of `KIND_UNSPECIFIED`, `TERRAFORM`, `HELM`, `MANIFESTS`. - `version` (VersionRef): The registry version it runs. - `component_id` (string): The registry component. Pattern `^cmp-[0-9a-z]+$`. - `version_id` (string): The registry version. Pattern `^ver-[0-9a-z]+$`. - `digest` (string): `sha256:` of the bundle. - `reference` (string): The tag or `sha256:` digest as given, such as `5.5.0` or `latest`. - `last_apply` (LastApply): The apply that last changed this component. - `change_set_id` (string): The change set that was applied. Pattern `^cs-[0-9a-z]+$`. - `revision_id` (string): The change set revision that was applied. Pattern `^rev-[0-9a-z]+$`. - `applied_at` (Timestamp): When the apply finished. - `run_id` (string): The run whose apply this was. Pattern `^run-[0-9a-z]+$`. - `outputs` (array of EnvironmentComponentOutput): Its outputs from the last successful apply. A sensitive output's value is null. - `name` (string) - `value` (Value): Null when sensitive: the value is sealed and never returned. - `sensitive` (boolean) - `applied_engine` (InfraEngineVersion): The Terraform engine version it last applied with. The environment's engine version may not go below it. - `engine` (Engine): enum.defined_only = true One of `TERRAFORM`, `OPENTOFU`. - `version` (string): Exact, e.g. `1.10.6`. Pattern `^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$`. Length at most 64. - `newest_matching` (VersionRef): The newest published version the environment's tracking matches, when it is not the one running. Absent when the environment is pinned or runs the newest match: how far behind the component is. - `component_id` (string): The registry component. Pattern `^cmp-[0-9a-z]+$`. - `version_id` (string): The registry version. Pattern `^ver-[0-9a-z]+$`. - `digest` (string): `sha256:` of the bundle. - `reference` (string): The tag or `sha256:` digest as given, such as `5.5.0` or `latest`. - `unhealthy_reason` (string): Set when the apply that last changed it wrote every object and the component did not become healthy: the pod reasons and last log lines the agent reported. Nothing watches it afterwards, so a component that recovered on its own keeps this until its next apply. Read-only. - `value_paths` (array of ValuePath): The paths of the values the environment sets on it, one per leaf. A list counts as one value. The values themselves come from GetEnvironmentComponentValues. Read-only. - `path_segments` (array of PathSegment): The keys from the root to the value. - `key` (string, required): Length 1 to 256. - `next_page_token` (string): Pagination token for the next page. Empty when there are no more results. - `unreadable_environments` (integer (int32)): Across environments only: how many more environments match that the caller cannot read.