controllers.ip_controller module

class controllers.ip_controller.IpController(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.

configure_ip(body=None)[source]

Does a PUT request to /public/ip

Configure the specfied IP settings on the Cohesity Cluster.

Args:

body (IpConfig): TODO: type description here. Example:

Returns:

IpConfig: 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.

unconfigure_ip(body=None)[source]

Does a DELETE request to /public/ip.

Returns error if op fails.

Args:
body (IpUnconfig, optional): update user quota

params.

Returns:

void: Response from the API. No Content

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.