BMC Cloud Lifecycle Management AWS Client Software Development Kit

Version 3
    Share This:

    The BMC Cloud Lifecycle Management AWS Client Software Development Kit is available with BMC Cloud Lifecycle Management version 4.5 onward.

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

     

    BMC CLM VersionAWS SDK VersionDocumentation*
    BMC CLM 4.5.004.5.00SDK download (below) and install steps
    BMC CLM 4.6.004.6.00SDK download (below) and install steps

     

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


    The BMC CLM AWS SDK helps you carry out the CLM operations by using same API as that of AmazonEC2 interface of AWS SDK.

    Here are few examples to experience the simplicity of SDK:


    Provision on premise instances using CLM Service Offering:


    package com.bmc.awssdk.samples.runinstances;
    import java.util.Properties;
    import com.amazonaws.services.ec2.model.Reservation;
    import com.amazonaws.services.ec2.model.RunInstancesRequest;
    import com.amazonaws.services.ec2.model.RunInstancesResult;
    import com.bmc.awssdk.samples.common.CommonConfig;
    import com.bmc.cloud.sdk.aws.CLMEC2Client;
    /**
     * This sample demonstrates use of CLMEC2Client to provision
     * On premise instances using CLM Service Offering.
     * AWS RunInstancesRequest is used in this sample.
     */
    public class RunInstanceSample2 extends CommonConfig{
        CLMEC2Client ec2Client = null;
        public void run() {
            Properties properties = getConfigProperties();
            
            ec2Client = new CLMEC2Client(properties);
            RunInstancesRequest request = new RunInstancesRequest();
            // Setting Image id to CLM Service Offering name to provision.
            request.setImageId("VMware Windows 2008R2_SO");
            RunInstancesResult result = ec2Client.runInstances(request);
            if (result != null) {
                Reservation reservation = result.getReservation();
                
                //Using printReservation method of CLMEC2Client to print reservation.
                CLMEC2Client.printReservation(reservation);
            }
        }
        
        public static void main(String[] args) {
            RunInstanceSample2 instanceSample2 = new RunInstanceSample2();
            instanceSample2.run();
        }
        
    }
    
    
    
    
    
    
    

     

    Please visit BMC document for more examples.