mirror of https://github.com/hashicorp/consul
Improve styling of discovery snippet
Original `discovery` snippet had a `curl` command that mentioned multi-datacenter support. This removes part of the command that was incorrect. It adds styling for the `dc2` section of the JSON output that highlights the part of the query that relates to multiple data centers.pull/4318/head
parent
4c336314fc
commit
a620ac8314
|
@ -175,14 +175,13 @@ web-frontend.service.consul. 0 IN A <code class='keyword'>10.0.1.109</code></cod
|
||||||
<div>
|
<div>
|
||||||
<span></span>
|
<span></span>
|
||||||
<div class='code'>
|
<div class='code'>
|
||||||
<code>$ curl http://localhost:8500/v1/catalog/datacenters
|
<code>$ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</code>
|
||||||
<code class='keyword'>["dc1", "dc2"]</code>$ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</code>
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"ID": "7081dcdf-fdc0-0432-f2e8-a357d36084e1",
|
"ID": "7081dcdf-fdc0-0432-f2e8-a357d36084e1",
|
||||||
"Node": "10-0-1-109",
|
"Node": "10-0-1-109",
|
||||||
"Address": "10.0.1.109",
|
"Address": "10.0.1.109",
|
||||||
"Datacenter": "dc2",
|
"Datacenter": "<code class='keyword'>dc2</code>",
|
||||||
"TaggedAddresses": {
|
"TaggedAddresses": {
|
||||||
"lan": "10.0.1.109",
|
"lan": "10.0.1.109",
|
||||||
"wan": "10.0.1.109"
|
"wan": "10.0.1.109"
|
||||||
|
|
Loading…
Reference in New Issue