template.device

Operation: GET /dataservice/template/device

Generate template list<br><br><br>Note: In a multitenant vManage system, this API is only available in the Provider view.

def generate_master_template_list(
    feature: FeatureParam,
) -> List[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.template.device.generate_master_template_list()

Operation: PUT /dataservice/template/device/{templateId}

Edit template<br><br><br>Note: In a multitenant vManage system, this API is only available in the Provider view.

def edit_master_template(
    template_id: str, 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.template.device.edit_master_template()

Operation: DELETE /dataservice/template/device/{templateId}

Delete template<br><br><br>Note: In a multitenant vManage system, this API is only available in the Provider view.

def delete_master_template(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.template.device.delete_master_template()