- Removed 'Permissions/Library' and 'Permissions/Library/Item' from README.md hierarchy examples. - Updated 'docs/sample_import_permissions_template_groups_mutation.graphql' to remove these groups from the sample import. - Removed these groups from the 'TEMPLATEGROUP_EXPORT_DUMMY_TEMPLATE' in 'src/testdata/templates/zbx_default_templates_vcr.yaml'. - Verified all 38 tests pass successfully.
38 lines
841 B
GraphQL
38 lines
841 B
GraphQL
### Mutation
|
|
Use this mutation to import template groups used for permission management.
|
|
|
|
```graphql
|
|
mutation ImportTemplateGroups($templateGroups: [CreateTemplateGroup!]!) {
|
|
importTemplateGroups(templateGroups: $templateGroups) {
|
|
groupName
|
|
groupid
|
|
message
|
|
error {
|
|
message
|
|
code
|
|
data
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
### Variables
|
|
This sample data contains template groups used to model application-level permissions on the Zabbix side.
|
|
The data is based on the `Permissions/` groups from `src/testdata/templates/zbx_default_templates_vcr.yaml`.
|
|
|
|
```json
|
|
{
|
|
"templateGroups": [
|
|
{
|
|
"uuid": "43aab460fe444f18886b19948413b7e3",
|
|
"groupName": "Permissions/ConstructionSite"
|
|
},
|
|
{
|
|
"groupName": "Permissions/Automatism"
|
|
},
|
|
{
|
|
"groupName": "Permissions/Automatism/Status"
|
|
}
|
|
]
|
|
}
|
|
```
|