Skip to content

Delete Load Balancer Certificate

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

Deletes a Certificate. A Certificate that a Load Balancer still uses cannot be deleted; detach it first. A Certificate cannot be edited; to renew one, upload the new one and switch the Load Balancer to it. Needs the Delete permission for Load Balancers.

certificate_id
required
integer

Certificate 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 Certificate was deleted

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

Example

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

A Load Balancer still uses the Certificate. The same 400 is returned, with the project’s own text, when project_id is missing or not a number.

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

Example

{
"code": 400,
"message": "Bad Request",
"data": {},
"errors": "This certificate is still attached to a load balancer. Detach it first."
}

No Certificate with that ID in the project.

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

Example

{
"code": 404,
"message": "Bad Request",
"data": {},
"errors": "Certificate not found in this project."
}