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 theSetroptsAdmin.generate_requests_only
class attribute is set toTrue
.
❌ Raises
SecurityRequestError
RaisesSecurityRequestError
when the SAF Return Code of a Security Result is equal to4
.DownstreamFatalError
RaisesDownstreamFatalError
when the SAF Return Code of a Security Result is greater than4
.
💻 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
}
}
}