How to find out information for each server in the Service Offering Instance

Version 1
    Share:|

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Cloud Lifecycle Management


    APPLIES TO:

    BMC Cloud Lifecycle Management



    QUESTION:

    Environment: BMC Cloud Lifecycle Management 2.1

    How to find out information for each server in a Service Offering Instance to be used in an AO callout. Share an example.


    ANSWER:

     

    Legacy ID:KA367491

      

    The csmrequest xml for ServiceOfferingInstance_BulkCreate should contain information for all servers in the Service Offering. It's also possible to pull server information for each server in a service offering through the CLM API.

    An HTTP GET to the Platform Manager system for the serviceofferinginstance will produce a response like this:

    {
    "cloudClass" : "com.bmc.cloud.model.beans.ServiceOfferingInstance",
    "description" : " ",
    "externalID" : "<hostname prefix>",
    "functionalComponents" : [ "/functionalcomponent/6fe08b38-6f1a-4a3b-b251-6326c28ae035", "/functionalcomponent/e304ece9-e123-4122-9dda-3c0fdb32655e" ],
    "guid" : "a53f7476-ef99-4edc-b7ce-234c09ef50cb",
    "name" : "<SOI>",
    "owner" : "<owner>",
    "provisionDate" : 1332769884000,
    "provisionedDeploymentModel" : "{\"version\":1.1,\"class\":\"deploymentmodel\",\"attributes\":{\"name\":\"PB Service Deployment Definition\",\"functionalmodelguid\":\"8A515036-EF70-F3C5-7D9A-AB141A384D61\",\"guid\":\"3AEE90EE-8076-3280-BB94-AB153962EFA7\",\"resourceset\":[{\"functionalcomponent\":[{\"guid\":\"5DA4AE59-70D3-4D86-5378-AB14BA17D233\"}],\"network\":{\"nics\":[{\"isdhcp\":true,\"nicnumber\":1,\"networklabel\":\"Network 1\"}]},\"tags\":[{\"taggroup\":\"PBResPool\",\"tag\":\"All\"}],\"name\":\"PB Windows Resource Set\",\"guid\":\"4C2D9D2F-978E-CDF9-B3E0-AB1A96FED521\",\"description\":\"\",\"compute\":{\"computecontainer\":{\"installOS\":false,\"installableresource\":\"PDC_ENT00012428\",\"hwarchitecture\":\"X86\",\"installsoftware\":false,\"virtual\":true,\"memory\":[{\"policy\":\"No Less Than\",\"mb\":1024}],\"cpus\":[{\"policy\":\"No Less Than\",\"count\":1}]},\"instances\":1}},{\"guid\":\"5FE2BE6D-288D-D945-E165-4EBE1B6AFD35\",\"network\":{\"nics\":[{\"nicnumber\":1,\"networklabel\":\"Network 1\",\"isdhcp\":true}]},\"tags\":[{\"taggroup\":\"PBResPool\",\"tag\":\"All\"}],\"name\":\"PB New Resource\",\"description\":\"\",\"functionalcomponent\":[{\"guid\":\"5DA4AE59-70D3-4D86-5378-AB14BA17D233\"}],\"compute\":{\"computecontainer\":{\"installOS\":false,\"installableresource\":\"PDC_ENT00012428\",\"hwarchitecture\":\"X86\",\"installsoftware\":false,\"virtual\":true,\"memory\":[{\"policy\":\"No Less Than\",\"mb\":1024}],\"cpus\":[{\"policy\":\"No Less Than\",\"count\":1}]},\"instances\":1}}]}}\n\r{\"path\":\"[class=deploymentmodel]/attributes/resourceset[tags.taggroup=PBResPool&tags.tag=All]/compute/computecontainer/cpus\",\"optionvalue\":{\"policy\":\"NotLessThan\",\"count\":1},\"change\":\"replace\"}\n\r{\"path\":\"[class=deploymentmodel]/attributes/resourceset[tags.taggroup=PBResPool&tags.tag=All]/compute/computecontainer/memory\",\"change\":\"replace\",\"optionvalue\":{\"mb\":1024,\"policy\":\"NotLessThan\"}}",
    "provisionedFunctionalModel" : "{\"version\":1,\"class\":\"functionalmodel\",\"attributes\":{\"tags\":[{\"taggroup\":\"PBResPool\",\"tag\":\"Gold\"},{\"taggroup\":\"PBResPool\",\"tag\":\"Silver\"}],\"name\":\"PB Blueprint\",\"functionalcomponent\":[{\"operatingsystem\":{\"productcatalogid\":\"PDC_ENT00012130\",\"postinstall\":{\"action\":null,\"actiontype\":null}},\"software\":[{\"standard\":true,\"preinstall\":{\"action\":null,\"actiontype\":null},\"sequence\":1,\"productcatalogid\":\"PDC_ENT00012327\",\"postinstall\":{\"action\":null,\"actiontype\":null}}],\"description\":\"PB Blueprint Component\",\"tags\":null,\"name\":\"PB Blueprint Component\",\"guid\":\"5DA4AE59-70D3-4D86-5378-AB14BA17D233\",\"constraints\":{\"mincpus\":1,\"minstoragemb\":1024,\"minrammb\":512}}],\"description\":\"\",\"guid\":\"8A515036-EF70-F3C5-7D9A-AB141A384D61\"}}",
    "reconciliationID" : "OI-b00f395b23e04e1baaa3c169c8a7f77f",
    "state" : "Provisioning",
    "tenant" : "/organization/OI-6C7307DD66324D1AA760EE3EE6C2CF1C",
    "tokenID" : "a53f7476-ef99-4edc-b7ce-234c09ef50cb"
    }

    This example has 2 servers in the service offering.

    For each server there is a /functionalcomponent/<GUID> listed. Making subsequent HTTP calls to the CLM API using these values, it's possible to pull further information about each system. Each response will give more information that can be used in HTTP calls.

      

    The csmrequest produced by ServiceOfferingInstance_BULKCREATE as the provider operation will also contain the functional component GUIDs that can be used in the AO workflow to make the initial HTTP calls.

      

    <string>functionalComponents</string>

      

    <list>

      

    <string>/functionalcomponent/955e87ca-b7e8-4421-880f-cf925adb36c6</string>

      

    <string>/functionalcomponent/a1cc38a6-155a-43c6-906a-539a54f1aa2f</string>

      

    </list>

      

    Each functional component corresponds to a server in the service offering.

      
    Related Products:  
       
    1. BMC Cloud Lifecycle Management

     


    Article Number:

    000030972


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles