2021-10-29 18:43:10 +02:00
|
|
|
{
|
|
|
|
"swagger": "2.0",
|
|
|
|
"info": {
|
2021-10-30 16:29:41 +02:00
|
|
|
"title": "headscale/v1/headscale.proto",
|
2021-10-29 18:43:10 +02:00
|
|
|
"version": "version not set"
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
{
|
|
|
|
"name": "HeadscaleService"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"paths": {
|
2022-01-25 23:11:15 +01:00
|
|
|
"/api/v1/apikey": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "HeadscaleService_ListApiKeys",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/v1ListApiKeysResponse"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"summary": "--- ApiKeys start ---",
|
|
|
|
"operationId": "HeadscaleService_CreateApiKey",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/v1CreateApiKeyResponse"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/v1CreateApiKeyRequest"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api/v1/apikey/expire": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "HeadscaleService_ExpireApiKey",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/v1ExpireApiKeyResponse"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/v1ExpireApiKeyRequest"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"/api/v1/debug/node": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"post": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"summary": "--- Node start ---",
|
|
|
|
"operationId": "HeadscaleService_DebugCreateNode",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1DebugCreateNodeResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1DebugCreateNodeRequest"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"/api/v1/node": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"get": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"operationId": "HeadscaleService_ListNodes",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1ListNodesResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-17 17:52:03 +01:00
|
|
|
"name": "user",
|
2021-11-04 23:07:59 +01:00
|
|
|
"in": "query",
|
|
|
|
"required": false,
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"/api/v1/node/register": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"post": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"operationId": "HeadscaleService_RegisterNode",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1RegisterNodeResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-02-21 23:48:27 +01:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-17 17:52:03 +01:00
|
|
|
"name": "user",
|
2022-02-21 23:48:27 +01:00
|
|
|
"in": "query",
|
|
|
|
"required": false,
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "key",
|
|
|
|
"in": "query",
|
|
|
|
"required": false,
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
2021-11-04 23:07:59 +01:00
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"/api/v1/node/{nodeId}": {
|
2021-10-29 18:43:10 +02:00
|
|
|
"get": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"operationId": "HeadscaleService_GetNode",
|
2021-10-29 18:43:10 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1GetNodeResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-09-24 13:42:05 +02:00
|
|
|
"name": "nodeId",
|
2021-11-04 23:07:59 +01:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"operationId": "HeadscaleService_DeleteNode",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1DeleteNodeResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-09-24 13:42:05 +02:00
|
|
|
"name": "nodeId",
|
2021-11-04 23:07:59 +01:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"/api/v1/node/{nodeId}/expire": {
|
2021-11-21 14:40:04 +01:00
|
|
|
"post": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"operationId": "HeadscaleService_ExpireNode",
|
2021-11-21 14:40:04 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1ExpireNodeResponse"
|
2021-11-21 14:40:04 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-09-24 13:42:05 +02:00
|
|
|
"name": "nodeId",
|
2021-11-21 14:40:04 +01:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"/api/v1/node/{nodeId}/rename/{newName}": {
|
2022-03-13 22:03:20 +01:00
|
|
|
"post": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"operationId": "HeadscaleService_RenameNode",
|
2022-03-13 22:03:20 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1RenameNodeResponse"
|
2022-03-13 22:03:20 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-09-24 13:42:05 +02:00
|
|
|
"name": "nodeId",
|
2022-03-13 22:03:20 +01:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "newName",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"/api/v1/node/{nodeId}/routes": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"get": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"operationId": "HeadscaleService_GetNodeRoutes",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1GetNodeRoutesResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-09-24 13:42:05 +02:00
|
|
|
"name": "nodeId",
|
2021-11-04 23:07:59 +01:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"/api/v1/node/{nodeId}/tags": {
|
2022-04-25 20:45:33 +02:00
|
|
|
"post": {
|
|
|
|
"operationId": "HeadscaleService_SetTags",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/v1SetTagsResponse"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-09-24 13:42:05 +02:00
|
|
|
"name": "nodeId",
|
2022-04-25 20:45:33 +02:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"/api/v1/node/{nodeId}/user": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"post": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"operationId": "HeadscaleService_MoveNode",
|
2023-01-17 17:52:03 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1MoveNodeResponse"
|
2023-01-17 17:52:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-09-24 13:42:05 +02:00
|
|
|
"name": "nodeId",
|
2023-01-17 17:52:03 +01:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "user",
|
|
|
|
"in": "query",
|
|
|
|
"required": false,
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api/v1/preauthkey": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"get": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"operationId": "HeadscaleService_ListPreAuthKeys",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1ListPreAuthKeysResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "user",
|
|
|
|
"in": "query",
|
|
|
|
"required": false,
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
2021-11-04 23:07:59 +01:00
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"post": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"summary": "--- PreAuthKeys start ---",
|
|
|
|
"operationId": "HeadscaleService_CreatePreAuthKey",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1CreatePreAuthKeyResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1CreatePreAuthKeyRequest"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"/api/v1/preauthkey/expire": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "HeadscaleService_ExpirePreAuthKey",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1ExpirePreAuthKeyResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-17 17:52:03 +01:00
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
2021-11-04 23:07:59 +01:00
|
|
|
"required": true,
|
2023-01-17 17:52:03 +01:00
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/v1ExpirePreAuthKeyRequest"
|
|
|
|
}
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
2023-01-17 17:52:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api/v1/routes": {
|
|
|
|
"get": {
|
|
|
|
"summary": "--- Route start ---",
|
|
|
|
"operationId": "HeadscaleService_GetRoutes",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1GetRoutesResponse"
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-03-06 09:05:40 +01:00
|
|
|
"/api/v1/routes/{routeId}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "HeadscaleService_DeleteRoute",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/v1DeleteRouteResponse"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "routeId",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"/api/v1/routes/{routeId}/disable": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"post": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"operationId": "HeadscaleService_DisableRoute",
|
2021-10-29 18:43:10 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1DisableRouteResponse"
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-11-04 23:07:59 +01:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-17 17:52:03 +01:00
|
|
|
"name": "routeId",
|
2021-11-04 23:07:59 +01:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
2023-01-17 17:52:03 +01:00
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
],
|
2021-10-29 18:43:10 +02:00
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"/api/v1/routes/{routeId}/enable": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "HeadscaleService_EnableRoute",
|
2021-10-29 18:43:10 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1EnableRouteResponse"
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-17 17:52:03 +01:00
|
|
|
"name": "routeId",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
2023-01-17 17:52:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api/v1/user": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "HeadscaleService_ListUsers",
|
2021-10-29 18:43:10 +02:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1ListUsersResponse"
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-11-04 23:07:59 +01:00
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
2023-01-17 17:52:03 +01:00
|
|
|
},
|
2021-11-04 23:07:59 +01:00
|
|
|
"post": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"operationId": "HeadscaleService_CreateUser",
|
2021-11-04 23:07:59 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1CreateUserResponse"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1CreateUserRequest"
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
2022-11-26 01:03:01 +01:00
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"/api/v1/user/{name}": {
|
2022-11-26 01:03:01 +01:00
|
|
|
"get": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"summary": "--- User start ---",
|
|
|
|
"operationId": "HeadscaleService_GetUser",
|
2022-11-26 01:03:01 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1GetUserResponse"
|
2022-11-26 01:03:01 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "name",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
2022-11-26 01:03:01 +01:00
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
2023-01-17 17:52:03 +01:00
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "HeadscaleService_DeleteUser",
|
2022-11-26 01:03:01 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1DeleteUserResponse"
|
2022-11-26 01:03:01 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-17 17:52:03 +01:00
|
|
|
"name": "name",
|
2022-11-26 01:03:01 +01:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
2023-01-17 17:52:03 +01:00
|
|
|
"type": "string"
|
2022-11-26 01:03:01 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"/api/v1/user/{oldName}/rename/{newName}": {
|
2022-11-26 01:03:01 +01:00
|
|
|
"post": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"operationId": "HeadscaleService_RenameUser",
|
2022-11-26 01:03:01 +01:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "A successful response.",
|
|
|
|
"schema": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1RenameUserResponse"
|
2022-11-26 01:03:01 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "An unexpected error response.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/rpcStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-17 17:52:03 +01:00
|
|
|
"name": "oldName",
|
2022-11-26 01:03:01 +01:00
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
2023-01-17 17:52:03 +01:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "newName",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string"
|
2022-11-26 01:03:01 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"HeadscaleService"
|
|
|
|
]
|
|
|
|
}
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"definitions": {
|
|
|
|
"protobufAny": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"@type": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": {}
|
|
|
|
},
|
|
|
|
"rpcStatus": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"code": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"message": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"details": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/protobufAny"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-01-25 23:11:15 +01:00
|
|
|
"v1ApiKey": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
|
|
|
"prefix": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"expiration": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"lastSeen": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"v1CreateApiKeyRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"expiration": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"v1CreateApiKeyResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"apiKey": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-11-04 23:07:59 +01:00
|
|
|
"v1CreatePreAuthKeyRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"user": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "string"
|
|
|
|
},
|
2021-11-08 21:47:40 +01:00
|
|
|
"reusable": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"ephemeral": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"expiration": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
2022-08-25 08:12:50 +02:00
|
|
|
},
|
|
|
|
"aclTags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"v1CreatePreAuthKeyResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"preAuthKey": {
|
|
|
|
"$ref": "#/definitions/v1PreAuthKey"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"v1CreateUserRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"v1CreateUserResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"user": {
|
|
|
|
"$ref": "#/definitions/v1User"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"v1DebugCreateNodeRequest": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"user": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2021-10-29 18:43:10 +02:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2021-11-04 23:07:59 +01:00
|
|
|
},
|
|
|
|
"routes": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"v1DebugCreateNodeResponse": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"node": {
|
|
|
|
"$ref": "#/definitions/v1Node"
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"v1DeleteNodeResponse": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object"
|
|
|
|
},
|
2023-03-06 09:05:40 +01:00
|
|
|
"v1DeleteRouteResponse": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"v1DeleteUserResponse": {
|
2021-10-29 18:43:10 +02:00
|
|
|
"type": "object"
|
|
|
|
},
|
2022-11-26 01:03:01 +01:00
|
|
|
"v1DisableRouteResponse": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"v1EnableRouteResponse": {
|
|
|
|
"type": "object"
|
2021-11-04 23:07:59 +01:00
|
|
|
},
|
2022-01-25 23:11:15 +01:00
|
|
|
"v1ExpireApiKeyRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"prefix": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"v1ExpireApiKeyResponse": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"v1ExpireNodeResponse": {
|
2021-11-21 14:40:04 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"node": {
|
|
|
|
"$ref": "#/definitions/v1Node"
|
2021-11-21 14:40:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-11-04 23:07:59 +01:00
|
|
|
"v1ExpirePreAuthKeyRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"user": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"v1ExpirePreAuthKeyResponse": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"v1GetNodeResponse": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"node": {
|
|
|
|
"$ref": "#/definitions/v1Node"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"v1GetNodeRoutesResponse": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"routes": {
|
2022-11-26 01:03:01 +01:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/v1Route"
|
|
|
|
}
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-11-26 01:03:01 +01:00
|
|
|
"v1GetRoutesResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"routes": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/v1Route"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"v1GetUserResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"user": {
|
|
|
|
"$ref": "#/definitions/v1User"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-01-25 23:11:15 +01:00
|
|
|
"v1ListApiKeysResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"apiKeys": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/v1ApiKey"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"v1ListNodesResponse": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"nodes": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"$ref": "#/definitions/v1Node"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"v1ListPreAuthKeysResponse": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"preAuthKeys": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1PreAuthKey"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"v1ListUsersResponse": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"users": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"$ref": "#/definitions/v1User"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"v1MoveNodeResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"node": {
|
|
|
|
"$ref": "#/definitions/v1Node"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"v1Node": {
|
2021-10-29 18:43:10 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
|
|
|
"machineKey": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nodeKey": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"discoKey": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2022-01-16 14:15:35 +01:00
|
|
|
"ipAddresses": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2021-10-29 18:43:10 +02:00
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"user": {
|
|
|
|
"$ref": "#/definitions/v1User"
|
2021-10-29 18:43:10 +02:00
|
|
|
},
|
|
|
|
"lastSeen": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"lastSuccessfulUpdate": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"expiry": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
2021-11-04 23:07:59 +01:00
|
|
|
},
|
|
|
|
"preAuthKey": {
|
|
|
|
"$ref": "#/definitions/v1PreAuthKey"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
2022-02-28 23:21:14 +01:00
|
|
|
},
|
|
|
|
"registerMethod": {
|
|
|
|
"$ref": "#/definitions/v1RegisterMethod"
|
2022-03-13 22:03:20 +01:00
|
|
|
},
|
2022-04-15 13:11:41 +02:00
|
|
|
"forcedTags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-04-16 11:30:51 +02:00
|
|
|
},
|
|
|
|
"invalidTags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"validTags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-05-16 21:41:46 +02:00
|
|
|
},
|
2022-04-24 21:55:20 +02:00
|
|
|
"givenName": {
|
2022-03-13 22:03:20 +01:00
|
|
|
"type": "string"
|
2022-12-13 23:29:03 +01:00
|
|
|
},
|
|
|
|
"online": {
|
|
|
|
"type": "boolean"
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-11-04 23:07:59 +01:00
|
|
|
"v1PreAuthKey": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"user": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2021-11-08 21:47:40 +01:00
|
|
|
"reusable": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"ephemeral": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"used": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"expiration": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
2022-08-25 08:12:50 +02:00
|
|
|
},
|
|
|
|
"aclTags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-10-29 18:43:10 +02:00
|
|
|
"v1RegisterMethod": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"REGISTER_METHOD_UNSPECIFIED",
|
|
|
|
"REGISTER_METHOD_AUTH_KEY",
|
|
|
|
"REGISTER_METHOD_CLI",
|
|
|
|
"REGISTER_METHOD_OIDC"
|
|
|
|
],
|
|
|
|
"default": "REGISTER_METHOD_UNSPECIFIED"
|
2021-11-04 23:07:59 +01:00
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"v1RegisterNodeResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"node": {
|
|
|
|
"$ref": "#/definitions/v1Node"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"v1RenameNodeResponse": {
|
2022-03-13 22:03:20 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"node": {
|
|
|
|
"$ref": "#/definitions/v1Node"
|
2022-03-13 22:03:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-17 17:52:03 +01:00
|
|
|
"v1RenameUserResponse": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-17 17:52:03 +01:00
|
|
|
"user": {
|
|
|
|
"$ref": "#/definitions/v1User"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-11-26 01:03:01 +01:00
|
|
|
"v1Route": {
|
2021-11-04 23:07:59 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2022-11-26 01:03:01 +01:00
|
|
|
"id": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
2021-11-04 23:07:59 +01:00
|
|
|
},
|
2023-09-24 13:42:05 +02:00
|
|
|
"node": {
|
|
|
|
"$ref": "#/definitions/v1Node"
|
2022-11-26 01:03:01 +01:00
|
|
|
},
|
|
|
|
"prefix": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"advertised": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isPrimary": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"deletedAt": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
2021-11-04 23:07:59 +01:00
|
|
|
}
|
|
|
|
}
|
2022-04-15 13:11:41 +02:00
|
|
|
},
|
2022-04-25 20:45:33 +02:00
|
|
|
"v1SetTagsResponse": {
|
2022-04-15 13:11:41 +02:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-09-24 13:42:05 +02:00
|
|
|
"node": {
|
|
|
|
"$ref": "#/definitions/v1Node"
|
2022-04-15 13:11:41 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-17 17:52:03 +01:00
|
|
|
},
|
|
|
|
"v1User": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
}
|
|
|
|
}
|
2021-10-29 18:43:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|