controllers.certificates_controller module¶
-
class
controllers.certificates_controller.
CertificatesController
(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.
-
create_deploy_host_certificate
(body=None)[source]¶ Does a POST request to /public/certificates/global.
Returns the global certificate for a single or multiple hosts.
- Args:
- body (DeployCertParameters, optional): Request to generate and
deploy a new certificate.
- Returns:
- CertificateDetails: Response from the API. Host Certificate
Download Response.
- 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.
-
delete_web_server_certificate
()[source]¶ Does a DELETE request to /public/certificates/webServer.
Returns delete status upon completion.
- 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.
-
get_certificate_list
()[source]¶ Does a GET request to /public/certificates/global.
Returns the all certificate and their details generated from this cluster.
- Returns:
- ListCertResponse: Response from the API. List Host Certificate
Response.
- 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.
-
get_web_server_certificate
()[source]¶ Does a GET request to /public/certificates/webServer.
Returns the Server Certificate configured on the cluster.
- Returns:
SslCertificateConfig: 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_web_server_certificate
(body=None)[source]¶ Does a PUT request to /public/certificates/webServer.
Returns the updated Web Server Certificate on the cluster.
- Args:
- body (SslCertificateConfig, optional): TODO: type description
here. Example:
- Returns:
SslCertificateConfig: 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.
-