api.utilities

Cisco vManage Utilities API Methods.

Module Contents

class api.utilities.Utilities(session, host, port=443)[source]

Bases: object

Access to Various vManage Utilitiesinstance.

vManage has several utilities that are needed for correct execution of applications against the API. For example, this includes waiting for an action to complete before moving onto the next task.

get_active_count(self)[source]

Provides number of active tasks on vManage.

Returns

All data associated with a response.

Return type

result (dict)

get_vmanage_version(self)[source]
waitfor_action_completion(self, action_id)[source]
upload_file(self, input_file)[source]

Upload a file to vManage.

Parameters

input_file (str) – The name of the file to upload.

Returns

The status of the file upload.

Return type

upload_status (str)