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>'import requests
response = requests.delete( "https://api.e2enetworks.com/myaccount/api/v1/gpu/gateway/{gateway_id}/custom-domain/", params={"project_id": "<PROJECT_ID>", "location": "<LOCATION>", "apikey": "<API_KEY>"}, headers={"Authorization": "Bearer <API_TOKEN>"},)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/gpu/gateway/{gateway_id}/custom-domain/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", location: "<LOCATION>", apikey: "<API_KEY>" });
const response = await fetch(url, { method: "DELETE", headers: { "Authorization": "Bearer <API_TOKEN>" },});console.log(await response.json());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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”gateway_id
required
integer
Load Balancer ID
Query Parameters
Section titled “Query Parameters”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
Location
Responses
Section titled “Responses”The custom domain was removed
Media typeapplication/json
object
code
integer
message
string
data
object
domain
string
status
string
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"}