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)

push_certificates(self)[source]

Push certificates to all controllers

Returns

The action ID of the push command.

Return type

id (str)

get_vmanage_root_cert(self)[source]

Get vManage root certificate

Args:

Returns

The root certificate.

Return type

rootcertificate (str)