mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 19:51:41 +00:00
api: update acl/validate data format (#4366)
Expected input is JSON formatted []policy.ACLTest Signed-off-by: Ramya Nagarajan <ramya@tailscale.com>
This commit is contained in:
parent
c79c72c4fc
commit
e014b4d970
4
api.md
4
api.md
@ -636,11 +636,9 @@ POST /api/v2/tailnet/example.com/acl/validate
|
|||||||
curl 'https://api.tailscale.com/api/v2/tailnet/example.com/acl/validate' \
|
curl 'https://api.tailscale.com/api/v2/tailnet/example.com/acl/validate' \
|
||||||
-u "tskey-yourapikey123:" \
|
-u "tskey-yourapikey123:" \
|
||||||
--data-binary '
|
--data-binary '
|
||||||
{
|
|
||||||
[
|
[
|
||||||
{"User": "user1@example.com", "Allow": ["example-host-1:22"], "Deny": ["example-host-2:100"]}
|
{"User": "user1@example.com", "Allow": ["example-host-1:22"], "Deny": ["example-host-2:100"]}
|
||||||
]
|
]'
|
||||||
}'
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Response:
|
Response:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user