Validate HTTP API
The /validate
endpoints are used to validate object structs, fields, and
types.
Validate Job
This endpoint validates a Nomad job file. The local Nomad agent forwards the request to a server. In the event a server can't be reached the agent verifies the job file locally but skips validating driver configurations.
This endpoint accepts a JSON job file, not an HCL job file.
Method | Path | Produces |
---|---|---|
POST | /v1/validate/job | application/json |
The table below shows this endpoint's support for blocking queries and required ACLs.
Blocking Queries | ACL Required |
---|---|
NO | namespace:read-job |
Parameters
There are no parameters, but the request body contains the entire job file.
Sample Payload
Sample Request
Sample Response