ByCloud Docs
GuidesCLIAPISDK
post/v1/floating-ips

Create floating IP

Allocate a new floating IP from an external network

Request Body

required

Content-Type: application/json

floating_network_id

string<uuid>required

External network to allocate from

description

stringoptional

floating_ip_address

stringoptional

Specific IP to allocate (if available)

subnet_id

string<uuid>optional

Subnet to allocate from

port_id

string<uuid>optional

Port to associate with

fixed_ip_address

stringoptional

Fixed IP to associate with (if port has multiple IPs)

dns_domain

stringoptional

dns_name

stringoptional

tags

arrayoptional

Responses

201

Floating IP allocated

Content-Type: application/json

floating_ip

objectoptional
400

Invalid request parameters

Content-Type: application/json

error

objectrequired
401

Authentication required or token invalid

Content-Type: application/json

error

objectrequired
403

Insufficient permissions

Content-Type: application/json

error

objectrequired
404

External network not found

Content-Type: application/json

error

objectrequired
409

No floating IPs available or IP already in use

Content-Type: application/json

error

objectrequired
500

Internal server error

Content-Type: application/json

error

objectrequired
curl -X POST "https://api.spo1.mycloud.com/v1/floating-ips" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"floating_network_id": "550e8400-e29b-41d4-a716-446655440000",
"description": "string",
"floating_ip_address": "string",
"subnet_id": "550e8400-e29b-41d4-a716-446655440000",
"port_id": "550e8400-e29b-41d4-a716-446655440000",
"fixed_ip_address": "string",
"dns_domain": "string",
"dns_name": "string",
"tags": [
"web",
"frontend"
]
}'