hashicorp / hashicorp/nomad

API endpoint for showing a formatted job plan

Open
#8,191 3 comments 2 reactions 0 assignees View on GitHub
stage/needs-discussion theme/api theme/jobspec type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

It would be helpful if there was a way to easily get the formatted output of a plan through the API, similar to the way the CLI shows it.

For example:

```
+/- Job: "httpbin"
+/- Meta[uuid]: "7e6273bf-f549-4356-8396-dd61024ea13e" => "04d109b8-96a2-4bb3-9ec8-e4f9ca782a16"
Task Group: "app" (1 canary, 1 ignore)
Task: "httpbin"
```

My current solution is to parse the [Diff](https://www.nomadproject.io/api-docs/jobs/#diff) section of a plan through the API, but it's tricky to parse and not very pretty :joy:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.