mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-16 20:48:35 +00:00
docs(authorization): correct policies example (#8833)
Co-authored-by: si-chakraborty <si.chakraborty@adevinta.com> Co-authored-by: John Joyce <john@acryl.io> Co-authored-by: Aseem Bansal <asmbansal2@gmail.com>
This commit is contained in:
parent
930ad2c29b
commit
7f4395945e
@ -145,28 +145,31 @@ For example, the following resource filter will apply the policy to datasets, ch
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"resource": {
|
"resources": {
|
||||||
"criteria": [
|
"filter": {
|
||||||
{
|
"criteria": [
|
||||||
"field": "resource_type",
|
{
|
||||||
"values": [
|
"field": "RESOURCE_TYPE",
|
||||||
"dataset",
|
"condition": "EQUALS",
|
||||||
"chart",
|
"values": [
|
||||||
"dashboard"
|
"dataset",
|
||||||
],
|
"chart",
|
||||||
"condition": "EQUALS"
|
"dashboard"
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
"field": "domain",
|
{
|
||||||
"values": [
|
"field": "DOMAIN",
|
||||||
"urn:li:domain:domain1"
|
"values": [
|
||||||
],
|
"urn:li:domain:domain1"
|
||||||
"condition": "EQUALS"
|
],
|
||||||
|
"condition": "EQUALS"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Where `resources` is inside the `info` aspect of a Policy.
|
||||||
|
|
||||||
Supported fields are as follows
|
Supported fields are as follows
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user