Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Show downntime resources (#5705)
Browse files Browse the repository at this point in the history
* feat(downtime api): show downtime resources

* feat(api downtime): update doc

* feat(api downtime): update postman test

* fix(test postman): fix acl menu
  • Loading branch information
loiclau authored and MatthieuMan committed Sep 27, 2017
1 parent 8fe21da commit 3f5d848
Show file tree
Hide file tree
Showing 6 changed files with 4,414 additions and 2,750 deletions.
17 changes: 16 additions & 1 deletion doc/en/api/clapi/objects/downtimes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In order to list available recurring downtimes, use the **SHOW** action::
[root@centreon ~]# ./centreon -u admin -p centreon -o DOWNTIME -a show
id;name;description;activate
1;mail-backup;sunday backup;1
1;my downtime;a description;1
2;my downtime;a description;1

Columns are the following:

Expand All @@ -33,6 +33,21 @@ Activate Whether or not the downtime is activated
================================= ===========================================================================


In order to show resources of a downtime, use the **Show** action with parameters::

[root@centreon ~]# ./centreon -u admin -p centreon -o DOWNTIME -a show -v "mail-backup;host"

The parameters are the following:

========= ============================================
Order Description
========= ============================================
1 Name of the downtime

2 (optional) Object type (host, hg, service, sg)

========= ============================================

Add
---

Expand Down
14 changes: 14 additions & 0 deletions doc/fr/api/clapi/objects/downtimes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ Activate Whether or not the downtime is activated

================================= ===========================================================================

In order to show resources of a downtime, use the **Show** action with parameters::

[root@centreon ~]# ./centreon -u admin -p centreon -o DOWNTIME -a show -v "mail-backup;host"

The parameters are the following:

========= ============================================
Order Description
========= ============================================
1 Name of the downtime

2 (optional) Object type (host, hg, service, sg)

========= ============================================

Add
---
Expand Down
1 change: 1 addition & 0 deletions features/RestApi.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Feature: REST API
I want REST API in Centreon Web
So that I can develop software interfacing with Centreon Web

@critical
Scenario: REST API tests
Given a Centreon server with REST API testing data
When REST API are called
Expand Down
Loading

0 comments on commit 3f5d848

Please sign in to comment.