v1.smart_licensing.template

Operation: POST /dataservice/v1/smart-licensing/template

Create and assign license template.

def post(payload: SaveTemplateRequest) -> 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.v1.smart_licensing.template.post()

Operation: DELETE /dataservice/v1/smart-licensing/template/{templateId}

Delete a license template

def delete(template_id: str) -> None: ...

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.v1.smart_licensing.template.delete()