Cfg

abb_rws_client_python_rw6.rws.cfg

RWS module: RobotWare Services → CFG Service → Get CFG 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_default_cfg_instance(client, domain, type, action=None) async

Create default CFG instance.

Route: POST /rw/cfg/{domain}/{type}/instances ABB constraints: Use location header to fetch information about newly created resource. Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 201.

Raises:
Example
>>> await create_default_cfg_instance(client, "domain_value", "type_value")
<Response [201]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
async def create_default_cfg_instance(
    client: RWSClient,
    domain: str,
    type: str,
    action: str | None = None,
) -> httpx.Response:
    """
    Create default CFG instance.

    Route: ``POST /rw/cfg/{domain}/{type}/instances``
    ABB constraints: Use location header to fetch information about newly created resource. Not
        supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.
        action: Query 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)

    Example:
        ```python
        >>> await create_default_cfg_instance(client, "domain_value", "type_value")
        <Response [201]>
        ```
    """
    return await client.post(
        f"/rw/cfg/{domain}/{type}/instances",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={},
    )

delete_cfg_instance(client, domain, type, instance) async

Delete CFG instance.

Route: DELETE /rw/cfg/{domain}/{type}/instances/{instance} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

  • instance (str) –

    URL path parameter.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 204.

Raises:
Example
>>> await delete_cfg_instance(client, "domain_value", "type_value", "instance_value")
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
async def delete_cfg_instance(
    client: RWSClient,
    domain: str,
    type: str,
    instance: str,
) -> httpx.Response:
    """
    Delete CFG instance.

    Route: ``DELETE /rw/cfg/{domain}/{type}/instances/{instance}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.
        instance: URL path parameter.

    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: BAD_REQUEST(400)

    Example:
        ```python
        >>> await delete_cfg_instance(client, "domain_value", "type_value", "instance_value")
        <Response [204]>
        ```
    """
    return await client.delete(f"/rw/cfg/{domain}/{type}/instances/{instance}")

get_actions_on_cfg_domain(client, domain, action=None) async

Get Actions on a CFG domain.

