mirror of https://github.com/Icinga/icinga2.git
Merge pull request #8943 from Icinga/bugfix/api-add-comment-expiry-docs
Docs: Describe parameter 'expiry' in 'add-comment' API action
This commit is contained in:
commit
4c90709fc6
|
@ -1277,9 +1277,10 @@ Adds a `comment` from an `author` to services or hosts.
|
||||||
Send a `POST` request to the URL endpoint `/v1/actions/add-comment`.
|
Send a `POST` request to the URL endpoint `/v1/actions/add-comment`.
|
||||||
|
|
||||||
Parameter | Type | Description
|
Parameter | Type | Description
|
||||||
----------|--------|--------------
|
----------|-----------|--------------
|
||||||
author | string | **Required.** Name of the author, may be empty.
|
author | string | **Required.** Name of the author, may be empty.
|
||||||
comment | string | **Required.** Comment text, may be empty.
|
comment | string | **Required.** Comment text, may be empty.
|
||||||
|
expiry | Timestamp | **Optional.** Comment expiry time.
|
||||||
|
|
||||||
In addition to these parameters a [filter](12-icinga2-api.md#icinga2-api-filters) must be provided. The valid types for this action are `Host` and `Service`.
|
In addition to these parameters a [filter](12-icinga2-api.md#icinga2-api-filters) must be provided. The valid types for this action are `Host` and `Service`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue