From 53f6c3f9f25523bfe42878fc049b891e6207101f Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Tue, 17 May 2022 05:25:24 -0700 Subject: [PATCH] api.md: document preauthorized and tags fields Updates https://github.com/tailscale/tailscale/issues/2120 Updates https://github.com/tailscale/tailscale/issues/4571 Updates https://github.com/tailscale/tailscale/issues/1369 Signed-off-by: Denton Gentry --- api.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/api.md b/api.md index 0ae7ffbe5..9aa5a9f4c 100644 --- a/api.md +++ b/api.md @@ -815,11 +815,15 @@ Supply the tailnet in the path. `capabilities` - A mapping of resources to permissible actions. ``` { - "capabilities": { + "capabilities": { "devices": { "create": { "reusable": false, - "ephemeral": false + "ephemeral": false, + "preauthorized": false, + "tags": [ + "tag:example" + ] } } } @@ -839,11 +843,13 @@ The full key can no longer be retrieved by the server. ``` echo '{ - "capabilities": { + "capabilities": { "devices": { "create": { "reusable": false, - "ephemeral": false + "ephemeral": false, + "preauthorized": false, + "tags": [ "tag:example" ] } } } @@ -859,7 +865,7 @@ Response: "key": "tskey-k123456CNTRL-abcdefghijklmnopqrstuvwxyz", "created": "2021-12-09T23:22:39Z", "expires": "2022-03-09T23:22:39Z", - "capabilities": {"devices": {"create": {"reusable": false, "ephemeral": false}}} + "capabilities": {"devices": {"create": {"reusable": false, "ephemeral": false, "preauthorized": false, "tags": [ "tag:example" ]}}} } ```