Lybic Docs

Create Sandbox

Creates a new sandbox.

POST
/api/orgs/{orgId}/sandboxes

Path Parameters

orgIdstring

The organization ID

name?string

The name of the sandbox.

Default"sandbox"
maxLifeSeconds?number

The maximum life time of the sandbox in seconds. Default is 1 hour, max is 1 day.

Default3600
Range1 <= value <= 86400
projectId?string

The project id to use for the sandbox. Use default if not provided.

specId?string

The spec of the sandbox. Use default if not provided.

datacenterId?string

The datacenter id to use for the sandbox. Use default if not provided.

Response Body

{
  "sandbox": {
    "id": "string",
    "name": "string",
    "expiredAt": "2019-08-24T14:15:22Z",
    "expiresAt": "2019-08-24T14:15:22Z",
    "createdAt": "2019-08-24T14:15:22Z",
    "projectId": "string"
  },
  "connectDetails": {
    "gatewayAddresses": [
      {
        "address": "string",
        "port": 0,
        "name": "string",
        "preferredProviders": [
          "CHINA_TELECOM"
        ],
        "gatewayType": "KCP"
      }
    ],
    "certificateHashBase64": "string",
    "endUserToken": "string",
    "roomId": "string"
  }
}