Skip to content

Attach or Detach IPv6 Address

PUT
/api/v1/appliances/load-balancers/{lb_id}/ipv6/
curl --request PUT \
--url 'https://api.e2enetworks.com/myaccount/api/v1/appliances/load-balancers/{lb_id}/ipv6/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"action": "attach"
}'

Attaches a public IPv6 address to a load balancer, or detaches the existing one. The operation is selected by the action field in the request body (attach or detach). On success the full load balancer configuration context is returned with the updated host_target_ipv6 and is_ipv6_attached fields. IPv6 is only available for external load balancers.

lb_id
required
integer

The id of the load balancer, as returned by the List Load Balancers endpoint.

Example

12345
project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used to authenticate the request

Example

<API_KEY>
location
required
string

Region of the load balancer.

Example

<LOCATION>
Media typeapplication/json
object
action
required

Whether to attach a new public IPv6 address or detach the existing one.

string
Allowed values: attach detach

Example

attach

Successful response

Media typeapplication/json

Returns the full load balancer configuration context with the updated IPv6 fields.

object
code
integer
data

The load balancer configuration context (see the Update Load Balancer request body for the complete field reference).

object
lb_name
string
lb_type
string
lb_mode
string
lb_port
string
plan_name
string
is_ipv6_attached

Whether an IPv6 address is currently attached.

boolean
host_target_ipv6

The attached IPv6 address (empty/absent when detached).

string
host_target

Comma-separated public IPv4 (and IPv6, when attached) targets.

string
management_ip
string
errors
object
message
string

Example

{
"code": 200,
"data": {
"lb_name": "new-name-1",
"lb_type": "external",
"lb_mode": "HTTP",
"lb_port": "80",
"plan_name": "E2E-LB-2",
"is_ipv6_attached": false,
"host_target_ipv6": "2406:69c0:3000::65",
"host_target": "164.52.192.224,2406:69c0:3000::65",
"management_ip": "192.168.0.204"
},
"message": "IPv6 Attached successfully"
}