Lybic Docs

从沙箱创建镜像

POST
/api/orgs/{orgId}/machine-images

Path Parameters

orgId*string

组织 ID

Request Body

application/json

sandboxId*string

用于创建镜像的沙箱 ID。

name*string

镜像名称。

Length1 <= length <= 100
description?string

镜像的可选描述。

Lengthlength <= 500

Response Body

application/json

curl -X POST "https://loading/api/orgs/string/machine-images" \  -H "Content-Type: application/json" \  -d '{    "sandboxId": "string",    "name": "string"  }'
{
  "id": "string",
  "name": "string",
  "description": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "shapeName": "string",
  "requiredFeatureFlag": "string",
  "scope": "ORG",
  "status": "CREATING"
}