HydraCore
API by router

Debug access

Get Audit Log

GET
/v1/debug-access/audit/{instance_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

instance_id*Instance Id
Formatuuid

Query Parameters

limit?Limit
Default50

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response
entries*array<>
total*Total
Example Request
curl -X GET 'https://example.com/v1/debug-access/audit/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "entries": [    {      "action": "string",      "actor_email": "string",      "actor_id": "04f37679-bfbf-4906-b749-01756515cecf",      "created_at": "2019-08-24T14:15:22Z",      "details": "string",      "grant_id": "a3c1da8e-13c6-4cab-955b-2120b58c2982",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366",      "ip_address": "string"    }  ],  "total": 0}

Grant Debug Access

POST
/v1/debug-access/grant

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
duration_hours*Duration Hours
Range1 <= value <= 168
instance_id*Instance Id
Formatuuid
reason?|null

Response Body

Successful Response

application/json
  1. response
duration_hours*Duration Hours
expires_at*Expires At
Formatdate-time
granted_at*Granted At
Formatdate-time
granted_by*|null
id*Id
Formatuuid
instance_id*Instance Id
Formatuuid
is_active*Is Active
reason*string|null
revoked_at*|null
revoked_by*|null
time_remaining_seconds*integer|null
Example Request
curl -X POST 'https://example.com/v1/debug-access/grant' \  -H 'Content-Type: application/json' \  -d '{  "duration_hours": 1,  "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366"}'
Example Response
{  "duration_hours": 0,  "expires_at": "2019-08-24T14:15:22Z",  "granted_at": "2019-08-24T14:15:22Z",  "granted_by": "a8e4a498-f971-4203-a849-4967743579d4",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366",  "is_active": true,  "reason": "string",  "revoked_at": "2019-08-24T14:15:22Z",  "revoked_by": "609d09bf-be33-45e0-963a-ff4cf608e85c",  "time_remaining_seconds": 0}

Get Duration Presets

GET
/v1/debug-access/presets

Response Body

Successful Response

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://example.com/v1/debug-access/presets'
Example Response200
[  {}]

Revoke Debug Access

POST
/v1/debug-access/revoke/{grant_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

grant_id*Grant Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
reason?|null

Response Body

Successful Response

application/json
  1. response
duration_hours*Duration Hours
expires_at*Expires At
Formatdate-time
granted_at*Granted At
Formatdate-time
granted_by*|null
id*Id
Formatuuid
instance_id*Instance Id
Formatuuid
is_active*Is Active
reason*string|null
revoked_at*|null
revoked_by*|null
time_remaining_seconds*integer|null
Example Request
curl -X POST 'https://example.com/v1/debug-access/revoke/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "duration_hours": 0,  "expires_at": "2019-08-24T14:15:22Z",  "granted_at": "2019-08-24T14:15:22Z",  "granted_by": "a8e4a498-f971-4203-a849-4967743579d4",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366",  "is_active": true,  "reason": "string",  "revoked_at": "2019-08-24T14:15:22Z",  "revoked_by": "609d09bf-be33-45e0-963a-ff4cf608e85c",  "time_remaining_seconds": 0}

Get Debug Access Status

GET
/v1/debug-access/status/{instance_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

instance_id*Instance Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response

Current debug access status for an instance.

active_grant*|null
duration_presets*array<>
has_active_grant*Has Active Grant
hostname*Hostname
instance_id*Instance Id
Formatuuid
recent_grants*array<>
Example Request
curl -X GET 'https://example.com/v1/debug-access/status/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "active_grant": {    "duration_hours": 0,    "expires_at": "2019-08-24T14:15:22Z",    "granted_at": "2019-08-24T14:15:22Z",    "granted_by": "a8e4a498-f971-4203-a849-4967743579d4",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366",    "is_active": true,    "reason": "string",    "revoked_at": "2019-08-24T14:15:22Z",    "revoked_by": "609d09bf-be33-45e0-963a-ff4cf608e85c",    "time_remaining_seconds": 0  },  "duration_presets": [    {}  ],  "has_active_grant": true,  "hostname": "string",  "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366",  "recent_grants": [    {      "duration_hours": 0,      "expires_at": "2019-08-24T14:15:22Z",      "granted_at": "2019-08-24T14:15:22Z",      "granted_by": "a8e4a498-f971-4203-a849-4967743579d4",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366",      "is_active": true,      "reason": "string",      "revoked_at": "2019-08-24T14:15:22Z",      "revoked_by": "609d09bf-be33-45e0-963a-ff4cf608e85c",      "time_remaining_seconds": 0    }  ]}