Raclist Refresh

Refresh a RACLISTed class.

SetroptsAdmin.refresh_raclist()

def refresh_raclist(self, class_names: Union[str, List[str]]) -> Union[dict, bytes]:

📄 Description

Refresh a RACLISTed class.

📥 Parameters

  • class_name
    The RACLISTed class to refresh.

📤 Returns

  • Union[dict, bytes]
    Returns a Security Result dictionary or Security Request XML bytes if the SetroptsAdmin.generate_requests_only class attribute is set to True.

❌ Raises

  • SecurityRequestError
    Raises SecurityRequestError when the SAF Return Code of a Security Result is equal to 4.
  • DownstreamFatalError
    Raises DownstreamFatalError when the SAF Return Code of a Security Result is greater than 4.

💻 Example

Python REPL
>>> from pyracf import SetroptsAdmin
>>> setropts_admin = SetroptsAdmin()
>>> setropts_admin.refresh_raclist("ELIJTEST")
{'step1': {'securityResult': {'systemSettings': {'operation': 'set', 'requestId': 'SetroptsRequest', 'commands': [{'safReturnCode': 0, 'returnCode': 0, 'reasonCode': 0, 'image': 'SETROPTS      RACLIST     (ELIJTEST) REFRESH     ', 'messages': ['ICH14063I SETROPTS command complete.']}]}, 'returnCode': 0, 'reasonCode': 0, 'runningUserid': 'testuser'}}}
Security Result Dictionary as JSON
{
  "step1":{
    "securityResult":{
      "systemSettings":{
        "operation":"set",
        "requestId":"SetroptsRequest",
        "commands":[
          {
            "safReturnCode":0,
            "returnCode":0,
            "reasonCode":0,
            "image":"SETROPTS      RACLIST     (ELIJTEST) REFRESH     ",
            "messages":[
              "ICH14063I SETROPTS command complete."
            ]
          }
        ]
      },
      "returnCode":0,
      "reasonCode":0
    }
  }
}