featurecertificate.devicecsr

Operation: GET /dataservice/featurecertificate/devicecsr

Get CSR from cEdge device<br><br><br>Note: In a multitenant vManage system, this API is only available in the Provider and Provider-As-Tenant view.

def get_device_csr(device_id: str) -> Any: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.featurecertificate.devicecsr.get_device_csr()

Operation: PUT /dataservice/featurecertificate/devicecsr

Create CSR for cEdge device<br><br><br>Note: In a multitenant vManage system, this API is only available in the Provider and Provider-As-Tenant view.

def gen_device_csr(payload: Optional[Any] = None) -> Any: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.featurecertificate.devicecsr.gen_device_csr()