Skip to content

Commit 75dbd71

Browse files
committed
api.md: document the invalid field in Get Key API response
Updates tailscale/terraform-provider-tailscale#144 Signed-off-by: Anton Tolchanov <[email protected]>
1 parent 241c983 commit 75dbd71

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,18 @@ The response is a JSON object with information about the key supplied.
14341434
}
14351435
```
14361436
1437+
Response for a revoked (deleted) or expired key will have an `invalid` field set to `true`:
1438+
1439+
``` jsonc
1440+
{
1441+
"id": "abc123456CNTRL",
1442+
"created": "2022-05-05T18:55:44Z",
1443+
"expires": "2022-08-03T18:55:44Z",
1444+
"revoked": "2023-04-01T20:50:00Z",
1445+
"invalid": true
1446+
}
1447+
```
1448+
14371449
<a href="tailnet-keys-key-delete"></a>
14381450
14391451
## Delete key

0 commit comments

Comments
 (0)