Layerbeat

Get server metric access grants

GET
/v1/vms/{id}/metrics/access

Lists the members and API keys explicitly allowed to read this VPS's metrics.

Access: User session: workspace admin or owner. API keys aren't supported.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.

Path Parameters

id*string

The resource id.

Header Parameters

X-Org-ID?string

Sessions only: act on this organization (you must be a member). Default: your first organization.

Response Body

Explicit grants for this server

application/json
  1. response
vm_id*string
user_ids*array<string>
Itemsitems <= 100
api_key_ids*array<string>
Itemsitems <= 100
curl -X GET 'https://layerbeat.com/v1/vms/string/metrics/access'
{  "vm_id": "vm_abc123",  "user_ids": [    "usr_abc123"  ],  "api_key_ids": [    "key_abc123"  ]}