fix: README add initial query and mutations desciptions.
This commit is contained in:
parent
85a926e5bb
commit
944ae2bfbb
1 changed files with 28 additions and 0 deletions
28
README.md
28
README.md
|
|
@ -101,6 +101,34 @@ npm run start
|
|||
|
||||
The GraphQL API will be available at `http://localhost:4000/`
|
||||
|
||||
### Available Queries and Mutations
|
||||
|
||||
#### Queries
|
||||
- `apiVersion` - Returns the API build version
|
||||
- `zabbixVersion` - Returns the version of the connected Zabbix instance
|
||||
- `login` - Authenticates with Zabbix and returns an authentication token
|
||||
- `logout` - Logs out from Zabbix, invalidating the current session
|
||||
- `allHosts` - Returns all hosts and their items
|
||||
- `allDevices` - Returns all devices and their items (hosts with deviceType)
|
||||
- `allHostGroups` - Returns all host groups
|
||||
- `locations` - Returns all locations used by hosts
|
||||
- `exportHostValueHistory` - Exports value history for Zabbix items
|
||||
- `userPermissions` - Returns all user permissions
|
||||
- `hasPermissions` - Checks if the current user has requested permissions
|
||||
- `exportUserRights` - Exports user rights (roles and groups)
|
||||
- `templates` - Returns templates
|
||||
- `allTemplateGroups` - Returns all template groups
|
||||
|
||||
#### Mutations
|
||||
- `createHost` - Creates a single host in Zabbix
|
||||
- `importHostGroups` - Mass import Zabbix host groups
|
||||
- `importHosts` - Mass import hosts and assign them to host groups
|
||||
- `importUserRights` - Import user rights (roles and groups) into Zabbix
|
||||
- `importTemplateGroups` - Mass import template groups
|
||||
- `importTemplates` - Mass import templates
|
||||
- `deleteTemplates` - Delete templates by their IDs or by a name pattern
|
||||
- `deleteTemplateGroups` - Delete template groups by their IDs or by a name pattern
|
||||
|
||||
### Production Build
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue