mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): add endpoint to list provisioner daemons (#16028)
Updates #15190 Updates #15084 Supersedes #15940
This commit is contained in:
Generated
+52
-1
@@ -2598,7 +2598,7 @@
|
||||
}
|
||||
],
|
||||
"produces": ["application/json"],
|
||||
"tags": ["Enterprise"],
|
||||
"tags": ["Provisioning"],
|
||||
"summary": "Get provisioner daemons",
|
||||
"operationId": "get-provisioner-daemons",
|
||||
"parameters": [
|
||||
@@ -11244,6 +11244,9 @@
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"current_job": {
|
||||
"$ref": "#/definitions/codersdk.ProvisionerDaemonJob"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
@@ -11252,6 +11255,10 @@
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"key_name": {
|
||||
"description": "Optional fields.",
|
||||
"type": "string"
|
||||
},
|
||||
"last_seen_at": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
@@ -11263,12 +11270,23 @@
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"previous_job": {
|
||||
"$ref": "#/definitions/codersdk.ProvisionerDaemonJob"
|
||||
},
|
||||
"provisioners": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"enum": ["offline", "idle", "busy"],
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/codersdk.ProvisionerDaemonStatus"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
@@ -11280,6 +11298,39 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.ProvisionerDaemonJob": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"status": {
|
||||
"enum": [
|
||||
"pending",
|
||||
"running",
|
||||
"succeeded",
|
||||
"canceling",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/codersdk.ProvisionerJobStatus"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.ProvisionerDaemonStatus": {
|
||||
"type": "string",
|
||||
"enum": ["offline", "idle", "busy"],
|
||||
"x-enum-varnames": [
|
||||
"ProvisionerDaemonOffline",
|
||||
"ProvisionerDaemonIdle",
|
||||
"ProvisionerDaemonBusy"
|
||||
]
|
||||
},
|
||||
"codersdk.ProvisionerJob": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user