Networks

abb_rws_client_python_rw6.rws.iosystem.networks

RWS module: RobotWare Services → IO Service → Operations on IO Networks

1:1 mirror of the ABB RobotWare 6 REST API. Each function maps to exactly one HTTP endpoint. No composed logic — see highlevel/ for wrappers.

get_actions_on_io_networks(client, action=None) async

Get Actions on IO Networks.

Route: GET /rw/iosystem/networks ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • action (str | None, default: None ) –

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_actions_on_io_networks(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/iosystem/networks.py
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
async def get_actions_on_io_networks(
    client: RWSClient,
    action: str | None = None,
) -> httpx.Response:
    """
    Get Actions on IO Networks.

    Route: ``GET /rw/iosystem/networks``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        action: Query parameter. Optional.

    Returns:
        Raw HTTP response. Expected success: HTTP 200.

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.
        # ABB codes: BAD_REQUEST(400)

    Example:
        ```python
        >>> await get_actions_on_io_networks(client)
        <Response [200]>
        ```
    """
    return await client.get(
        "/rw/iosystem/networks",
        params={k: v for k, v in {"action": action}.items() if v is not None},
    )

get_io_networks_resources(client) async

Get IO Networks resources.

Route: GET /rw/iosystem/networks ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_io_networks_resources(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/iosystem/networks.py
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
async def get_io_networks_resources(client: RWSClient) -> httpx.Response:
    """
    Get IO Networks resources.

    Route: ``GET /rw/iosystem/networks``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.

    Returns:
        Raw HTTP response. Expected success: HTTP 200.

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.
        # ABB codes: BAD_REQUEST(400)

    Example:
        ```python
        >>> await get_io_networks_resources(client)
        <Response [200]>
        ```
    """
    return await client.get("/rw/iosystem/networks")

post_search_io_networks(client, action=None, name_or_state_example_name=None) async

Search IO Networks.

Route: POST /rw/iosystem/networks ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • action (str | None, default: None ) –

    Query parameter. Optional.

  • name_or_state_example_name (str | None, default: None ) –

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await post_search_io_networks(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/iosystem/networks.py
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
async def post_search_io_networks(
    client: RWSClient,
    action: str | None = None,
    name_or_state_example_name: str | None = None,
) -> httpx.Response:
    """
    Search IO Networks.

    Route: ``POST /rw/iosystem/networks``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        action: Query parameter. Optional.
        name_or_state_example_name: Body parameter. Optional.

    Returns:
        Raw HTTP response. Expected success: HTTP 200.

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.
        # ABB codes: BAD_REQUEST(400)

    Example:
        ```python
        >>> await post_search_io_networks(client)
        <Response [200]>
        ```
    """
    return await client.post(
        "/rw/iosystem/networks",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={
            k: v
            for k, v in {"name_or_state_example_name": name_or_state_example_name}.items()
            if v is not None
        },
    )