@@ -72,11 +72,14 @@ def get_certificate_by_cert_id_chain(self, cert_id=""):
7272 return ClearPassAPILogin ._send_request (self , url = url_path , method = "get" )
7373
7474 # API Service: Export a certificate or certificate signing request
75- def new_certificate_by_cert_id_export (self , cert_id = "" , body = ({})):
75+ def new_certificate_by_cert_id_export (
76+ self , cert_id = "" , body = ({}), content_type = "application/json"
77+ ):
7678 """
7779 Operation: Export a certificate or certificate signing request
7880 HTTP Response Codes: 200 OK, 401 Unauthorized, 403 Forbidden, 404 Not Found, 406 Not Acceptable, 415 Unsupported Media Type, 422 Unprocessable Entity
7981 Parameter Type: path, Name: cert_id, Description: Numeric ID of the certificate
82+ Optional Response Content-Type Parameters: application/x-x509-ca-cert, application/x-pkcs7-certificates, application/pkcs10, application/x-pkcs12, text/plain
8083 Required Body Parameters:['export_format']
8184 Parameter Type: body, Name: body
8285 Body example with descriptions and object types below (type(dict):
@@ -96,7 +99,11 @@ def new_certificate_by_cert_id_export(self, cert_id="", body=({})):
9699 url_path = url_path .replace ("{" + item + "}" , dict_path [item ])
97100 body = _remove_empty_keys (keys = body )
98101 return ClearPassAPILogin ._send_request (
99- self , url = url_path , method = "post" , query = body
102+ self ,
103+ url = url_path ,
104+ method = "post" ,
105+ query = body ,
106+ content_response_type = content_type ,
100107 )
101108
102109 # API Service: Import a code-signing, trusted, or CA certificate
0 commit comments