Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the offer to accept
Body
Optional template ID to use for instance configuration
89
Optional template hash ID to use for instance configuration
"abc123def456"
Docker image to use for the instance
1024
"tensorflow/tensorflow:latest-gpu"
Storage space in GB
x >= 8
32
Environment variables and port mappings
{
"JUPYTER_TOKEN": "abc123",
"PORTAL_CONFIG": "{\"ports\": [8080, 8081]}"
}
Instance run type
ssh
, jupyter
, args
, ssh_proxy
, ssh_direct
, jupyter_proxy
, jupyter_direct
"jupyter"
Commands to run when instance starts
4096
"pip install -r requirements.txt"
User-defined label for the instance
256
"training-job-1"
Docker registry credentials if needed
"-u username -p password docker.io"
Bid price per hour for interruptible instances
0.001 <= x <= 128
0.4
Desired initial state of the instance
running
, stopped
"running"
Whether to cancel if instance cannot start immediately. Defaults to false for interruptibles, true for on-demand with target_state='running'
true
Whether this is a VM instance
Client identifier (usually "me")
"me"
Optional API key identifier for audit logging
Arguments to pass to the container entrypoint
["-c", "echo hello; sleep infinity;"]
Override entrypoint for args launch instance
"bash"
Launch as an SSH instance type (deprecated, use runtype instead)
Set python's locale to C.UTF-8
Install and generate locales before instance launch, set locale to C.UTF-8
Launch instance with jupyter lab instead of notebook
Directory in instance to use to launch jupyter
Skip sanity checks when creating from an existing instance
User to use with docker create (breaks some images, use with caution)
Volume creation/linking information