From d05dd41bc18780b5271cce26d8a22428606fd92d Mon Sep 17 00:00:00 2001 From: Will Norris Date: Thu, 13 Oct 2022 14:08:47 -0700 Subject: [PATCH] api.md: document using '-' value as default tailnet Signed-off-by: Will Norris --- api.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api.md b/api.md index 57d69950f..9be8eae02 100644 --- a/api.md +++ b/api.md @@ -355,6 +355,13 @@ GET /api/v2/tailnet/alice@gmail.com/... curl https://api.tailscale.com/api/v2/tailnet/alice@gmail.com/... ``` +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).