Managing granular rights on vSphere objects
Find out how to grant or remove user rights on specific objects in your Hosted Private Cloud vSphere inventory
Objective
In addition to global datacenter rights, you can assign granular rights to users on specific objects in your Hosted Private Cloud vSphere inventory (for example, a VM or datastore). This guide explains how to add, view and remove these rights through the OVHcloud API.
Granular rights on vSphere objects cannot be managed from the OVHcloud Control Panel. They must be configured through the OVHcloud API.
Requirements
- A Hosted Private Cloud service with vSphere version 6.5 or higher
- Access to the
- A user already created in your Hosted Private Cloud service
OVHcloud Control Panel Access
- Direct link: VMware vSphere
- Navigation path:
Hosted Private Cloud>Managed VMware vSphere> Select your vSphere service
Instructions
Add rights to a vSphere object
-
Call the following API endpoint:
-
Fill in the request body with the object and user you want to grant access to.
You can choose whether or not to propagate the right to child objects, similar to vSphere native rights.
-
Confirm the request. A task of type
addUserObjectRightis created and applied on the vSphere object.For example, to grant read/write access on a VM:
View a user's rights on a vSphere object
To view a specific right, you first need to know its objectRightId.
-
List all rights granted to the user by calling the following endpoint:
Fill in the fields with the
serviceName(service domain) and theuserId(user identifier). The response returns the list ofobjectRightIdidentifiers of the rights granted to the user: -
Call the following API endpoint to view the details of a specific right:
-
Fill in the fields with the
objectRightIdcorresponding to the right you want to view. -
Confirm the request. The response returns information about the right granted to the user on the vSphere object:
Remove rights from a vSphere object
-
Call the following API endpoint:
-
Fill in the fields with the
objectRightIdcorresponding to the right you want to remove. -
Confirm the request. A task of type
removeUserObjectRightis created and removes the user right from the vSphere object.
Go further
For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.
Join our community of users.