Egress Ips /
Patch egress IP
Updates an egress IP
Required permission
Account > EgressIps > General > Update
Path parameters
egressIpId
string requiredID of the egress IP
Request body
- {object}
name
stringThe 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}Egress 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
PATCH /v1/egress-ips/{egressIpId}
Example request
Request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request PATCH \
--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-ips/{egressIpId}Example response
200 OK
Details about the updated 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"
}
}