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

Improve styling of discovery snippet
This commit is contained in:
Geoffrey Grosenbach 2018-08-07 10:44:58 -07:00 committed by GitHub
commit 78134fa368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -175,14 +175,19 @@ 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>
<code class='keyword'>["dc1", "dc2"]</code>$ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</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", "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"