Document usage of 'body' field

This commit is contained in:
Nick Spain
2021-03-18 22:27:48 +11:00
committed by Tim Gross
parent a1e0784f14
commit 5cae8f1d84
2 changed files with 4 additions and 0 deletions

View File

@@ -496,6 +496,8 @@ The `Task` object supports the following keys:
- `Method`: The HTTP method to use for HTTP checks. Defaults to GET.
- `Body`: The HTTP body to use for HTTP checks. Defaults to an empty string.
- `Path`: The path of the HTTP endpoint which Consul will query to query
the health of a service if the type of the check is `http`. Nomad
will add the IP of the service and the port, users are only required

View File

@@ -246,6 +246,8 @@ scripts.
- `method` `(string: "GET")` - Specifies the HTTP method to use for HTTP
checks.
- `body` `(string: "")` - Specifies the HTTP body to use for HTTP checks.
- `name` `(string: "service: <name> check")` - Specifies the name of the health
check. If the name is not specified Nomad generates one based on the service name.
If you have more than one check you must specify the name.