mirror of
https://github.com/status-im/consul.git
synced 2025-02-04 09:55:49 +00:00
Merge pull request #2190 from DynomiteDB/master
Unnest TaggedAddresses in Catalog Register endpoint
This commit is contained in:
commit
e24a3482d6
@ -40,6 +40,9 @@ body must look something like:
|
|||||||
"Datacenter": "dc1",
|
"Datacenter": "dc1",
|
||||||
"Node": "foobar",
|
"Node": "foobar",
|
||||||
"Address": "192.168.10.10",
|
"Address": "192.168.10.10",
|
||||||
|
"TaggedAddresses": {
|
||||||
|
"wan": "127.0.0.1"
|
||||||
|
},
|
||||||
"Service": {
|
"Service": {
|
||||||
"ID": "redis1",
|
"ID": "redis1",
|
||||||
"Service": "redis",
|
"Service": "redis",
|
||||||
@ -48,9 +51,6 @@ body must look something like:
|
|||||||
"v1"
|
"v1"
|
||||||
],
|
],
|
||||||
"Address": "127.0.0.1",
|
"Address": "127.0.0.1",
|
||||||
"TaggedAddresses": {
|
|
||||||
"wan": "127.0.0.1"
|
|
||||||
},
|
|
||||||
"Port": 8000
|
"Port": 8000
|
||||||
},
|
},
|
||||||
"Check": {
|
"Check": {
|
||||||
@ -90,6 +90,9 @@ check, instead of a node level health check. The `Status` must be one of
|
|||||||
`unknown`, `passing`, `warning`, or `critical`. The `unknown` status is used
|
`unknown`, `passing`, `warning`, or `critical`. The `unknown` status is used
|
||||||
to indicate that the initial check has not been performed yet.
|
to indicate that the initial check has not been performed yet.
|
||||||
|
|
||||||
|
Multiple checks can be provided by replacing `Check` with `Checks` and sending
|
||||||
|
an array of `Check` objects.
|
||||||
|
|
||||||
It is important to note that `Check` does not have to be provided with `Service`
|
It is important to note that `Check` does not have to be provided with `Service`
|
||||||
and vice versa. A catalog entry can have either, neither, or both.
|
and vice versa. A catalog entry can have either, neither, or both.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user