curl --request GET \ --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.get( "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: "GET", headers: { "Authorization": "Bearer <API_TOKEN>" },});console.log(await response.json());Returns the custom domain of the Load Balancer, its status and the DNS target to point it at. data is null when no custom domain is set. Each call also checks whether DNS points at the Load Balancer and moves the status on.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Load Balancer ID
Query Parameters
Section titled “Query Parameters”Project ID
Active IAM ID (To access contact person account) Find your Active IAM ID here
Location
Responses
Section titled “Responses”The custom domain, or null
object
object
pending_dns until DNS points at the Load Balancer, issuing while the certificate is being issued, active, or failed.
The name to point a CNAME record for the domain at.
true when the domain resolves to the Load Balancer.
The certificate issuer’s message when issuing is stuck or failed.
The certificate for the domain.
object
ACME for a free certificate, UPLOADED for your own.
Active, Pending or Expired.
The certificate chain as PEM text. It can be empty.
object
The user who created the certificate.
object
object
Example
{ "code": 200, "message": "Success", "data": { "domain": "www.example.com", "status": "pending_dns", "cname_target": "lb-12-abc123.e2enetworks.net", "dns_verified": false, "reason": "", "certificate": { "id": 15, "name": "acme-12-1a2b3c4d-www.example.com", "source": "ACME", "status": "Active", "cert_chain": "", "not_before": null, "not_after": null, "issuer": null, "key_type": null, "fingerprint": null, "days_remaining": null, "is_expired": false, "created_by": { "id": 1, "name": "A User", "email": "user@example.com", "username": "auser" }, "created_at": "2026-10-21T11:30:00Z", "updated_at": "2026-10-21T11:30:00Z" } }, "errors": {}}The project ID is missing or is not a number.
object
object
Example
{ "code": 400, "message": "Bad Request", "data": {}, "errors": "Project ID is missing or invalid"}No Load Balancer with that ID in the project and region.
object
object
Example
{ "code": 404, "message": "Bad Request", "data": {}, "errors": "Gateway not found"}