controllers.packages_controller module

class controllers.packages_controller.PackagesController(config=None, client=None, call_back=None)[source]

Bases: cohesity_management_sdk.controllers.base_controller.BaseController

A Controller to access Endpoints in the cohesity_management_sdk API.

create_download_package(body)[source]

Does a POST request to /public/packages/url.

Sends a request to download a package from a URL to the Cluster.

Args:
body (DownloadPackageParameters): TODO: type description here.

Example:

Returns:

DownloadPackageResult: Response from the API. Success

Raises:
APIException: When an error occurs while fetching the data from

the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.

list_packages()[source]

Does a GET request to /public/packages.

Sends a request retrieve information about all packages which are currently installed on the Cluster.

Returns:

list of PackageDetails: Response from the API. Success

Raises:
APIException: When an error occurs while fetching the data from

the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.