Here is the documentation I am using: http://docs.splunk.com/DocumentationStatic/PythonSDK/1.1/client.html
I am able to successfully create a new app using:
applications.create('appName')
It will show up in Splunk Web and all is well.
However, I need to edit various attributes of the new app I just created. Most notably:
`access.perms, content.owner, access.sharing`
Splunk docs state that the `applications.create()` function takes an optional value `**params` which is a dictionary where its keys match the various attribute names of the application.
So far I have only been able to change the description field using this method:
args = {'description': 'a simple app'}
applications.create('appName', **args)
This works and is reflected in Splunk Web.
The problem is that I can't seem to alter any other fields using this method such as the ones mentioned above.
If I try, it will not give me any errors, and simply not make any changes.
I am aware that there is another function called `application.update(**params)` which is supposed to update any field(s) specified in params that exist in a Splunk application object. For example:
args = {'author': 'Horrace Mann', 'description': 'an updated description'}
applications['myApp'].update(**args)
However, it yields the same result as using `application.create()`, where I am able to alter the description, but nothing else. (also with no errors provided the keys match)
↧