1 Reply Latest reply on May 28, 2018 2:24 AM by Yudi Maryanto

    How to Relate a Tenant to an Entitlement Package

    Yudi Maryanto
      Share:|

      Hi,

       

      I want to relate an entitlement package to a tenant. Based on this document Organization class - Documentation for BMC Cloud Lifecycle Management 4.6 - BMC Documentation , it says that "Organization" class has "entitlementPackages" relationship.

      relationship.PNG

       

      But I found no "entitlementPackages" in the "Organization" class attributes as seen below

      attributes.PNG

       

      I also tried to submit JSON like this, but got an error

      request01.jpg

      Here is the error I got

      error.PNG

       

      What is the correct way to map an entitlement package to a tenant?

       

      Thanks

        • 1. Re: How to Relate a Tenant to an Entitlement Package
          Yudi Maryanto

          Hi,

           

          After opening ticket to BMC Support, they said that if we wanto to map a Tenant to EntitlementPackages, we can use "Organization" create API instead of "Organization" update API. here is the sample JSON request

          {
            "timeout": -1,
            "callbackURL": "",
            "postCallout": "",
            "operationParams": [
              {
                "name": "organization",
                "value": {
                  "cloudClass": "com.bmc.cloud.model.beans.Organization",
                  "description": "created via rest-update-update",
                  "foundationLocationsObject": [
                    {
                      "cloudClass": "com.bmc.cloud.model.beans.FoundationLocation",
                      "customFieldsObject": [
                        {
                          "cloudClass": "com.bmc.cloud.model.beans.CustomField",
                          "description": "Country",
                          "name": "sit_site.1000000002",
                          "stringValue": "Indonesia",
                          "type": "String"
                        },
                        {
                          "cloudClass": "com.bmc.cloud.model.beans.CustomField",
                          "description": "StateProvince",
                          "name": "sit_site.1000000003",
                          "stringValue": "DKI Jakarta",
                          "type": "String"
                        },
                        {
                          "cloudClass": "com.bmc.cloud.model.beans.CustomField",
                          "description": "City",
                          "name": "sit_site.1000000004",
                          "stringValue": "Jakarta",
                          "type": "String"
                        }
                      ],
                      "name": "Main-HQ"
                    }
                  ],
                  "entitlementPackagesObject": [
                       {
                         "cloudClass": "com.bmc.cloud.model.beans.EntitlementPackage",
                         "guid": "SRHAA5V0GVW92APGLWJ8ABXTBFAG3H",
                         "name": "Global"
                       }
                  ],        
                  "name": "BranchJakarta",
                  "parentOrganizationObject": {
                    "cloudClass": "com.bmc.cloud.model.beans.Organization",
                    "name": "MainBranch"
                  }
                },
                "type": "com.bmc.cloud.model.beans.Organization",
                "multiplicity": "1"
              },
              {
                "name": "isRemote",
                "value": true,
                "type": "java.lang.Boolean",
                "multiplicity": "0..1"
              }
            ],
            "preCallout": ""
          }