Fix create dns token docs (#18927)

This commit is contained in:
Ronald 2023-09-21 08:33:24 -04:00 committed by GitHub
parent 1f941e48c1
commit f463ebd569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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