BMC Cloud Lifecycle Management Python Software Development Kit

Version 17
    Share This:

    The Python Software Development Kit is available with BMC Cloud Lifecycle Management version 4.0 onwards.

     

    The BMC CLM Python Software Development Kit (SDK) version 4.5.00, for CLM Version 4.5.00 is now available. Please refer the 'Whats New' section under BMC CLM Python SDK Documentation.

    The installation and usage information can be found on BMC CLM Documentation.

     

    BMC CLM VersionPython SDK VersionDocumentation*
    BMC CLM 4.0.004.0.00.01SDK download and install steps
    BMC CLM 4.1.004.1.00SDK download and install steps
    BMC CLM 4.5.004.5.00SDK download and install steps
    BMC CLM 4.6.004.6.00SDK download and install steps

     

    * Documentation is available on docs.bmc.com which requires your support login.

     

    The BMC CLM Python SDK helps you carry out the CLM operations by executing simple commands, without dealing with RESTful API's with complex request and response JSON's.

     

    Here are few examples to experience the simplicity of Python SDK:

     

    Login command:

    clm login --url URL --user USERNAME --password PASSWORD

    e.g.

    clm login --url http://<Platform-Manager-Hostname/IP>:<Port> --user cloudadmin --password password

    Onboard a POD:

    clm pod-onboard --providername NAME --podname NAME

     

    Create a new Service:

    clm service-create [--onbehalfuser USERNAME] --offeringname NAME --servicename NAME [--quantity [NUMBER]] --serverusername USERNAME --serverpassword PASSWORD --serverhostprefix SERVERHOSTPREFIX --tenantname NAME

     

    Stop the Service:

    clm service-stop --servicename NAME

     

    Attached script "SDK_CommandLine_Examples.sh" illustrates how a shell or batch script can be created with multiple Python SDK commands.

     

    Similar to command line, Python SDK also supports consuming the Python API's directly. Attached script "SDK_API_Examples.py" illustrates how a python script can be created with calls to multiple Python API's from Python SDK.