VMware Cloud Community
nasadmin
Contributor
Contributor

Business Group creation using vRA API

Hi 

I  created a business group using  vRA API .But the newly business group is not showing in  the GUI ,where as I am able to retrieve the newly created business group using the API.  Am I missing something ? any help is greatly appreciated ?   

 

[URL]
/identity/api/tenants/{tenantId}/subtenants
[Action]
post
[body]
{
    "name": "test",
    "description": "test",
    "subtenantRoles": [
        {
            "scopeRoleRef": "CSP_SUBTENANT_MANAGER",
            "principalId": [
                {
                    "domain": "test.local",
                    "name": "s_admins"
                }
            ]
        }
    ],
    "tenant": "Lab",
    "extensionData": {
        "entries": [
            {
                "key": "iaas-manager-emails",
                "value": {
                    "type": "string",
                    "value": "admin@test.local"
                }
            }
        ]
    }
}

[URL]

/identity/api/tenants/{tenantId}/subtenants

[Action]

post

[body]

{

    "name": "test",

    "description": "test",

    "subtenantRoles": [

        {

            "scopeRoleRef": "CSP_SUBTENANT_MANAGER",

            "principalId": [

                {

                    "domain": "test.local",

                    "name": "admins"

                }

            ]

        }

    ],

    "tenant": "Lab",

    "extensionData": {

        "entries": [

            {

                "key": "iaas-manager-emails",

                "value": {

                    "type": "string",

                    "value": "admin@test.local"

                }

            }

        ]

    }

}

 
Thanks
0 Kudos
1 Reply
GrantOrchardVMw
Commander
Commander

I'm guessing you created this in 6.x? Back then, it was handled by the IaaS components, and that reservation API call was a private call that needed to be initiated from the IaaS components. This is no longer the case in 7.

Grant

Grant http://grantorchard.com
0 Kudos