controllers_v2.protected_objects_controller module

class controllers_v2.protected_objects_controller.ProtectedObjectsController(config=None, client=None, call_back=None)[source]

Bases: cohesity_management_sdk.controllers_v2.base_controller.BaseController

A Controller to access Endpoints in the cohesity_management_sdk API.

create_perform_action_on_protect_objects(body)[source]

Does a POST request to /data-protect/protected-objects/actions.

Perform actions on Protected Objects.

Args:
body (ProtectdObjectsActionRequest): Specifies the parameters to

perform an action on an already protected object.

Returns:

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

create_protect_objects_of_any_type(body)[source]

Does a POST request to /data-protect/protected-objects.

Create Protect Objects Backup.

Args:
body (CreateProtectedObjectsRequest): Specifies the parameters to

protect objects.

Returns:

CreateProtectedObjectsResponse: 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_protected_objects_of_any_type(id, body)[source]

Does a PUT request to /data-protect/protected-objects/{id}.

Update Protected object backup configuration given a object id.

Args:

id (long|int): Specifies the id of the Protected Object. body (UpdateProtectedObjectsRequest): Specifies the parameters to

perform an update on protected objects.

Returns:

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