Class Attributes
Setropts administration function for accessing the RACF Options Lists that a specified class belongs to.
SetroptsAdmin.get_class_attributes()
def get_class_attributes(self, class_name: str) -> Union[List[str], bytes]:
đź“„ Description
Â
This functionality is currently considered Experimental due to it’s dependency on
SetroptsAdmin.list_racf_options()
. SeeSetroptsAdmin.list_racf_options()
for more details.
Â
Get the Class Attributes for a specified class.
đź“Ą Parameters
class_name
The name of the class that setropts administration should obtain information on from RACF Options.
📤 Returns
Union[List[str], bytes]
Returns the setropts’s Class Attributes. If theSetroptsAdmin.generate_requests_only
class attribute is set toTrue
, concatenated Security Request XML bytes will be returned.
❌ 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.get_class_attributes("FACILITY")
["active", "genericProfile", "genericCommand", "raclist"]