POST /command/schedule_deploy (deprecated)
Prior to deprecation, this endpoint scheduled a Puppet run on a set of nodes.
This endpoint is deprecated. Instead, use GET /scheduled_jobs/environment_jobs.
Request format
Prior to deprecation, requests to this endpoint:
- Specified the content type as
application/json
- Contained a JSON object body
- Included these required keys:
environment
,scope
,scheduled_time
- Could include several optional keys.
For example, this request scheduled a deployment targeting nodes in the All Nodes
node group in the production
environment:
type_header='Content-Type: application/json' auth_header="X-Authentication: $(puppet-access show)" uri="https://$(puppet config print server):8143/orchestrator/v1/command/schedule_deploy" data='{"environment": "production", "scope" : { "node_group" : "00000000-0000-4000-8000-000000000000" }, "scheduled_time": "2027-05-05T19:50:08Z"}' curl --insecure --header "$type_header" --header "$auth_header" --request POST "$uri" --data "$data"
Response format
Prior to deprecation, if the deployment was successfully scheduled, the server
returned 202 and a JSON object containing the job's id
and name
. For
example:
{ "job" : { "id" : "https://orchestrator.example.com:8143/orchestrator/v1/jobs/81" "name" : "81" } }