Allow Access Peers
Description
Request
POST /api/allowAccessPeers/<configName>
Body Parameter
{
"peers": [
"mCP70rKd4iumKptwTgzvAR3g8/D74ZDkwR0EuI10uk4=",
"lKptwTgzvAR3gmCP70rKd4iu8/D74ZDkwR0EuI10uk4=",
"pCP70rKd4iumK0uk4ptwTgzvAR3g8/D74ZDkwR0EuI1="
]
}
Parameter | Type | |
---|---|---|
|
| List of strings contain public key(s) you want to delete |
Response
200 - OK
{
"data": null,
"message": "Allow access successfully!",
"status": true
}
If configuration name provided in configName
does not exist
{
"data": null,
"message": "Configuration does not exist",
"status": false
}
If length of peers
is 0
{
"data": null,
"message": "Please specify one or more peers",
"status": false
}
If failed to save to WireGuard
{
"data": null,
"message": "Failed to save configuration through WireGuard",
"status": false
}
If failed restrict some of the peers
{
"data": null,
"message": "Failed to allow access of peer id",
"status": false
}
Last modified: 28 September 2024