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

Method templateVersionDryRunResources

coderd/templateversions.go:651–658  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

649// @Success 200 {array} codersdk.WorkspaceResource
650// @Router /api/v2/templateversions/{templateversion}/dry-run/{jobID}/resources [get]
651func (api *API) templateVersionDryRunResources(rw http.ResponseWriter, r *http.Request) {
652 job, ok := api.fetchTemplateVersionDryRunJob(rw, r)
653 if !ok {
654 return
655 }
656
657 api.provisionerJobResources(rw, r, job.ProvisionerJob)
658}
659
660// @Summary Get template version dry-run logs by job ID
661// @ID get-template-version-dry-run-logs-by-job-id

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected