Skip to content
Skip to Content
Coder Docs

Get template version dry-run matched provisioners

GET
/api/v2/templateversions/{templateversion}/dry-run/{jobID}/matched-provisioners

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

templateversion*string

Template version ID

Formatuuid
jobID*string

Job ID

Formatuuid

Response Body

OK

application/json
  1. response
available?integer

Available is the number of provisioner daemons that are available to take jobs. This may be less than the count if some provisioners are busy or have been stopped.

count?integer

Count is the number of provisioner daemons that matched the given tags. If the count is 0, it means no provisioner daemons matched the requested tags.

most_recently_seen?string

MostRecentlySeen is the most recently seen time of the set of matched provisioners. If no provisioners matched, this field will be null.

Formatdate-time

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/templateversions/{templateversion}/dry-run/{jobID}/matched-provisioners" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "available": 0,  "count": 0,  "most_recently_seen": "2019-08-24T14:15:22Z"}