Projects
Retrieve an environment
- NOT_FOUND when no environment has that resource name.
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.
Response Body
application/json
curl -X GET "https://example.com/v1/projects/string/environments/string"{ "environment": { "id": "string", "name": "string", "display_name": "string", "resource_name": "string", "description": "string", "project_id": "string", "labels": { "property1": "string", "property2": "string" }, "agents": [ { "agent_id": "string", "id": "string", "kind": "AGENT_KIND_UNSPECIFIED", "settings": { "infra": { "backend": { "type": "string", "config": { "property1": null, "property2": null } }, "engine": { "engine": "ENGINE_UNSPECIFIED", "version": "string" } } } } ], "approval": { "required_approvals": 0, "groups": [ { "group_id": "string", "approvals": 1 } ] }, "generation": "string", "hold": { "change_set_id": "string", "held_at": "2023-01-15T01:30:15.01Z", "run_id": "string" }, "last_apply": { "change_set_id": "string", "revision_id": "string", "applied_at": "2023-01-15T01:30:15.01Z", "run_id": "string" }, "etag": "string", "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z", "updated_at": "2023-01-15T01:30:15.01Z" }}Delete an environment DELETE
- FAILED_PRECONDITION while the environment manages anything: a live component, a running apply, or a hold. Apply a change set that destroys or orphans every component first. - ABORTED when `etag` is set and the environment changed since it was read. Scope: `env:write`
Retrieve a live component GET
- NOT_FOUND when no live component has that resource name. Scope: `env:read`