Layerbeat

Replace server metric access grants

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

Replaces the VPS's metrics access list. Send empty arrays to remove all explicit grants.

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.

Request Body

application/json
  1. body
user_ids*array<>
Itemsitems <= 100
api_key_ids*array<>
Itemsitems <= 100

Response Body

The committed replacement grants

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