controllers_v2.tenants_controller module¶
-
class
controllers_v2.tenants_controller.
TenantsController
(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.
-
get_tenant_swift
(tenant_id=None)[source]¶ Does a GET request to /tenants/swift.
Get a Swift configuration.
- Args:
tenant_id (string, optional): Specifies the tenant Id.
- Returns:
SwiftParams: 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_tenant_swift
(body)[source]¶ Does a PUT request to /tenants/swift.
Update a Swift configuration.
- Args:
- body (SwiftParams): Specifies the parameters to update a Swift
configuration.
- Returns:
SwiftParams: 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.
-