VMware Cloud Director API - POST-ImportGroup

VMware Cloud Director API - POST-ImportGroup

POST /admin/org/{id}/groups

Operation:
POST /admin/org/{id}/groups
Description:
Import a group from the LDAP directory service.
Since:
0.9
Input parameters
Consume media type(s):
application/vnd.vmware.admin.group+xml
application/vnd.vmware.admin.group+json
Input type:
GroupType
Output parameters
GroupType

Produce media type(s):
application/vnd.vmware.admin.group+xml
application/vnd.vmware.admin.group+json
Output type:
GroupType
Examples
Request
HTTP 1.1
POST /api/admin/org/7cc8d565-1203-49bd-b50c-24e0acbaeb5a/groups

Headers:
Content-Length: 240
Content-Type: application/vnd.vmware.admin.group+xml; charset=ISO-8859-1
x-vcloud-authorization: FQMWZgFq5mhMRSpt2ecxnsAXTxRpxdbZ/z2u6uwEH+w=

Body:
<?xml version="1.0" encoding="UTF-8"?><vcloud:Group
    xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
    name="org3group">
    <vcloud:Role
        href="https://vcloud.example.com/api/admin/role/a08a8798-7d9b-34d6-8dad-48c7182c5f66"/>
</vcloud:Group>
Response
HTTP/1.1 201 Created

Headers:
Content-Length: 559
Content-Type: application/vnd.vmware.admin.group+xml;version=5.5
Location: https://vcloud.example.com/api/admin/group/660cab2a-815c-41a6-89a8-4c016ac8b719
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?><Group
    xmlns="http://www.vmware.com/vcloud/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    href="https://vcloud.example.com/api/admin/group/660cab2a-815c-41a6-89a8-4c016ac8b719"
    id="urn:vcloud:group:660cab2a-815c-41a6-89a8-4c016ac8b719"
    name="org3group"
    type="application/vnd.vmware.admin.group+xml"
    xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
    <Role
        href="https://vcloud.example.com/api/admin/role/a08a8798-7d9b-34d6-8dad-48c7182c5f66"/>
</Group>