Skip to content

Start Or Stop Load Balancer

PUT
/gateway/{gateway_id}/{action_type}/
curl --request PUT \
--url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/gateway/{gateway_id}/{action_type}/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \
--header 'Authorization: Bearer <API_TOKEN>'

Starts or stops a Load Balancer, depending on action_type. stop sets the status to Stopped and stops billing; start sets it to Running and starts billing again. stop works on a Load Balancer that is Running or Initializing, start only on one that is Stopped. The Load Balancer needs the Update permission.

gateway_id
required
integer

Load Balancer ID

action_type
required
string
Allowed values: start stop

start or stop.

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

The action was applied

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

The action that was applied.

string
Allowed values: start stop
errors
object

Example

{
"code": 200,
"message": "Success",
"data": {
"action": "start"
},
"errors": {}
}

action_type is not start or stop; start was sent when the status is not Stopped; or stop was sent when the status is not Running or Initializing. A missing or invalid project ID also gives 400 with errors “Project ID is missing or invalid”.

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

Example

{
"code": 400,
"message": "Bad Request",
"data": {},
"errors": "Gateway should be in stopped to start."
}

No Load Balancer with that ID in the project and region.

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

Example

{
"code": 404,
"message": "Bad Request",
"data": {},
"errors": "Gateway not found"
}