Conversation
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]
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.