chore: add provisioner key crud apis (#13857)

This commit is contained in:
Garrett Delfosse
2024-07-16 13:27:12 -04:00
committed by GitHub
parent a5e4bf38fe
commit b697c6939a
35 changed files with 1447 additions and 16 deletions
+124
View File
@@ -2346,6 +2346,100 @@
}
}
},
"/organizations/{organization}/provisionerkeys": {
"get": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": ["application/json"],
"tags": ["Enterprise"],
"summary": "List provisioner key",
"operationId": "list-provisioner-key",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organization",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/codersdk.ProvisionerKey"
}
}
}
}
},
"post": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": ["application/json"],
"tags": ["Enterprise"],
"summary": "Create provisioner key",
"operationId": "create-provisioner-key",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organization",
"in": "path",
"required": true
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/codersdk.CreateProvisionerKeyResponse"
}
}
}
}
},
"/organizations/{organization}/provisionerkeys/{provisionerkey}": {
"delete": {
"security": [
{
"CoderSessionToken": []
}
],
"tags": ["Enterprise"],
"summary": "Delete provisioner key",
"operationId": "delete-provisioner-key",
"parameters": [
{
"type": "string",
"description": "Organization ID",
"name": "organization",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Provisioner key name",
"name": "provisionerkey",
"in": "path",
"required": true
}
],
"responses": {
"204": {
"description": "No Content"
}
}
}
},
"/organizations/{organization}/templates": {
"get": {
"security": [
@@ -7661,6 +7755,14 @@
}
}
},
"codersdk.CreateProvisionerKeyResponse": {
"type": "object",
"properties": {
"key": {
"type": "string"
}
}
},
"codersdk.CreateTemplateRequest": {
"type": "object",
"required": ["name", "template_version_id"],
@@ -9702,6 +9804,26 @@
"ProvisionerJobUnknown"
]
},
"codersdk.ProvisionerKey": {
"type": "object",
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"organization": {
"type": "string",
"format": "uuid"
}
}
},
"codersdk.ProvisionerLogLevel": {
"type": "string",
"enum": ["debug"],
@@ -9819,6 +9941,7 @@
"organization",
"organization_member",
"provisioner_daemon",
"provisioner_keys",
"replicas",
"system",
"tailnet_coordinator",
@@ -9846,6 +9969,7 @@
"ResourceOrganization",
"ResourceOrganizationMember",
"ResourceProvisionerDaemon",
"ResourceProvisionerKeys",
"ResourceReplicas",
"ResourceSystem",
"ResourceTailnetCoordinator",