mirror of https://github.com/hashicorp/consul
Fixes broken example JSON.
parent
eb7004f2b8
commit
aa8cd2619d
|
@ -175,18 +175,18 @@ to static templates, except with some additional fields and features. Here's an
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
"Name": "geo-db",
|
"Name": "geo-db",
|
||||||
"Template" {
|
"Template": {
|
||||||
"Type": "name_prefix_match",
|
"Type": "name_prefix_match",
|
||||||
"Regexp": "^geo-db-(.*?)-([^\-]+?)$"
|
"Regexp": "^geo-db-(.*?)-([^\\-]+?)$"
|
||||||
},
|
},
|
||||||
"Service": {
|
"Service": {
|
||||||
"Service": "mysql-${regexp.match(1)}",
|
"Service": "mysql-${match(1)}",
|
||||||
"Failover": {
|
"Failover": {
|
||||||
"NearestN": 3,
|
"NearestN": 3,
|
||||||
"Datacenters": ["dc1", "dc2"]
|
"Datacenters": ["dc1", "dc2"]
|
||||||
},
|
},
|
||||||
"OnlyPassing": true,
|
"OnlyPassing": true,
|
||||||
"Tags": ["${regexp.match(2)}"]
|
"Tags": ["${match(2)}"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -466,9 +466,9 @@ a JSON body will be returned like this:
|
||||||
"Session": "adf4238a-882b-9ddc-4a9d-5b6758e4159e",
|
"Session": "adf4238a-882b-9ddc-4a9d-5b6758e4159e",
|
||||||
"Token": "<hidden>",
|
"Token": "<hidden>",
|
||||||
"Name": "geo-db",
|
"Name": "geo-db",
|
||||||
"Template" {
|
"Template": {
|
||||||
"Type": "name_prefix_match",
|
"Type": "name_prefix_match",
|
||||||
"Regexp": "^geo-db-(.*?)-([^\-]+?)$"
|
"Regexp": "^geo-db-(.*?)-([^\\-]+?)$"
|
||||||
},
|
},
|
||||||
"Service": {
|
"Service": {
|
||||||
"Service": "mysql-customer",
|
"Service": "mysql-customer",
|
||||||
|
|
Loading…
Reference in New Issue