api.certificate
¶
Cisco vManage Certificate API Methods.
Module Contents¶
-
class
api.certificate.
Certificate
(session, host, port=443)[source]¶ Bases:
object
vManage Certificate API
Responsible for DELETE, GET, POST, PUT methods against vManage Certificates.
-
generate_csr
(self, device_ip)[source]¶ Generate CSR for device
- Parameters
device_ip (str) – IP address of device.
- Returns
The CSR for the device.
- Return type
deviceCSR (str)
-
install_device_cert
(self, cert)[source]¶ Install signed cert on vManage
- Parameters
cert (str) – The certificate to install.
- Returns
The action ID of the install command.
- Return type
id (str)
-