- Director version: 2.12.1
- Icinga Web 2 version and modules:
|Icinga Web 2 Version |2.12.1|
|Git commit |cd2daeb2cb8537c633d343a29eb76c54cd2ebbf2|
|PHP Version |7.4.33|
|Git commit date |2023-11-15|
Hi Icinga Community,
I’m integrating Icinga Director with our systems and need help using the REST API to find service objects with a specific custom variable (env
= “production”). Despite authenticating and executing basic GET requests successfully, my attempts to filter service objects by custom variables have hit a snag.
Attempts like GET director/service?filters=vars.env=prod
and director/service?vars.env=production
result in:
{
"error": "Object is required"
}
My goals are:
- Correctly query service objects with a specific custom variable value.
- Understand the proper API endpoint and request format for this action.
Insights or documentation references would be hugely appreciated. Thanks!