hosting
POST /v1/private-network/devices/{seatId}/rotate
Issue a fresh configuration for a device, invalidating the old one.
Authenticatie
Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X POST https://api.zinndigital.com/v1/private-network/devices/{seatId}/rotate \
-H "Authorization: Bearer zdk_live_…"Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
Gated on `network.private.manage`. This is the answer to "I lost my configuration file": the previous keypair stops working the moment the gateway next syncs. The new `config` is likewise shown only once.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
seatId (path) | string | Ja | — |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
seat | PrivateNetworkDevice | Ja | — |
config | string | Ja | The complete WireGuard configuration file. ⛔⛔ Returned ONCE, on this response only. It contains the device's private key, which is generated in memory and never stored anywhere… |
Fouten die dit eindpunt kan retourneren
401 · 403 · 404 · 422