device.action.remote_server

Operation: POST /dataservice/device/action/remote-server

Add a new remote server entry.

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

Operation: PUT /dataservice/device/action/remote-server/{id}

Update remote server for the specified ID

def put(id: str, payload: 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.device.action.remote_server.put()

Operation: DELETE /dataservice/device/action/remote-server/{id}

Delete remote server for the specified ID

def delete(id: str, payload: Optional[Any] = None) -> 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.device.action.remote_server.delete()

Operation: GET /dataservice/device/action/remote-server

@overload
def get() -> 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.device.action.remote_server.get()

Operation: GET /dataservice/device/action/remote-server/{id}

@overload
def get(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.device.action.remote_server.get()