Egress Ips /
Create egress IP
Creates a new egress IP
Required permission
Account > EgressIps > General > Create
Request body
- {object}
name
string requiredThe name of the egress IP.min length3max length39pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$description
stringThe description of the egress IP.max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$spec
{object} requiredEgress IP specification
Response body
- {object}Response object.
data
{object} requiredResult data.id
string requiredID of the egress IPpattern^[A-Za-z0-9-]+$name
string requiredThe name of the egress IP.min length3max length39pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$description
stringThe description of the egress IP.max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$spec
{object} requiredEgress IP specificationstate
{object}ipAddress
stringAssigned public IP addressstatus
string requiredCurrent status of the egress IPone ofstaging, loading, active, error, deleting, deletedlastTransitionTime
string requiredTime of the last status transitioncreatedAt
string requiredThe time the egress IP was created.updatedAt
string requiredThe time the egress IP was last updated.
API
CLI
JS Client
POST /v1/egress-ips
Example request
Request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"my-egress-ip","description":"This is a new egress IP.","spec":{"provisioningMode":"shared","region":"europe-west","mode":"include"}}' \
https://api.northflank.com/v1/egress-ipsExample response
200 OK
Details about the newly created egress IP.
JSON
{
"data": {
"id": "my-egress-ip",
"name": "my-egress-ip",
"description": "This is a new egress IP.",
"spec": {
"provisioningMode": "shared",
"region": "europe-west",
"mode": "include"
},
"state": {
"ipAddress": "34.105.225.71",
"status": "active"
},
"createdAt": "2021-01-20T11:19:53.175Z",
"updatedAt": "2021-01-20T11:19:53.175Z"
}
}