diff --git a/doc/API/centreon-api-v2.html b/doc/API/centreon-api-v2.html index 103fd223e7f..eb230ebd078 100644 --- a/doc/API/centreon-api-v2.html +++ b/doc/API/centreon-api-v2.html @@ -356,7 +356,7 @@
successful operation
Forbidden
Internal Server Error
-Acknowledgment
comment | string Short description of the acknowledgement |
host_id | integer <int64> Unique id of the host |
is_notify_contacts | boolean Indicates whether notification is send to the contacts linked to the host or service @@ -376,7 +376,7 @@ |
successful operation
Forbidden
Internal Server Error
-Acknowledgment
comment | string Short description of the acknowledgement |
host_id | integer <int64> Unique id of the host |
is_notify_contacts | boolean Indicates whether notification is send to the contacts linked to the host or service @@ -433,7 +433,7 @@ |
successful operation
Forbidden
Internal Server Error
-List all downtimes of one host
The available parameters to search / sort_by are:
By default, the host-related services downtimes are not displayed.
+To display them, set the URI parameter "show_services" to true
.
host_id required | integer <int64> ID of host |
limit | integer (RequestParameters.limit) >= 1 Example: limit=20 Max items per pages |
page | integer (RequestParameters.page) >= 1 Example: page=1 Number of the page requested |
sort_by | any Used to sort the request - |
search | any Used to search with specifics parameters + |
search | any Used to search with specifics parameters + |
show_services | boolean Indicates whether we need to display the host-related services downtimes or not (by default: false) |
successful operation
Forbidden
Internal Server Error
-successful operation
Forbidden
Internal Server Error
-successful operation
Forbidden
Internal Server Error
-host_id required | integer <int64> ID of host + get /monitoring/hosts/{host_id}/services/{service_id}/downtimes http://localhost/centreon/api/beta/monitoring/hosts/{host_id}/services/{service_id}/downtimes Response samples
Content type application/json Copy Expand all Collapse all {
Add a downtime of one host-related servicepath Parameters
Request Body schema: application/jsonDowntime
Responses204 Command sent 403 Forbidden 500 Internal Server Error - post /monitoring/hosts/{host_id}/services/{service_id}/downtimes http://localhost/centreon/api/beta/monitoring/hosts/{host_id}/services/{service_id}/downtimes Request samples
Content type application/json Copy Expand all Collapse all {
Response samples
Content type application/json Copy Expand all Collapse all {
post /monitoring/hosts/{host_id}/services/{service_id}/downtimes http://localhost/centreon/api/beta/monitoring/hosts/{host_id}/services/{service_id}/downtimes Request samples
Content type application/json Copy Expand all Collapse all {
Response samples
Content type application/json Copy Expand all Collapse all {
|
successful operation
Forbidden
Internal Server Error
-downtime_id required | integer <int64> ID of downtime + get /monitoring/downtimes http://localhost/centreon/api/beta/monitoring/downtimes Response samples
Content type application/json Copy Expand all Collapse all {
Display one downtimepath Parameters
Responses200 successful operation 403 Forbidden 500 Internal Server Error - get /monitoring/downtimes/{downtime_id} http://localhost/centreon/api/beta/monitoring/downtimes/{downtime_id} Response samples
Content type application/json Copy Expand all Collapse all {
Cancel a downtimepath Parameters
Responses200 successful operation 403 Forbidden 500 Internal Server Error - get /monitoring/hosts http://localhost/centreon/api/beta/monitoring/hosts Response samples
Content type application/json Copy Expand all Collapse all {
get /monitoring/hosts http://localhost/centreon/api/beta/monitoring/hosts Response samples
Content type application/json Copy Expand all Collapse all {
Find host by IDRetuns a single host with full details and some details about its services path Parameters
Responses200 successful operation 403 Forbidden 404 Host not found 500 Internal Server Error - get /monitoring/hosts/{hostId} http://localhost/centreon/api/beta/monitoring/hosts/{hostId} Response samples
Content type application/json Copy Expand all Collapse all {
get /monitoring/hosts/{hostId} http://localhost/centreon/api/beta/monitoring/hosts/{hostId} Response samples
Content type application/json Copy Expand all Collapse all {
get /monitoring/hosts/{hostId}/services http://localhost/centreon/api/beta/monitoring/hosts/{hostId}/services Response samples
Content type application/json Copy Expand all Collapse all {
get /monitoring/hosts/{hostId}/services http://localhost/centreon/api/beta/monitoring/hosts/{hostId}/services Response samples
Content type application/json Copy Expand all Collapse all {
Find service by ID related to a hostRetuns a single host with full details path Parameters
Responses200 successful operation 403 Forbidden 404 Host or service not found 500 Internal Server Error - get /monitoring/hosts/{hostId}/services/{serviceId} http://localhost/centreon/api/beta/monitoring/hosts/{hostId}/services/{serviceId} Response samples
Content type application/json Copy Expand all Collapse all {
get /monitoring/hosts/{hostId}/services/{serviceId} http://localhost/centreon/api/beta/monitoring/hosts/{hostId}/services/{serviceId} Response samples
Content type application/json Copy Expand all Collapse all {
|
successful operation
Forbidden
Internal Server Error
-