controllers.interface_controller module

class controllers.interface_controller.InterfaceController(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.

list_interface(node_id=None, cache=None, bond_interface_only=None, iface_group_assigned_only=None, include_uplink_switch_info=None, include_bond_slave_details=None)[source]

Does a GET request to /public/interface.

Show network interfaces.

Args:

node_id (int, optional): Specifies the id of the node. cache (bool, optional): Specifies if interface is cached info. bond_interface_only (bool, optional): Specifies if only show bond

interface info.

iface_group_assigned_only (bool, optional): Specifies if only show

interface group assigned interface info.

include_uplink_switch_info (bool, optional): Specifies if include

uplink switch info.

include_bond_slave_details (bool, optional): Specifies if include

bond slave detailed info.

Returns:

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

update_interface(body=None)[source]

Does a PUT request to /public/interface.

Returns the update status upon completion.

Args:

body (Interface, optional): TODO: type description here. Example:

Returns:

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