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(). See SetroptsAdmin.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 the SetroptsAdmin.generate_requests_only class attribute is set to True, concatenated Security Request XML bytes will be returned.

❌ 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.get_class_attributes("FACILITY")
["active", "genericProfile", "genericCommand", "raclist"]