mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat(coderd): add endpoint to fetch provisioner key details (#15505)
This PR is the first step aiming to resolve #15126 - Creating a new endpoint to return the details associated to a provisioner key. This is an authenticated endpoints aiming to be used by the provisioner daemons - using the provisioner key as authentication method. This endpoint is not ment to be used with PSK or User Sessions.
This commit is contained in:
34
coderd/apidoc/docs.go
generated
34
coderd/apidoc/docs.go
generated
@ -3638,6 +3638,40 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/provisionerkeys/{provisionerkey}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"CoderSessionToken": []
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Enterprise"
|
||||
],
|
||||
"summary": "Fetch provisioner key details",
|
||||
"operationId": "fetch-provisioner-key-details",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Provisioner Key",
|
||||
"name": "provisionerkey",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.ProvisionerKey"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/regions": {
|
||||
"get": {
|
||||
"security": [
|
||||
|
Reference in New Issue
Block a user