Skip to content

Remove Load Balancer Custom Domain

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

Removes the custom domain. The Load Balancer stops serving it and keeps answering on its E2E address. A free certificate made for the domain is deleted; an uploaded certificate stays in the project. 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

The custom domain was removed

Media typeapplication/json
object
code
integer
message
string
data
object
domain
string
nullable
status
string
nullable
errors
object

Example

{
"code": 200,
"message": "Success",
"data": {
"domain": null,
"status": null
},
"errors": {}
}

The Load Balancer has no custom domain. 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": "No custom domain is configured on this load balancer."
}

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