mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-23 01:22:00 +00:00
100 lines
2.5 KiB
GraphQL
100 lines
2.5 KiB
GraphQL
query listPolicies($input: ListPoliciesInput!) {
|
|
listPolicies(input: $input) {
|
|
start
|
|
count
|
|
total
|
|
policies {
|
|
urn
|
|
type
|
|
name
|
|
description
|
|
state
|
|
resources {
|
|
type
|
|
allResources
|
|
resources
|
|
filter {
|
|
criteria {
|
|
field
|
|
values {
|
|
value
|
|
entity {
|
|
...searchResultFields
|
|
}
|
|
}
|
|
condition
|
|
}
|
|
}
|
|
}
|
|
privileges
|
|
actors {
|
|
users
|
|
groups
|
|
roles
|
|
allUsers
|
|
allGroups
|
|
resourceOwners
|
|
resolvedUsers {
|
|
username
|
|
urn
|
|
properties {
|
|
active
|
|
displayName
|
|
title
|
|
firstName
|
|
lastName
|
|
fullName
|
|
email
|
|
}
|
|
editableProperties {
|
|
displayName
|
|
pictureLink
|
|
teams
|
|
title
|
|
skills
|
|
}
|
|
}
|
|
resolvedGroups {
|
|
name
|
|
urn
|
|
properties {
|
|
displayName
|
|
description
|
|
email
|
|
}
|
|
editableProperties {
|
|
description
|
|
slack
|
|
email
|
|
}
|
|
}
|
|
resolvedRoles {
|
|
urn
|
|
type
|
|
name
|
|
description
|
|
}
|
|
}
|
|
editable
|
|
}
|
|
}
|
|
}
|
|
|
|
query getGrantedPrivileges($input: GetGrantedPrivilegesInput!) {
|
|
getGrantedPrivileges(input: $input) {
|
|
privileges
|
|
}
|
|
}
|
|
|
|
mutation createPolicy($input: PolicyUpdateInput!) {
|
|
createPolicy(input: $input)
|
|
}
|
|
|
|
mutation updatePolicy($urn: String!, $input: PolicyUpdateInput!) {
|
|
updatePolicy(urn: $urn, input: $input)
|
|
}
|
|
|
|
mutation deletePolicy($urn: String!) {
|
|
deletePolicy(urn: $urn)
|
|
}
|