Browse Source

Fix create dns token docs (#18927)

pull/18940/head
Ronald 1 year ago committed by GitHub
parent
commit
f463ebd569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 28
      website/content/docs/security/acl/tokens/create/create-a-dns-token.mdx

28
website/content/docs/security/acl/tokens/create/create-a-dns-token.mdx

@ -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"

Loading…
Cancel
Save