hosting
POST /v1/private-network/devices/{seatId}/rotate
Issue a fresh configuration for a device, invalidating the old one.
Autenticazione
Invia una chiave API come bearer token. Questo endpoint non specifica un permesso specifico nella specifica, quindi assegna alla tua chiave i permessi minimi necessari e verifica la risposta invece di fare supposizioni.
Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.
Provalo
Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.
curl -X POST https://api.zinndigital.com/v1/private-network/devices/{seatId}/rotate \
-H "Authorization: Bearer zdk_live_…"Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API
Dettagli
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.
Parametri
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
seatId (path) | string | Sì | — |
Risposta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
seat | PrivateNetworkDevice | Sì | — |
config | string | Sì | 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… |
Errori che questo endpoint può restituire
401 · 403 · 404 · 422