client.notebooks.post_deployments
A method of the Notebooks endpoint.
- post_deployments(notebook_id: int, *, deployment_id: int = None) Response
Deploy a Notebook
API URL:
POST /notebooks/{notebook_id}/deploymentsimport civis client = civis.APIClient() response = client.notebooks.post_deployments(...)
- Parameters:
- notebook_idint
The ID of the owning Notebook
- deployment_idint, optional
The ID for this deployment
- Returns:
civis.Response- deployment_idint
The ID for this deployment.
- user_idint
The ID of the owner.
- hoststr
Domain of the deployment.
- namestr
Name of the deployment.
- docker_image_namestr
The name of the docker image to pull from DockerHub.
- docker_image_tagstr
The tag of the docker image to pull from DockerHub (default: latest).
- display_urlstr
A signed URL for viewing the deployed item.
- instance_typestr
The EC2 instance type requested for the deployment.
- memoryint
The memory allocated to the deployment, in MB.
- cpuint
The cpu allocated to the deployment, in millicores.
- statestr
The state of the deployment. One of pending, running, terminated or sleeping.
- state_messagestr
A detailed description of the state.
- max_memory_usagefloat (float)
If the deployment has finished, the maximum amount of memory used during the deployment, in MB.
- max_cpu_usagefloat (float)
If the deployment has finished, the maximum amount of cpu used during the deployment, in millicores.
created_at : str (time)
updated_at : str (time)
- notebook_idint
The ID of the owning Notebook