Backup

abb_rws_client_python_rw6.rws.ctrl.backup

RWS module: Controller Service → Operations on Backup Resource → Get backup resources

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.

create_backup(client, action=None, environment_variables_such_as_temp_sys=None, archive=None) async

Create a Backup.

Route: POST /ctrl/backup ABB constraints: Requires UAS grant UAS_BACKUP. It is not possible to create backup with the same path and name as an environment variable directory (SYSTEM, HOME, SYSPAR etc). It is not possible create backup under HOME directory. Since backup is an asynchronous task, the location header can be subscribed on to ...

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

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

    Query parameter. Optional.

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

    Body parameter. Optional.

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

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 202.

Raises:
Example
>>> await create_backup(client)
<Response [202]>
Source code in abb_rws_client_python_rw6/rws/ctrl/backup.py
 81
 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
122
123
124
125
126
127
128
async def create_backup(
    client: RWSClient,
    action: str | None = None,
    environment_variables_such_as_temp_sys: str | None = None,
    archive: str | None = None,
) -> httpx.Response:
    """
    Create a Backup.

    Route: ``POST /ctrl/backup``
    ABB constraints: Requires UAS grant UAS_BACKUP. It is not possible to create backup with the
        same path and name as an environment variable directory (SYSTEM, HOME, SYSPAR etc). It is
        not possible create backup under HOME directory. Since backup is an asynchronous task,
        the location header can be subscribed on to ...

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

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

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.
        # ABB codes: UNAUTHORIZED(401), FORBIDDEN(403), BAD_REQUEST(400), CONFLICT(409)

    Example:
        ```python
        >>> await create_backup(client)
        <Response [202]>
        ```
    """
    return await client.post(
        "/ctrl/backup",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={
            k: v
            for k, v in {
                "environment_variables_such_as_temp_sys": environment_variables_such_as_temp_sys,
                "archive": archive,
            }.items()
            if v is not None
        },
    )

get_backup_actions(client, action=None) async

Get backup actions.

Route: GET /ctrl/backup 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_backup_actions(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/backup.py
46
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
async def get_backup_actions(
    client: RWSClient,
    action: str | None = None,
) -> httpx.Response:
    """
    Get backup actions.

    Route: ``GET /ctrl/backup``
    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_backup_actions(client)
        <Response [200]>
        ```
    """
    return await client.get(
        "/ctrl/backup",
        params={k: v for k, v in {"action": action}.items() if v is not None},
    )

get_backup_resources(client) async

Get backup resources.

Route: GET /ctrl/backup 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_backup_resources(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/backup.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
async def get_backup_resources(client: RWSClient) -> httpx.Response:
    """
    Get backup resources.

    Route: ``GET /ctrl/backup``
    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.

    Example:
        ```python
        >>> await get_backup_resources(client)
        <Response [200]>
        ```
    """
    return await client.get("/ctrl/backup")

get_backup_state(client, action=None) async

Get Backup State.

Route: GET /ctrl/backup 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_backup_state(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/backup.py
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
async def get_backup_state(
    client: RWSClient,
    action: str | None = None,
) -> httpx.Response:
    """
    Get Backup State.

    Route: ``GET /ctrl/backup``
    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_backup_state(client)
        <Response [200]>
        ```
    """
    return await client.get(
        "/ctrl/backup",
        params={k: v for k, v in {"action": action}.items() if v is not None},
    )

get_backup_system_information(client, backup_path=None) async

Get backup system information.

Route: GET /ctrl/backup/info/ ABB constraints: Not Supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_backup_system_information(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/backup.py
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
async def get_backup_system_information(
    client: RWSClient,
    backup_path: str | None = None,
) -> httpx.Response:
    """
    Get backup system information.

    Route: ``GET /ctrl/backup/info/``
    ABB constraints: Not Supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        backup_path: 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: See

    Example:
        ```python
        >>> await get_backup_system_information(client)
        <Response [200]>
        ```
    """
    return await client.get(
        "/ctrl/backup/info/",
        params={k: v for k, v in {"backup_path": backup_path}.items() if v is not None},
    )

get_check_restore(client, path_must_be_part_of_the_controller_fi=None) async

Check Restore.

Route: GET /ctrl/backup ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_check_restore(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/backup.py
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
async def get_check_restore(
    client: RWSClient,
    path_must_be_part_of_the_controller_fi: str | None = None,
) -> httpx.Response:
    """
    Check Restore.

    Route: ``GET /ctrl/backup``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        path_must_be_part_of_the_controller_fi: 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_check_restore(client)
        <Response [200]>
        ```
    """
    return await client.get(
        "/ctrl/backup",
        params={
            k: v
            for k, v in {
                "path_must_be_part_of_the_controller_fi": path_must_be_part_of_the_controller_fi
            }.items()
            if v is not None
        },
    )

post_restore_backup(client, action=None, path_must_be_part_of_the_controller_fi=None) async

Restore a backup..

Route: POST /ctrl/backup ABB constraints: Requires UAS grant Restore a backup Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

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

    Query parameter. Optional.

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

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 204.

Raises:
Example
>>> await post_restore_backup(client)
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/ctrl/backup.py
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
async def post_restore_backup(
    client: RWSClient,
    action: str | None = None,
    path_must_be_part_of_the_controller_fi: str | None = None,
) -> httpx.Response:
    """
    Restore a backup..

    Route: ``POST /ctrl/backup``
    ABB constraints: Requires UAS grant Restore a backup Not supported in bootserver mode

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

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

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

    Example:
        ```python
        >>> await post_restore_backup(client)
        <Response [204]>
        ```
    """
    return await client.post(
        "/ctrl/backup",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={
            k: v
            for k, v in {
                "path_must_be_part_of_the_controller_fi": path_must_be_part_of_the_controller_fi
            }.items()
            if v is not None
        },
    )

subscribe_on_backup_system_information(client, identifier=None, identifier_p=None) async

Subscribe on Backup System Information.

Route: POST /subscription ABB constraints: if the subscription is created during backup creation of the System (backup.log is in progress),the state will be in "pending". Not supported in bootserver mode. Not supported on virtual controller.

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

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

    Body parameter. Optional.

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

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 201.

Raises:
Example
>>> await subscribe_on_backup_system_information(client)
<Response [201]>
Source code in abb_rws_client_python_rw6/rws/ctrl/backup.py
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
async def subscribe_on_backup_system_information(
    client: RWSClient,
    identifier: str | None = None,
    identifier_p: str | None = None,
) -> httpx.Response:
    """
    Subscribe on Backup System Information.

    Route: ``POST /subscription``
    ABB constraints: if the subscription is created during backup creation of the System
        (backup.log is in progress),the state will be in "pending". Not supported in bootserver
        mode. Not supported on virtual controller.

    Args:
        client: Open RWSClient instance.
        identifier: Body parameter. Optional.
        identifier_p: Body parameter. Optional.

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

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

    Example:
        ```python
        >>> await subscribe_on_backup_system_information(client)
        <Response [201]>
        ```
    """
    return await client.post(
        "/subscription",
        data={
            k: v
            for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
            if v is not None
        },
    )