Route: GET /rw/cfg/{domain} ABB constraints: CFG Mastership is handled internally if not explicit held by the client. Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_actions_on_cfg_domain(client, "domain_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
async def get_actions_on_cfg_domain(
    client: RWSClient,
    domain: str,
    action: str | None = None,
) -> httpx.Response:
    """
    Get Actions on a CFG domain.

    Route: ``GET /rw/cfg/{domain}``
    ABB constraints: CFG Mastership is handled internally if not explicit held by the client. Not
        supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        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_cfg_domain(client, "domain_value")
        <Response [200]>
        ```
    """
    return await client.get(
        f"/rw/cfg/{domain}",
        params={k: v for k, v in {"action": action}.items() if v is not None},
    )

get_actions_on_cfg_instances(client, domain, type, action=None) async

Get actions on CFG instances.

Route: GET /rw/cfg/{domain}/{type}/instances ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_actions_on_cfg_instances(client, "domain_value", "type_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
async def get_actions_on_cfg_instances(
    client: RWSClient,
    domain: str,
    type: str,
    action: str | None = None,
) -> httpx.Response:
    """
    Get actions on CFG instances.

    Route: ``GET /rw/cfg/{domain}/{type}/instances``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.
        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_cfg_instances(client, "domain_value", "type_value")
        <Response [200]>
        ```
    """
    return await client.get(
        f"/rw/cfg/{domain}/{type}/instances",
        params={k: v for k, v in {"action": action}.items() if v is not None},
    )

get_all_attributes_of_the_given_domain(client, domain, type) async

Get all attributes of the given domain type.

Route: GET /rw/cfg/{domain}/{type}/attributes ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_all_attributes_of_the_given_domain(client, "domain_value", "type_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
async def get_all_attributes_of_the_given_domain(
    client: RWSClient,
    domain: str,
    type: str,
) -> httpx.Response:
    """
    Get all attributes of the given domain type.

    Route: ``GET /rw/cfg/{domain}/{type}/attributes``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.

    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_all_attributes_of_the_given_domain(client, "domain_value", "type_value")
        <Response [200]>
        ```
    """
    return await client.get(f"/rw/cfg/{domain}/{type}/attributes")

get_all_instances_of_the_given_domain(client, domain, type) async

Get all instances of the given domain type.

Route: GET /rw/cfg/{domain}/{type}/instances ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_all_instances_of_the_given_domain(client, "domain_value", "type_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
async def get_all_instances_of_the_given_domain(
    client: RWSClient,
    domain: str,
    type: str,
) -> httpx.Response:
    """
    Get all instances of the given domain type.

    Route: ``GET /rw/cfg/{domain}/{type}/instances``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.

    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_all_instances_of_the_given_domain(client, "domain_value", "type_value")
        <Response [200]>
        ```
    """
    return await client.get(f"/rw/cfg/{domain}/{type}/instances")

get_cfg_actions(client, action=None) async

Get CFG actions.

Route: GET /rw/cfg 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_cfg_actions(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.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_cfg_actions(
    client: RWSClient,
    action: str | None = None,
) -> httpx.Response:
    """
    Get CFG actions.

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

get_cfg_domain_types(client, domain, start=None, limit=None) async

Get CFG Domain Types.

Route: GET /rw/cfg/{domain} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

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

    Query parameter. Optional.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_cfg_domain_types(client, "domain_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
async def get_cfg_domain_types(
    client: RWSClient,
    domain: str,
    start: str | None = None,
    limit: str | None = None,
) -> httpx.Response:
    """
    Get CFG Domain Types.

    Route: ``GET /rw/cfg/{domain}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        start: Query parameter. Optional.
        limit: 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.

    Example:
        ```python
        >>> await get_cfg_domain_types(client, "domain_value")
        <Response [200]>
        ```
    """
    return await client.get(
        f"/rw/cfg/{domain}",
        params={k: v for k, v in {"start": start, "limit": limit}.items() if v is not None},
    )

get_cfg_instance(client, domain, type, instance_name) async

Get CFG instance.

Route: GET /rw/cfg/{domain}/{type}/instances/{instance name} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

  • instance_name (str) –

    URL path parameter.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_cfg_instance(client, "domain_value", "type_value", "instance_name_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
async def get_cfg_instance(
    client: RWSClient,
    domain: str,
    type: str,
    instance_name: str,
) -> httpx.Response:
    """
    Get CFG instance.

    Route: ``GET /rw/cfg/{domain}/{type}/instances/{instance name}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.
        instance_name: URL path parameter.

    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_cfg_instance(client, "domain_value", "type_value", "instance_name_value")
        <Response [200]>
        ```
    """
    return await client.get(f"/rw/cfg/{domain}/{type}/instances/{instance_name}")

get_cfg_instance_actions(client, domain, type, instance, action=None) async

Get CFG instance actions.

Route: GET /rw/cfg/{domain}/{type}/instances/{instance} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

  • instance (str) –

    URL path parameter.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_cfg_instance_actions(
...     client,
...     "domain_value",
...     "type_value",
...     "instance_value"
... )
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
async def get_cfg_instance_actions(
    client: RWSClient,
    domain: str,
    type: str,
    instance: str,
    action: str | None = None,
) -> httpx.Response:
    """
    Get CFG instance actions.

    Route: ``GET /rw/cfg/{domain}/{type}/instances/{instance}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.
        instance: URL path parameter.
        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_cfg_instance_actions(
        ...     client,
        ...     "domain_value",
        ...     "type_value",
        ...     "instance_value"
        ... )
        <Response [200]>
        ```
    """
    return await client.get(
        f"/rw/cfg/{domain}/{type}/instances/{instance}",
        params={k: v for k, v in {"action": action}.items() if v is not None},
    )

get_cfg_resources(client) async

Get CFG resources.

Route: GET /rw/cfg 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_cfg_resources(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.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_cfg_resources(client: RWSClient) -> httpx.Response:
    """
    Get CFG resources.

    Route: ``GET /rw/cfg``
    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_cfg_resources(client)
        <Response [200]>
        ```
    """
    return await client.get("/rw/cfg")

get_cfg_type(client, domain, type) async

Get CFG type.

Route: GET /rw/cfg/{domain}/{type} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_cfg_type(client, "domain_value", "type_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
async def get_cfg_type(
    client: RWSClient,
    domain: str,
    type: str,
) -> httpx.Response:
    """
    Get CFG type.

    Route: ``GET /rw/cfg/{domain}/{type}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.

    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: NOT_FOUND(404)

    Example:
        ```python
        >>> await get_cfg_type(client, "domain_value", "type_value")
        <Response [200]>
        ```
    """
    return await client.get(f"/rw/cfg/{domain}/{type}")

load_cfg_file(client, action=None) async

Load CFG file.

Route: POST /rw/cfg 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 204.

Raises:
Example
>>> await load_cfg_file(client)
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
async def load_cfg_file(
    client: RWSClient,
    action: str | None = None,
) -> httpx.Response:
    """
    Load CFG file.

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

    Args:
        client: Open RWSClient instance.
        action: Query 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: BAD_REQUEST(400)

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

post_keyless_motor_on(client, action=None, state=None) async

Keyless motor ON.

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

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

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

    Query parameter. Optional.

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

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 204.

Raises:
Example
>>> await post_keyless_motor_on(client)
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
247
248
249
250
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
async def post_keyless_motor_on(
    client: RWSClient,
    action: str | None = None,
    state: str | None = None,
) -> httpx.Response:
    """
    Keyless motor ON.

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

    Args:
        client: Open RWSClient instance.
        action: Query parameter. Optional.
        state: 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: BAD_REQUEST(400) see

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

reset_cfg_domain(client, domain, action=None) async

Reset CFG domain.

Route: POST /rw/cfg/{domain} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await reset_cfg_domain(client, "domain_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
async def reset_cfg_domain(
    client: RWSClient,
    domain: str,
    action: str | None = None,
) -> httpx.Response:
    """
    Reset CFG domain.

    Route: ``POST /rw/cfg/{domain}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        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 reset_cfg_domain(client, "domain_value")
        <Response [200]>
        ```
    """
    return await client.post(
        f"/rw/cfg/{domain}",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={},
    )

reset_cfg_instances(client, domain, type, action=None) async

Reset CFG instances.

Route: POST /rw/cfg/{domain}/{type}/instances ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 204.

Raises:
Example
>>> await reset_cfg_instances(client, "domain_value", "type_value")
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
async def reset_cfg_instances(
    client: RWSClient,
    domain: str,
    type: str,
    action: str | None = None,
) -> httpx.Response:
    """
    Reset CFG instances.

    Route: ``POST /rw/cfg/{domain}/{type}/instances``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.
        action: Query 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: BAD_REQUEST(400)

    Example:
        ```python
        >>> await reset_cfg_instances(client, "domain_value", "type_value")
        <Response [204]>
        ```
    """
    return await client.post(
        f"/rw/cfg/{domain}/{type}/instances",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={},
    )

save_cfg_domain(client, domain, action=None) async

Save CFG domain.

Route: POST /rw/cfg/{domain} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

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

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 204.

Raises:
Example
>>> await save_cfg_domain(client, "domain_value")
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
async def save_cfg_domain(
    client: RWSClient,
    domain: str,
    action: str | None = None,
) -> httpx.Response:
    """
    Save CFG domain.

    Route: ``POST /rw/cfg/{domain}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        action: Query 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: BAD_REQUEST(400), FORBIDDEN(403), UNAUTHORIZED(401)

    Example:
        ```python
        >>> await save_cfg_domain(client, "domain_value")
        <Response [204]>
        ```
    """
    return await client.post(
        f"/rw/cfg/{domain}",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={},
    )

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

Subscribe on cfg ChangeCount.

Route: POST /subscription ABB constraints: Not supported in bootserver mode.

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_cfg_changecount(client)
<Response [201]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
285
286
287
288
289
290
291
292
293
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
async def subscribe_on_cfg_changecount(
    client: RWSClient,
    identifier: str | None = None,
    identifier_p: str | None = None,
) -> httpx.Response:
    """
    Subscribe on cfg ChangeCount.

    Route: ``POST /subscription``
    ABB constraints: Not supported in bootserver mode.

    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), UNSUPPORTED_MEDIA(415)

    Example:
        ```python
        >>> await subscribe_on_cfg_changecount(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
        },
    )

update_cfg_instance(client, domain, type, instance, action=None, attribute_name=None) async

Update CFG instance.

Route: POST /rw/cfg/{domain}/{type}/instances/{instance} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • domain (str) –

    URL path parameter.

  • type (str) –

    URL path parameter.

  • instance (str) –

    URL path parameter.

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

    Query parameter. Optional.

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

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 204.

Raises:
Example
>>> await update_cfg_instance(client, "domain_value", "type_value", "instance_value")
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
async def update_cfg_instance(
    client: RWSClient,
    domain: str,
    type: str,
    instance: str,
    action: str | None = None,
    attribute_name: str | None = None,
) -> httpx.Response:
    """
    Update CFG instance.

    Route: ``POST /rw/cfg/{domain}/{type}/instances/{instance}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        domain: URL path parameter.
        type: URL path parameter.
        instance: URL path parameter.
        action: Query parameter. Optional.
        attribute_name: 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), BAD_REQUEST(400)

    Example:
        ```python
        >>> await update_cfg_instance(client, "domain_value", "type_value", "instance_value")
        <Response [204]>
        ```
    """
    return await client.post(
        f"/rw/cfg/{domain}/{type}/instances/{instance}",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={k: v for k, v in {"attribute_name": attribute_name}.items() if v is not None},
    )

validate_cfg_file(client, action=None) async

Validate CFG file.

Route: POST /rw/cfg 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 validate_cfg_file(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/cfg.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
async def validate_cfg_file(
    client: RWSClient,
    action: str | None = None,
) -> httpx.Response:
    """
    Validate CFG file.

    Route: ``POST /rw/cfg``
    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), UNSUPPORTED_MEDIA(415)

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

validate_cfg_instance_before_delete(client, action=None, name=None) async

Validate CFG Instance before Delete.

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

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

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

    Query parameter. Optional.

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

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 204.

Raises:
Example
>>> await validate_cfg_instance_before_delete(client)
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
async def validate_cfg_instance_before_delete(
    client: RWSClient,
    action: str | None = None,
    name: str | None = None,
) -> httpx.Response:
    """
    Validate CFG Instance before Delete.

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

    Args:
        client: Open RWSClient instance.
        action: Query parameter. Optional.
        name: 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: BAD_REQUEST(400), NOT_FOUND(404), see

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

validate_cfg_instances(client, action=None, operation=None, cfgdomain=None, cfgtype=None, instances=None, instancescount=None) async

Validate CFG Instances.

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

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

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

    Query parameter. Optional.

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

    Body parameter. Optional.

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

    Body parameter. Optional.

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

    Body parameter. Optional.

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

    Body parameter. Optional.

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

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 204.

Raises:
Example
>>> await validate_cfg_instances(client)
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/cfg.py
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
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
async def validate_cfg_instances(
    client: RWSClient,
    action: str | None = None,
    operation: str | None = None,
    cfgdomain: str | None = None,
    cfgtype: str | None = None,
    instances: str | None = None,
    instancescount: str | None = None,
) -> httpx.Response:
    """
    Validate CFG Instances.

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

    Args:
        client: Open RWSClient instance.
        action: Query parameter. Optional.
        operation: Body parameter. Optional.
        cfgdomain: Body parameter. Optional.
        cfgtype: Body parameter. Optional.
        instances: Body parameter. Optional.
        instancescount: 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: BAD_REQUEST(400), NOT_FOUND(404), see

    Example:
        ```python
        >>> await validate_cfg_instances(client)
        <Response [204]>
        ```
    """
    return await client.post(
        "/rw/cfg",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={
            k: v
            for k, v in {
                "operation": operation,
                "cfgdomain": cfgdomain,
                "cfgtype": cfgtype,
                "instances": instances,
                "instancescount": instancescount,
            }.items()
            if v is not None
        },
    )