Layerbeat

Get a deployment's script

GET
/v1/deployments/{id}/script

Returns the install script a deployment runs: the template's, or the edited one it was deployed with.

Access: API key: vm:read · Session: any member. An edited script may contain secrets, so it is shown only to a signed-in workspace owner or admin, or the person who bought the server (403 otherwise).

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

The script

application/json
  1. response
deployment_id*string
customized*boolean
script*string

The install script (without Layerbeat's header).

curl -X GET 'https://layerbeat.com/v1/deployments/string/script'
{  "deployment_id": "dep_7m2k9q4w8x3z5t6v1b0n2h4ra",  "customized": true,  "script": "domain=$(lb_input domain)\n...\nlb_ok \"https://$domain\""}