Package: f5-sdk-python
IntroductionThe F5 SDK (Python) provides client libraries to access various F5 products and services. It focuses primarily on facilitating consuming our most popular APIs and services, currently including BIG-IP (via Automation Tool Chain) and F5 Cloud Services.Benefits:Provides hand-written or auto-generated client code to make F5’s APIs/services simple and intuitive to use.Handles the low-level details of communication with the API or service, including authentication sessions, async task handling, protocol handling, large file uploads, and more.Can be installed using familiar package management tools such as pip.Table of ContentsUsageUser DocumentationUsage""" Update BIG-IP L4-L7 configuration using AS3Notes-----Set local environment variables first"""# export F5_SDK_HOST='192.0.2.10'# export F5_SDK_USERNAME='admin'# export F5_SDK_PWD='admin'# export F5_SDK_AS3_DECL='./my_declaration.json'# export F5_SDK_LOG_LEVEL='DEBUG'importosfromf5sdk.bigipimportManagementClientfromf5sdk.bigip.extensionimportAS3Clientfromf5sdk.loggerimportLoggerLOGGER=Logger(__name__).get_logger()defupdate_as3_config():""" Update AS3 configurationNotes-----Includes package installation, service check whilemaintaining idempotency"""# create management clientmgmt_client=ManagementClient(os.environ['F5_SDK_HOST'],user=os.environ['F5_SDK_USERNAME'],password=os.environ['F5_SDK_PWD'])# create extension clientas3_client=AS3Client(mgmt_client)# Get installed package version infoversion_info=as3_client.package.is_installed()LOGGER.info(version_info['installed'])LOGGER.info(version_info['installed_version'])LOGGER.info(version_info['latest_version'])# install packageifnotversion_info['installed']:as3_client.package.install()# ensure service is availableas3_client.service.is_available()# configure AS3returnas3_client.service.create(config_file=os.environ['F5_SDK_AS3_DECL'])if__name__=='__main__':LOGGER.info(update_as3_config())User DocumentationSee thedocumentationfor details on installation, usage and much more.Source RepositorySee the source repositoryhere.Filing Issues and Getting HelpIf you come across a bug or other issue when using the SDK, useGitHub Issuesto submit an issue for our team.  You can also see the current known issues on that page, which are tagged with a Known Issue label.F5 SDK is community-supported. For more information, see theSupport page.CopyrightCopyright 2014-2020 F5 Networks Inc.F5 Networks Contributor License AgreementBefore you start contributing to any project sponsored by F5 Networks, Inc. (F5) on GitHub, you will need to sign a Contributor License Agreement (CLA).If you are signing as an individual, we recommend that you talk to your employer (if applicable) before signing the CLA since some employment agreements may have restrictions on your contributions to other projects. Otherwise by submitting a CLA you represent that you are legally entitled to grant the licenses recited therein.If your employer has rights to intellectual property that you create, such as your contributions, you represent that you have received permission to make contributions on behalf of that employer, that your employer has waived such rights for your contributions, or that your employer has executed a separate CLA with F5.If you are signing on behalf of a company, you represent that you are legally entitled to grant the license recited therein. You represent further that each employee of the entity that submits contributions is authorized to submit such contributions on behalf of the entity pursuant to the CLA.