compute
POST /v1/compute/servers/{serverId}/floating-ips
Reserve a floating IP and route it to a server.
Аутентификација
Пошаљите 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. |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
family | string<ipv4, ipv6> | Да | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
server_id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
family | string<ipv4, ipv6> | Да | — |
status | string<pending, active, released, failed> | Да | — |
address | string | Да | The address, or the routed /64 for IPv6. Blank until reserved. |
home_zone | string | Да | — |
monthly_price_minor | integer | Да | What the customer pays per month, in minor units of currency. |
currency | string | Да | — |
message | string | Да | — |
created_at | string | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429 · 503