controllers.tags_controller module

class controllers.tags_controller.TagsController(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.

apply_tags(body=None)[source]

Does a PUT request to /public/tags/apply.

Apply Tags on existing objects in the Cohesity Cluster.

Args:

body (TagsOperationParameters, optional): Request to add or update document tags.

Returns:

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

remove_tags(body=None)[source]

Does a PUT request to /public/tags/remove.

Remove Tags on existing objects in the Cohesity Cluster.

Args:
body (TagsOperationParameters, optional): Request to add or update

document tags.

Returns:

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