compute

POST /v1/compute/servers/{serverId}/floating-ips

Reserve a floating IP and route it to a server.

Све compute крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу billing.payment.manage; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X POST https://api.zinndigital.com/v1/compute/servers/{serverId}/floating-ips \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "family": <string<ipv4, ipv6>> }'

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

⛔ Chargeable. The address's monthly price is folded into the machine's hourly rate from the next hour and stays there until it is released, so it is only offered on pay-by-the-hour machines. Quote it first with quoteComputeServerFloatingIp. The machine does not answer on the address until its operating system is told the address exists; a client shows the commands beside the address. Requires billing.payment.manage.

Параметри

НазивТипОбавезноШта је ово
serverId (path)UuidДаThe server's id, as listComputeServers reports it. Ours (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine.

Тело захтева

НазивТипОбавезноШта је ово
familystring<ipv4, ipv6>Да—

Одговор

НазивТипОбавезноШта је ово
idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
server_idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
familystring<ipv4, ipv6>Да—
statusstring<pending, active, released, failed>Да—
addressstringДаThe address, or the routed /64 for IPv6. Blank until reserved.
home_zonestringДа—
monthly_price_minorintegerДаWhat the customer pays per month, in minor units of currency.
currencystringДа—
messagestringДа—
created_atstringДа—

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 422 · 429 · 503