hosting
POST /v1/private-network/devices/{seatId}/rotate
Issue a fresh configuration for a device, invalidating the old one.
אימות
שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.
נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X POST https://api.zinndigital.com/v1/private-network/devices/{seatId}/rotate \
-H "Authorization: Bearer zdk_live_…"מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
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.
פרמטרים
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
seatId (path) | string | כן | — |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
seat | PrivateNetworkDevice | כן | — |
config | string | כן | 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… |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 403 · 404 · 422