api.md: document using '-' value as default tailnet

Signed-off-by: Will Norris <[email protected]>
This commit is contained in:
Will Norris authored and Will Norris committed 2022-10-13 14:13:28 -07:00
1 parent 9a264dac01
commit d05dd41bc1
1 file changed
+7
+7
View File
@@ -355,6 +355,13 @@ GET /api/v2/tailnet/[email protected]/...
curl https://api.tailscale.com/api/v2/tailnet/[email protected]/...
```
Alternatively, you can specify the value "-" to refer to the default tailnet of
the authenticated user making the API call. For example:
```
GET /api/v2/tailnet/-/...
curl https://api.tailscale.com/api/v2/tailnet/-/...
```
Tailnets are a top-level resource. ACL is an example of a resource that is tied to a top-level tailnet.
For more information on Tailscale networks/tailnets, click [here](https://tailscale.com/kb/1064/invite-team-members).