Open gaugstein opened 5 years ago
Hello together, thats the result of the API-Call that looks like the ui-weburl:
curl -sSku user:pwd -H 'Accept: application/json' -X GET 'http://127.0.0.1:86/icingaweb2/director/serviceset/services?name=anything-serviceset' { "description": "ServiceSet for Anything", "object_name": "anything-serviceset, "object_type": "template" } {"status":"error","message":"Not found"} < === ??
In advance: icingacli isn't an option ;).
When i get the service information from icinga2, the serviceset definition is only a reference:
... "source_location": { "first_column": 1.0, "first_line": 2329.0, "last_column": 62.0, "last_line": 2329.0, "path": "/var/lib/icinga2/api/packages/director/52761ee7-0835-4152-8ae6-d3d59ae9804f/zones.d/director-global/servicesets.conf" }, ...
Is there any solution for us, to get the services out of the serviceset? Regards ..
Like to know that too. We have to automate the removing all services from a serviceset and re-add new entries.
Hello together, thats the result of the API-Call that looks like the ui-weburl:
curl -sSku user:pwd -H 'Accept: application/json' -X GET 'http://127.0.0.1:86/icingaweb2/director/serviceset/services?name=anything-serviceset' { "description": "ServiceSet for Anything", "object_name": "anything-serviceset, "object_type": "template" } {"status":"error","message":"Not found"} < === ??
In advance: icingacli isn't an option ;).
When i get the service information from icinga2, the serviceset definition is only a reference:
... "source_location": { "first_column": 1.0, "first_line": 2329.0, "last_column": 62.0, "last_line": 2329.0, "path": "/var/lib/icinga2/api/packages/director/52761ee7-0835-4152-8ae6-d3d59ae9804f/zones.d/director-global/servicesets.conf" }, ...
Is there any solution for us, to get the services out of the serviceset? Regards ..