API referenceEgress credentials

List Environment Credential Sessions

GET/api/v1/environments/{environment_id}/credential-sessions

Authorization

AuthorizationBearer <token>

A workspace API key (a13n_...)

In: header

Path Parameters

environment_id*Environment Id

Query Parameters

limit?Limit
Range1 <= value <= 100
Default50
cursor?string|null

Header Parameters

X-Workspace-ID?|

The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/environments/string/credential-sessions"
{  "items": [    {      "applied_at": "2019-08-24T14:15:22Z",      "applied_credential_version": 0,      "applied_device_generation": "string",      "applied_session_id": "string",      "binding_name": "string",      "credential_id": "string",      "credential_name": "string",      "credential_state": "active",      "credential_version": 0,      "env": "string",      "environment_id": "string",      "environment_name": "string",      "error_code": "string",      "execution_active": true,      "inject_hosts": [        "string"      ],      "native_session_id": "string",      "retry_at": "2019-08-24T14:15:22Z",      "session_version": 0,      "status": "applied",      "thread_id": "string"    }  ],  "next_cursor": "string",  "summary": {    "applied": 0,    "on_create": 0,    "on_next_use": 0,    "pending": 0,    "retry": 0,    "unknown": 0  }}