Skip to main content
Create a new instance from a contract offer ID.

Signature

Parameters

int
required
ID of the offer/contract to create the instance from (returned by search_offers).
Optional[float]
(OPTIONAL) Per-machine bid price in $/hour for interruptible (spot) instances.
Optional[float]
default:"10"
Disk space to allocate in GB.
Optional[str]
Docker image name to use for the instance.
Optional[str]
Docker login credentials for private registry authentication.
Optional[str]
Label to attach to the instance.
Optional[str]
Filename of an onstart script to run on instance start.
Optional[str]
Shell command to run on instance start.
Optional[str]
Override the Docker image entrypoint.
bool
default:"False"
Enable SSH access to the instance.
bool
default:"False"
Enable Jupyter notebook server.
bool
default:"False"
Enable direct (peer-to-peer) connections.
Optional[str]
Directory to serve Jupyter from.
bool
default:"False"
Enable JupyterLab instead of classic Jupyter.
bool
default:"False"
Set system language encoding to UTF-8.
bool
default:"False"
Set Python I/O encoding to UTF-8.
Optional[str]
Extra Docker run arguments passed verbatim.
Optional[str]
Environment variables to set (formatted as Docker -e flags).
Optional[List[str]]
Additional positional arguments.
bool
default:"False"
Skip sanity checks when creating from an existing instance.
bool
default:"False"
Return an error if scheduling fails rather than creating a stopped instance.
Optional[str]
Hash of an instance template to use for configuration.

Returns

str, Result from the API call.

Example