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

Method templateVersionDryRunLogs

coderd/templateversions.go:673–680  ·  view source on GitHub ↗

@Summary Get template version dry-run logs by job ID @ID get-template-version-dry-run-logs-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) @Param before

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

Source from the content-addressed store, hash-verified

671// @Success 200 {array} codersdk.ProvisionerJobLog
672// @Router /api/v2/templateversions/{templateversion}/dry-run/{jobID}/logs [get]
673func (api *API) templateVersionDryRunLogs(rw http.ResponseWriter, r *http.Request) {
674 job, ok := api.fetchTemplateVersionDryRunJob(rw, r)
675 if !ok {
676 return
677 }
678
679 api.provisionerJobLogs(rw, r, job.ProvisionerJob)
680}
681
682// @Summary Cancel template version dry-run by job ID
683// @ID cancel-template-version-dry-run-by-job-id

Callers

nothing calls this directly

Calls 2

provisionerJobLogsMethod · 0.95

Tested by

no test coverage detected