Hello guys,
I want to write a small script that lists all the created, deleted and modified rules and host objects for a given session/revision uid. The management API reference guide includes two possible commands that should do the job:
- show session uid <session_uid>
>> This lists all the general details of a session like e.g. the user, the change sum, the description, the application that has been used in order to publish the given session etc. Here everything is working as expected
- show changes from-session <session_uid> to-session <session_uid>
>> This command lists all changes in a given time or session frame... so this means I can use the above mentioned "from-session" => "two-sessions" arguments or the "from-date" => "to-date" arguments. However it seems like that it is not possible to list all changes from just one single session. The seemingly required arguments have default values if no UIDs for the sessions are specified:
from-session | string Default: The session before to-session |
to-session | string Default: The last published session |
But here lays another problem - as the from-session defaults to "the session before to-session" while the to-session argument defaults to "the last published session", this leads to the result that the command gives you the last two sessions if you do not specify any arguments. Still, it does not allow you to just see the changes from a single session. My idea was to give the from and to argument the same session uid, but this results in the following error:
> show changes from-session <my_session_uid1> to-session <my_session_uid1>
---------------------------------------------
Time: [15:43:07] 27/3/2019
---------------------------------------------
"Show Changes" failed (100%)
tasks:
- task-id: "abcdef01-2345-6789-b58a-3559264bf1dc"
task-name: "Show Changes"
status: "failed"
progress-percentage: 100
progress-description: "Diff operation failed: Unable to build the diff reply."
suppressed: false
So the command requires a diff in between both parameters while a simple "show changes from-uid" or "show changes uid" does not exist. Do I miss something or is there really no possibility to track the changes of a given single session?
Regards,
Maik