Python SDK API Samples24 minutes to read
All PAM360 APIs can be accessed through the Python SDK based the provided user role in PAM360, empowering the development of custom applications to perform data synchronization efficiently. Sample codes for all available API methods within the PAM360 Python SDK are provided here for reference along with the relevant SDK exceptions. You can also refer to the to the Python document to learn more about in detail. Sample Codes for REST API using Python SDK1. Resource OperationsClass - Resource Constructor - Resource(service:PAMService) Description - Creates a Resource entity class instance containing resource related functions with the PAMService.
2. Access Control OperationsClass - AccessControl Constructor - AccessControl(service) Description - Creates an Access Control entity class instance containing access control related functions.
3. Account OperationsClass - Account Constructor - Account(service) Description - Creates an Account entity class instance containing accounts related operations.
4. Password OperationsClass - Password Constructor - Password(service) Description - Creates a Password entity class instance containing the password related operations.
5. User OperationsClass - User Constructor - User(PAMService service, APIRequestHandler rest) Description - Creates a User entity class instance containing the user related operations.
6. Resource Group OperationsClass - ResourceGroup Constructor - ResourceGroup(service:PAMService) Description - Creates a Resource Group class instance containing the resource group related operations.
7. Audit OperationsClass - Audit Constructor - Audit(service:PAMService) Description - Creates an Audit entity class instance with the audit related operation.
8. Organization OperationsClass - Organizations Constructor - Organizations(PAMService service, APIRequestHandler rest) Description - Creates an organization class instance containing the resource group related operations.
9. Report OperationsClass - Reports Constructor - Reports(PAMService service, APIRequestHandler rest) Description - Creates a report class instance containing the report related operations.
Python SDK ExceptionsWhenever the API returns an error response, the response will be an instance of any one of the exception classes based on the type of exception.
All other exceptions such as SDK anomalies and other unexpected behaviors are thrown under the SDKError class. Related Documents | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||