template.feature

Operation: POST /dataservice/template/feature

Create feature template

def post(payload: Any) -> 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.feature.post()

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

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

def put(template_id: str, payload: Any) -> 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.feature.put()

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

Delete feature 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.template.feature.delete()

Operation: GET /dataservice/template/feature

@overload
def get(
    summary: Optional[bool] = False,
    offset: Optional[int] = None,
    limit: Optional[int] = 0,
) -> 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.feature.get()

Operation: GET /dataservice/template/feature/{deviceType}

@overload
def get(device_type: str) -> 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.feature.get()