Merge pull request #4318 from hashicorp/doc-discovery-code-snippet

Improve styling of discovery snippet
pull/4449/merge
Geoffrey Grosenbach 6 years ago committed by GitHub
commit 78134fa368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -175,14 +175,19 @@ web-frontend.service.consul. 0 IN A <code class='keyword'>10.0.1.109</code></cod
<div>
<span></span>
<div class='code'>
<code>$ curl http://localhost:8500/v1/catalog/datacenters
<code class='keyword'>["dc1", "dc2"]</code>$ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</code>
<code>
$ curl http://localhost:8500/v1/catalog/datacenters
<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",
"Node": "10-0-1-109",
"Address": "10.0.1.109",
"Datacenter": "dc2",
"Datacenter": "<code class='keyword'>dc2</code>",
"TaggedAddresses": {
"lan": "10.0.1.109",
"wan": "10.0.1.109"

Loading…
Cancel
Save