partner.map

Operation: GET /dataservice/partner/{partnerType}/map/{nmsId}

List mapped devices for the partner

def get(partner_type: str, nms_id: str) -> PartnerDevicesRes: ...

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.partner.map.get()

Operation: POST /dataservice/partner/{partnerType}/map/{nmsId}

Map devices for the partner

def post(
    partner_type: str, nms_id: str, payload: MapDevicesRequest
) -> StatusResponse: ...

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.partner.map.post()

Operation: DELETE /dataservice/partner/{partnerType}/map/{nmsId}

Unmap all devices for the partner

def delete(partner_type: str, nms_id: str) -> StatusResponse: ...

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.partner.map.delete()