How nomad uses curl API to create job through HCl file
Using JSON is too long and difficult to maintain. For secondary development, HCl files can be edited on the page
How nomad uses curl API to create job through HCl file
Using JSON is too long and difficult to maintain. For secondary development, HCl files can be edited on the page
Hi @x602, unfortunately the Nomad HTTP API via CURL only supports job specifications in JSON format. I would suggest using the nomad job run
command to register Nomad jobs in HCL format. The CLI also supports JSON if needed.
Thanks,
jrasell and the Nomad team