# \#rest-api

**URL:** https://community.icinga.com/tag/rest-api/227.md

[Latest](https://community.icinga.com/latest.md) · [Categories](https://community.icinga.com/categories.md) · [Tags](https://community.icinga.com/tags.md)

---

## [Remove custom vars from host object using API](https://community.icinga.com/t/remove-custom-vars-from-host-object-using-api/15123)

<div class="topic-metadata">

**Author:** [@dojjan](https://community.icinga.com/u/dojjan)\
**Replies:** 2\
**Last updated:** [September 4, 2025, 11:35am UTC](https://community.icinga.com/t/remove-custom-vars-from-host-object-using-api/15123 "2025-09-04T11:35:32Z")

</div>

Hello! Is there a way to remove certain keys from the host.attrs.vars dictionary using the Icinga REST API? I can with no problem modify or add key values using POST, but haven’t found a way to remove certain key value…

---

## [How can I define a read-only API user](https://community.icinga.com/t/how-can-i-define-a-read-only-api-user/14597)

<div class="topic-metadata">

**Author:** [@jeanm](https://community.icinga.com/u/jeanm)\
**Replies:** 5\
**Last updated:** [February 17, 2025, 8:10am UTC](https://community.icinga.com/t/how-can-i-define-a-read-only-api-user/14597 "2025-02-17T08:10:15Z")

</div>

Hello, People in my organisation wish to aggregate data from different sources and make reports. One of the reports must show the proportion of servers that are under monitoring vs. those that aren’t. So they came to …

---

## [Massively change hostname objects](https://community.icinga.com/t/massively-change-hostname-objects/14294)

<div class="topic-metadata">

**Author:** [@bisontim](https://community.icinga.com/u/bisontim)\
**Replies:** 4\
**Last updated:** [November 14, 2024, 8:13am UTC](https://community.icinga.com/t/massively-change-hostname-objects/14294 "2024-11-14T08:13:53Z")

</div>

Hi. On my system, I need to change, massively, hostname from fqdn to hostname without domain suffix. i.e. machine1.local.domain machine2.local.domain . . to machine1 machine2 . . How could I execute this mass…

---

## [Icinga2 REST API variable synchronization with Icinga Director. #2887](https://community.icinga.com/t/icinga2-rest-api-variable-synchronization-with-icinga-director-2887/14212)

<div class="topic-metadata">

**Author:** [@hayt](https://community.icinga.com/u/hayt)\
**Replies:** 1\
**Last updated:** [October 19, 2024, 12:28am UTC](https://community.icinga.com/t/icinga2-rest-api-variable-synchronization-with-icinga-director-2887/14212 "2024-10-19T00:28:23Z")

</div>

Expected Behavior Icinga Director should be able to update a variable object if the object has a null value and the value is already provided by Icinga Director for example in Service Template or Service Set. Current Be…

---

## [Multiple Service Check Results using process-check-result](https://community.icinga.com/t/multiple-service-check-results-using-process-check-result/14190)

<div class="topic-metadata">

**Author:** [@a7pQad](https://community.icinga.com/u/a7pQad)\
**Replies:** 3\
**Last updated:** [October 14, 2024, 6:52am UTC](https://community.icinga.com/t/multiple-service-check-results-using-process-check-result/14190 "2024-10-14T06:52:22Z")

</div>

Problem Statement - We are performing Passive Checks on the hosts for all required services. We would like to send all the Checks result using process-check-result through REST API. I can successfully send the result us…

---

## [Add or modify service set via API](https://community.icinga.com/t/add-or-modify-service-set-via-api/6745)

<div class="topic-metadata">

**Author:** [@akontiy](https://community.icinga.com/u/akontiy)\
**Replies:** 2\
**Last updated:** [June 4, 2024, 4:32am UTC](https://community.icinga.com/t/add-or-modify-service-set-via-api/6745 "2024-06-04T04:32:00Z")

</div>

Hi guys! I can get info about the service set make this request: curl -k -s -u 'director' -H 'Accept: application/json' -X GET 'https://icinga-host.com/director/serviceset?name=test\_set' My question is, can I import …

---

## [Migration from Livestatus to Rest API](https://community.icinga.com/t/migration-from-livestatus-to-rest-api/13587)

<div class="topic-metadata">

**Author:** [@monigacom](https://community.icinga.com/u/monigacom)\
**Replies:** 5\
**Last updated:** [May 23, 2024, 2:49pm UTC](https://community.icinga.com/t/migration-from-livestatus-to-rest-api/13587 "2024-05-23T14:49:33Z")

</div>

Currently I’ve Icinga2 2.11.11 and using Livestatus. Planning on migrating to Rest API. Has anyone out there done such migration and can share the experience especially on large scale Icinga2 implementation? Any gotch…

---

## [Querying Service Objects with Custom Variable via Icinga Director's REST API](https://community.icinga.com/t/querying-service-objects-with-custom-variable-via-icinga-directors-rest-api/13249)

<div class="topic-metadata">

**Author:** [@bkranendonk](https://community.icinga.com/u/bkranendonk)\
**Replies:** 1\
**Last updated:** [February 14, 2024, 8:03am UTC](https://community.icinga.com/t/querying-service-objects-with-custom-variable-via-icinga-directors-rest-api/13249 "2024-02-14T08:03:37Z")

</div>

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, …

---

## [Director API vs Icinga API](https://community.icinga.com/t/director-api-vs-icinga-api/13084)

<div class="topic-metadata">

**Author:** [@starchaserV0](https://community.icinga.com/u/starchaserV0)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 7:24am UTC](https://community.icinga.com/t/director-api-vs-icinga-api/13084 "2024-01-03T07:24:57Z")

</div>

Hi Guys, I am a bit new to icinga advanced topics. I have setup a test icinga env. I was able to successfully create hosts via the director API. Is there a way to create hosts via the icinga API itself not using the dir…

---

## [Read Downtimes with REST-API objects/query/Downtime](https://community.icinga.com/t/read-downtimes-with-rest-api-objects-query-downtime/11899)

<div class="topic-metadata">

**Author:** [@TheCrow](https://community.icinga.com/u/TheCrow)\
**Replies:** 0\
**Last updated:** [April 28, 2023, 12:27pm UTC](https://community.icinga.com/t/read-downtimes-with-rest-api-objects-query-downtime/11899 "2023-04-28T12:27:00Z")

</div>

I try to read the Downtimes in our icinga2 system with this simple example from an other site: curl -k -s -u test:\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ‘https://localhost:5665/v1/objects/downtimes?pretty=1’ -X POST -H ‘Accept: application/js…

---

## [Check ValidUntil certificate by api](https://community.icinga.com/t/check-validuntil-certificate-by-api/9606)

<div class="topic-metadata">

**Author:** [@bisontim](https://community.icinga.com/u/bisontim)\
**Replies:** 0\
**Last updated:** [April 6, 2022, 1:32pm UTC](https://community.icinga.com/t/check-validuntil-certificate-by-api/9606 "2022-04-06T13:32:00Z")

</div>

Hello. I need to check the expiration of Keystore certificates on SAP BTP. I found that Keystore entries are exposed as OData. I could use : https:///api/v1/KeystoreEntries i could use ValidNotAfter to check validity…

---

## [Reschedule check for one service on one host](https://community.icinga.com/t/reschedule-check-for-one-service-on-one-host/9522)

<div class="topic-metadata">

**Author:** [@EchoBravo](https://community.icinga.com/u/EchoBravo)\
**Replies:** 2\
**Last updated:** [March 28, 2022, 11:04am UTC](https://community.icinga.com/t/reschedule-check-for-one-service-on-one-host/9522 "2022-03-28T11:04:57Z")

</div>

Hi, I want to use the API to reschedule a check for a single service on a single host. I thought the reschedule-check endpoint made the most sense seeing as I want to be able to force it, however I cannot seem to unders…

---

## [Help needed with Director API behavior when trying to add data list entries](https://community.icinga.com/t/help-needed-with-director-api-behavior-when-trying-to-add-data-list-entries/8614)

<div class="topic-metadata">

**Author:** [@michel\_w](https://community.icinga.com/u/michel_w)\
**Replies:** 5\
**Last updated:** [November 11, 2021, 9:41am UTC](https://community.icinga.com/t/help-needed-with-director-api-behavior-when-trying-to-add-data-list-entries/8614 "2021-11-11T09:41:57Z")

</div>

Hello all, i am currently facing an interesting problem using the Director Rest-API. Trying to add entries to a data list via the API, is resulting in really weird behavior looking at the result in the webUI. First o…

---

## [Limit results on REST API for pagination](https://community.icinga.com/t/limit-results-on-rest-api-for-pagination/8292)

<div class="topic-metadata">

**Author:** [@Melf11](https://community.icinga.com/u/Melf11)\
**Replies:** 6\
**Last updated:** [September 28, 2021, 2:30pm UTC](https://community.icinga.com/t/limit-results-on-rest-api-for-pagination/8292 "2021-09-28T14:30:03Z")

</div>

Hey there, is there any possibilty to limit my results on REST API calls? I need it for a pagination, so i have to set a limit and at least a starting point for the results. So something like this: \<icinga2RestAPI\>/v1…

---

## [REST services and downtime\_depth](https://community.icinga.com/t/rest-services-and-downtime-depth/8130)

<div class="topic-metadata">

**Author:** [@doph](https://community.icinga.com/u/doph)\
**Replies:** 2\
**Last updated:** [September 3, 2021, 2:23pm UTC](https://community.icinga.com/t/rest-services-and-downtime-depth/8130 "2021-09-03T14:23:26Z")

</div>

Hi, I query the rest-api for all services with service.state != ServiceOK (/v1/objects/services), but downtime\_depth is only set for services which are explicitly in downtime, if I have a host in icinga which is in down…

---

## [Icinga PowerShell REST Api - Event code 1500?](https://community.icinga.com/t/icinga-powershell-rest-api-event-code-1500/6310)

<div class="topic-metadata">

**Author:** [@lewgegg](https://community.icinga.com/u/lewgegg)\
**Replies:** 0\
**Last updated:** [December 15, 2020, 4:09pm UTC](https://community.icinga.com/t/icinga-powershell-rest-api-event-code-1500/6310 "2020-12-15T16:09:48Z")

</div>

Hello, I’m trying to setup the REST api for the Icinga Powershell framework but can’t seem to be able to connect to it due to an error which shows up in the event logs (event 1500): A client connection could not be es…
