Backport of Fix create dns token docs into release/1.16.x (#18939)

backport of commit 24797c984ef59cf28e744a473ed69c66797836b3

Co-authored-by: Ronald Ekambi <ronekambi@gmail.com>
This commit is contained in:
hc-github-team-consul-core 2023-09-21 09:10:55 -04:00 committed by GitHub
parent c7f6602f1f
commit 5c958dc8bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 8 deletions

View File

@ -170,6 +170,13 @@ The following example policy is defined in a file. The policy grants the appropr
<CodeTabs>
```hcl
partition "default" {
namespace "default" {
query_prefix "" {
policy = "read"
}
}
}
partition_prefix "" {
namespace_prefix "" {
node_prefix "" {
@ -178,15 +185,25 @@ partition_prefix "" {
service_prefix "" {
policy = "read"
}
query_prefix "" {
policy = "read"
}
}
}
```
```json
{
"partition": {
"default": [{
"namespace": {
"default": [{
"query_prefix": {
"": [{
"policy": "read"
}]
}
}]
}
}]
},
"partition_prefix": {
"": [{
"namespace_prefix": {
@ -196,11 +213,6 @@ partition_prefix "" {
"policy": "read"
}]
},
"query_prefix": {
"": [{
"policy": "read"
}]
},
"service_prefix": {
"": [{
"policy": "read"