Environment REST API
caution
The Environment API is in the alpha stage which is subjected to incompatible changes in future releases.
Create Environmentβ
POST /api/v1/environment
Parametersβ
Put EnvironmentSpec in request body.
EnvironmentSpecβ
Field Name | Type | Description | Required |
---|---|---|---|
name | String | Environment name. | o |
dockerImage | String | Docker image name. | o |
kernelSpec | KernelSpec | Environment spec. | o |
description | String | Description of environment. | x |
KernelSpecβ
Field Name | Type | Description | Required |
---|---|---|---|
name | String | Kernel name. | o |
channels | List<String> | Names of the channels. | o |
condaDependencies | List<String> | List of kernel conda dependencies. | o |
pipDependencies | List<String> | List of kernel pip dependencies. | o |
Exampleβ
Example Request
Example Response
List environmentβ
GET /api/v1/environment
Exampleβ
Example Request
Example Response
Get environmentβ
GET /api/v1/environment/{name}
Parametersβ
Field Name | Type | In | Description | Required |
---|---|---|---|---|
name | String | path | Environment name. | o |
Exampleβ
Example Request
Example Response
Patch environmentβ
PATCH /api/v1/environment/{name}
Parametersβ
Field Name | Type | In | Description | Required |
---|---|---|---|---|
name | String | path and body | Environment name. | o |
dockerImage | String | body | Docker image name. | o |
kernelSpec | KernelSpec | body | Environment spec. | o |
description | String | body | Description of environment. This field is optional. | x |
Exampleβ
Example Request
Example Response
note
dockerImage, "name" (of kernelSpec), "channels", "condaDependencies", "pipDependencies" etc can be updated using this API. "name" of environmentSpec is not supported.
Delete environmentβ
GET /api/v1/environment/{name}
Parametersβ
Field Name | Type | In | Description | Required |
---|---|---|---|---|
name | String | path | Environment name. | o |