An organization is initially granted all rights contained in the predefined roles. A system administrator can grant additional rights to an organization or remove rights previously granted.
Many newer vCloud Director features require roles that use them to have special rights. These rights are not granted to an organization when you create it, or when you upgrade to a new vCloud Director release. A system administrator must grant these rights to organizations that are entitled to use the features, and an organization administrator must add the rights to existing roles or create new roles that include them.
There are several ways to edit the rights in an organization:
1 | Retrieve the set of rights available in the system. GET https://vcloud.example.com/api/admin The RightReferences element returned by this request includes a RightReference for each right that you can grant to an organization. | ||||||||
2 | Retrieve the set of rights that exist in the organization. GET https://vcloud.example.com/api/admin/org/id/rights The OrgRights element returned by this request includes a RightReference for each right that exists in the organization. | ||||||||
3 | Update the organization's rights.
|
This request adds several unassigned rights (rights that are not part of any predefined role) to an organization.
POST https://vcloud.example.com/api/admin/org/26/rights Content-type: application/vnd.vmware.admin.org.rights+xml ... <?xml version="1.0" encoding="UTF-8"?> <OrgRights xmlns="http://www.vmware.com/vcloud/v1.5"> <RightReference href="https://vcloud.example.com/api/admin/right/79f48ce4-975d-3b88-ad19-a25ce58b9e91" name="vApp: Allow All Extra Config" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/896288a1-6dc9-39d1-b2e8-89332a93f97d" name="vApp: Allow Ethernet Coalescing Extra Config" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/a98dd24b-8fd0-3fac-b548-611a467a53df" name="vApp: Allow Latency Extra Config" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/a96bebdd-ee34-3d62-9014-5283a88bad34" name="vApp: Allow Matching Extra Config" type="application/vnd.vmware.admin.right+xml" /> </OrgRights>
This variant of the request adds the same set of rights to the organization, but replaces the rights in the organization with the set of rights in the request body. Any rights not present in the request body are removed from the organization, and from all organization roles that include them.
PUT https://vcloud.example.com/api/admin/org/26/rights Content-type: application/vnd.vmware.admin.org.rights+xml ... <?xml version="1.0" encoding="UTF-8"?> <OrgRights xmlns="http://www.vmware.com/vcloud/v1.5"> <!-- include the existing rights --> <RightReference href="https://vcloud.example.com/api/admin/right/5ddb661d-caf0-3680-9a74-59d4b06137f3" name="Disk: Change Owner" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/b080bb50-cff1-3258-9683-842d34255a95" name="Organization vDC Gateway: Configure Services" type="application/vnd.vmware.admin.right+xml" /> ... <!-- then add the new rights --> <RightReference href="https://vcloud.example.com/api/admin/right/79f48ce4-975d-3b88-ad19-a25ce58b9e91" name="vApp: Allow All Extra Config" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/896288a1-6dc9-39d1-b2e8-89332a93f97d" name="vApp: Allow Ethernet Coalescing Extra Config" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/a98dd24b-8fd0-3fac-b548-611a467a53df" name="vApp: Allow Latency Extra Config" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/a96bebdd-ee34-3d62-9014-5283a88bad34" name="vApp: Allow Matching Extra Config" type="application/vnd.vmware.admin.right+xml" /> </OrgRights>
The response (only a portion of which is shown here) includes the new set of OrgRights. It also includes a link you can use to edit this list of rights.
<?xml version="1.0" encoding="UTF-8"?> <OrgRights xmlns="http://www.vmware.com/vcloud/v1.5" href="https://vcloud.example.com/api/admin/org/798e24f6-b0bd-4b93-8e2e-c3c65c907f43/rights"> <Link rel="edit" href="https://vcloud.example.com/api/admin/org/798e24f6-b0bd-4b93-8e2e-c3c65c907f43/rights" type="application/vnd.vmware.admin.org.rights+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/5ddb661d-caf0-3680-9a74-59d4b06137f3" name="Disk: Change Owner" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/b080bb50-cff1-3258-9683-842d34255a95" name="Organization vDC Gateway: Configure Services" type="application/vnd.vmware.admin.right+xml" /> ... <RightReference href="https://vcloud.example.com/api/admin/right/79f48ce4-975d-3b88-ad19-a25ce58b9e91" name="vApp: Allow All Extra Config" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/896288a1-6dc9-39d1-b2e8-89332a93f97d" name="vApp: Allow Ethernet Coalescing Extra Config" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/a98dd24b-8fd0-3fac-b548-611a467a53df" name="vApp: Allow Latency Extra Config" type="application/vnd.vmware.admin.right+xml" /> <RightReference href="https://vcloud.example.com/api/admin/right/a96bebdd-ee34-3d62-9014-5283a88bad34" name="vApp: Allow Matching Extra Config" type="application/vnd.vmware.admin.right+xml" /> </OrgRights>