Skip to content

Pr/2#3

Closed
fmnisme wants to merge 70 commits into
masterfrom
pr/2
Closed

Pr/2#3
fmnisme wants to merge 70 commits into
masterfrom
pr/2

Conversation

@fmnisme

@fmnisme fmnisme commented Sep 2, 2016

Copy link
Copy Markdown
Owner

No description provided.

Tobias von der Krone added 30 commits March 7, 2016 19:46
This enables the usage of certificates for authentication
Using the 'attrs' list in the payload you can limit the
attributes fetched for the object to list
Raise an exception if the object type does not exist
The function converts an Icinga 2 object type to the name which
is used in the url or raises an exception if the object type does
not exist.
Add parameters "templates" and "attrs". Also add docstring
with examples.
Rename parameter and add docstring with examples.
Add docstring with examples and change variable names for
better reading.
Sometimes "payload" and sometimes "config" was used for the
payload of the request.
The Icinga 2 API doesn't like e.g. https://my-host:5665//v1/objects/hosts
The parameters are necessary to work correctly.
The config file has an ini format with section [api]
Tobias von der Krone added 29 commits March 17, 2016 18:34
Add objects.get() function to get only one object.
The result was a dictionary with the only key 'results' (for a successful
request). Now return the value of request['results'].
Check if either username/password of certificate is defined.
Rename the function and make it public.
Using the plural "filters" suggests that the type is a list but it is a string.
'filter_vars' allows you to use dictionary keys as variables in filter expressions
which then gets replaced with its value.
@fmnisme fmnisme closed this Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant