Skip to content

Start-Stop/Attach-Detach ReserveIp

PUT
/notebooks/{Instance_id}/actions/
curl --request PUT \
--url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/{Instance_id}/actions/?project_id=<PROJECT_ID>&location=<LOCATION>&action=<ACTION>&apikey=<API_KEY>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"reserved_ip_id": 49
}'

Perform lifecycle actions on an Instance or Virtual Machine using the action query parameter.

For Virtual Machines, use action=start, action=stop, or action=restart. The value is not case sensitive. Startup scripts run automatically on every boot. A VM on a committed plan cannot be started or stopped. These requests are refused when the VM is in the wrong state: “Notebook is already started”, “Notebook is already stopped”, “Restart action not allowed when notebook is stopped.”, and, while the VM is saving an image, “Save Image operation is currently in progress. Please wait for it to complete.”

Instance_id
required
integer

Instance ID

project_id
required
integer

Project ID

active_iam
integer

Active IAM ID (To access contact person account) Find your Active IAM ID here

location
required
string
Allowed values: Delhi Chennai

Location

action
required
string
Allowed values: Start Stop Restart attach_reserve_ip detach_reserve_ip
Media typeapplication/json
object
reserved_ip_id

ID of the reserved IP. Send it only with attach_reserve_ip.

integer

Example

49

Notebook started or stopped successfully

Media typeapplication/json
object
code
integer
message
string
data
object
errors
object

Example

{
"code": 200,
"message": "Notebook stopped/started successfully",
"data": {},
"errors": {}
}