- Added detailed JSDoc documentation to all core datasource classes in src/datasources/ - Documented execution logic classes in src/execution/ - Added TSDoc to API utility functions and resolvers in src/api/ - Documented shared models and enums in src/model/ |
||
|---|---|---|
| .. | ||
| from_zabbix_docs | ||
| README.md | ||
| sample_all_devices_query.graphql | ||
| sample_all_host_groups_query.graphql | ||
| sample_all_hosts_query.graphql | ||
| sample_all_template_groups_query.graphql | ||
| sample_delete_template_groups_mutation.graphql | ||
| sample_delete_templates_mutation.graphql | ||
| sample_distance_tracker_test_query.graphql | ||
| sample_export_user_rights_query.graphql | ||
| sample_import_distance_tracker_template.graphql | ||
| sample_import_ground_value_checker_template.graphql | ||
| sample_import_host_groups_mutation.graphql | ||
| sample_import_host_template_groups_mutation.graphql | ||
| sample_import_hosts_mutation.graphql | ||
| sample_import_permissions_template_groups_mutation.graphql | ||
| sample_import_simulated_bt_template.graphql | ||
| sample_import_templates_mutation.graphql | ||
| sample_import_user_rights_mutation.graphql | ||
| sample_import_weather_sensor_template.graphql | ||
| sample_push_geojson_history.graphql | ||
| sample_templates_query.graphql | ||
| sample_tracked_device_query.graphql | ||
Sample Queries & Mutations
This directory contains practical examples of GraphQL operations for the Zabbix GraphQL API. You can use these as templates for your own automation or integration tasks.
📁 Available Samples
🖥️ Hosts
- Query All Hosts: Retrieve basic host information and inventory.
- Import Hosts: Create or update multiple hosts with tags and group assignments.
- Query All Devices: Query specialized devices using the
allDevicesquery. - Tracked Device Query: Query simulated or tracked devices.
- Push GeoJSON History: Push multiple GeoJSON data points to a tracked device.
- Distance Tracker Test Query: Comprehensive query for testing specialized
DistanceTrackerDevicetypes.
📄 Templates
- Query Templates: List available templates and their items.
- Import Templates: Create or update complex templates with item definitions and preprocessing.
- Import Distance Tracker Template: Example of importing a template for a schema extension.
- Import Simulated BT Template: Example of importing a template for a simulated device.
- Delete Templates: Remove templates by ID or name pattern.
📂 Template Groups
- Import Host Template Groups: Create groups specifically for host templates.
- Import Permissions Template Groups: Create groups for the permission system.
- Delete Template Groups: Remove template groups by ID or name pattern.
🔐 User Rights
- Export User Rights: Export existing user roles and groups for auditing or migration.
- Import User Rights: Provision user roles and group permissions at scale.
🍳 Related Recipes
For step-by-step guides on how to use these operations in common scenarios, see the Cookbook.