Skip to content

Delete Load Balancer

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

Deletes the Load Balancer and starts tearing it down. Its security groups are detached and its billing stops. A committed term is billed in full with no refund. The Load Balancer needs the Delete permission.

gateway_id
required
integer

Load Balancer 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

Deletion started

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

Example

{
"code": 200,
"message": "Success",
"data": {
"deleted": true
},
"errors": {}
}

Deletion could not start (“Failed to delete load balancer. Please try again later.”). 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": "Failed to delete load balancer. Please try again later."
}

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"
}