Stored sessions (REST)

The AppMon Server offers REST interfaces to manage stored sessions. Using this interfaces you can list them, get their metadata, export, import and delete them.

List stored sessions

This request lists all stored sessions that are available to the user that requested the call.

GET https://<server>:8021/rest/management/storedsessions Produces application/xml

Deprecated interface to list stored session IDs

Deprecated

See List Stored Sessions for more information.

This request lists IDs of all stored sessions that are available to the user who requested the call.

GET https://<server>:8021/rest/management/sessions Produces text/xml

Metadata

This request shows comprehensive details of a stored session. Check at the returned XML for more information.

Note

Ensure to encode the id beforehand as it may otherwise lead to routing errors due to possible slashes in the id.

GET https://<server>:8021/rest/management/sessions/storedsessions/<id>

Import and export

Import stored sessions

Use this request to upload and import a stored session.

POST https://<server>:8021/rest/management/storedsessions

Export stored sessions

Use this request to export a stored session. For large stored sessions, the size of the downloaded file can be very large. Make sure the download machine has enough free space to ensure that the download is successful.

Note

Encode the id beforehand as it may otherwise lead to routing errors due to possible slashes in the id.

To retrieve the live data, first store a session using rest/management/profiles/<SESSIONNAME>/storepurepaths.

Concurrent session downloads is limited to two to prevent AppMon Server overload. Additional download requests are delayed until the first requests are completed.

GET https://<server>:8021/rest/management/storedsessions/<id>.dts

Deprecated interface to export stored sessions

Deprecated

This interface is removed in future releases. Use the Export stored sessions interface instead.

GET https://<server>:8021/rest/management/sessions/<sessionname>/export

Delete

Delete individual stored session

Use this request to delete a stored session which is not continuously recorded. Trying to delete a continuously recorded session returns an error.

Note

Encode the id beforehand as it may otherwise lead to routing errors due to possible slashes in the id.

DELETE https://<server>:8021/rest/management/storedsessions/<id>

Delete multiple stored sessions

Use this request to delete every non-continuous stored session that matches a specified session type and is older than a specified number of minutes. Additionally the deletion request can be restricted to stored sessions of a specific system profile.

DELETE https://<server>:8021/rest/management/storedsessions?type=<sessiontype>&amp;olderthanminutes=<age-in-minutes>

Reanalyze

Start session reanalysis

GET https://<server>:8021/rest/management/sessions/<sessionname>/reanalyze

Check reanalysis status

GET https://<server>:8021/rest/management/sessions/<sessionname>/reanalyze/finished