MCPcopy Index your code
hub / github.com/coder/coder / templateVersionDryRun

Method templateVersionDryRun

coderd/templateversions.go:595–603  ·  view source on GitHub ↗

@Summary Get template version dry-run by job ID @ID get-template-version-dry-run-by-job-id @Security CoderSessionToken @Produce json @Tags Templates @Param templateversion path string true "Template version ID" format(uuid) @Param jobID path string true "Job ID" format(uuid) @Success 200 {object} co

(rw http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

593// @Success 200 {object} codersdk.ProvisionerJob
594// @Router /api/v2/templateversions/{templateversion}/dry-run/{jobID} [get]
595func (api *API) templateVersionDryRun(rw http.ResponseWriter, r *http.Request) {
596 ctx := r.Context()
597 job, ok := api.fetchTemplateVersionDryRunJob(rw, r)
598 if !ok {
599 return
600 }
601
602 httpapi.Write(ctx, rw, http.StatusOK, convertProvisionerJob(job))
603}
604
605// @Summary Get template version dry-run matched provisioners
606// @ID get-template-version-dry-run-matched-provisioners

Callers

nothing calls this directly

Calls 4

WriteFunction · 0.92
convertProvisionerJobFunction · 0.85
ContextMethod · 0.65

Tested by

no test coverage detected