Admiral

Projects

Retrieve a live component

GET
/v1/projects/{project}/environments/{environment}/components/{component}
  • NOT_FOUND when no live component 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.

component*string

The component id.

Response Body

application/json

curl -X GET "https://example.com/v1/projects/string/environments/string/components/string"
{  "component": {    "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"    }  }}