- Moved GraphQL query samples into a new `docs/queries` directory for better organization. - Added new queries and mutations, including `createHost.graphql` and `GetApiVersion.graphql`. - Introduced `mcp-config.yaml` and updated `docker-compose.yml` for MCP integration. - Updated IntelliJ `.idea/workspace.xml` settings to reflect project changes. - Added new how-to guides (`docs/howtos`) for permissions, tags, MCP integration, and schema usage. - Enhanced tests by updating file paths and improving sample data locations. - Refined permissions and host group structures in `zabbix-hostgroups.ts` and `resolvers.ts`.
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"
|
|
}
|
|
]
|
|
}
|
|
```
|