Service - Permission

Class
VMware.Hv.Permission
See also
PermissionBase, PermissionId, PermissionInfo
Since
Horizon View 6.0


Service Description

Information about a permission. This represents a simple association between a single admin user, a single role (which may encompass multiple privileges), and a single access group. Admin users/groups, roles, and access groups may each be associated with multiple permissions.

Methods

Methods defined in this Service
Permission_Create, Permission_CreatePermissions, Permission_Delete, Permission_DeletePermissions, Permission_Get, Permission_GetInfos, Permission_List

Permission_Create

Add a permission that connects a user/group, role, and access group. delete/create should be used instead of update.

Privileges

Privilege Description
GLOBAL_PERMISSION_MANAGEMENT Permission management privilege is required to create a permission.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Permission used to make the method call.
basePermissionBase

attributes needed to add a permission

Return Value

Type Description
PermissionIdunique identifier

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Events

Event Description
ADMIN_PERMISSION_ADDED Sent when a permission is successfully created.
ADMIN_PERMISSION_ADD_FAILED Sent when a permission fails to be created.

Show WSDL type definition



Permission_CreatePermissions

Create multiple admin permissions. If all creations were not successful, a PartialFailureFault will be thrown indicating which bases were successfully created and which failed. The index of results in the PartialFailureFault correspond to the index of the original base. The result entry will contain either be the original return type (on success) or an exception (on failure).

Privileges

Privilege Description
GLOBAL_PERMISSION_MANAGEMENT Permission management privilege is required to create any permissions.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Permission used to make the method call.
basesPermissionBase[]

PermissionBases of entities to create.

Return Value

Type Description
PermissionId[]The created permission ids

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidTypeThrown if the type of any specified argument is invalid.
PartialFailureFaultThrown if all operations were not successful, a PartialFailureFault will be thrown indicating which permissions were successfully created and which ones failed. The index of results in the PartialFailureFault correspond to the index of the original permission. The result entry will contain either the original return type (on success) or an exception (on failure).
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Events

Event Description
ADMIN_PERMISSION_ADDED Sent for each permission that is successfully created.
ADMIN_PERMISSION_ADD_FAILED Sent for each permission that fails to be created.

Show WSDL type definition



Permission_Delete

Delete a given permission. delete/create should be used instead of update.

Privileges

Privilege Description
GLOBAL_PERMISSION_MANAGEMENT Permission management privilege is required to delete any permissions.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Permission used to make the method call.
idPermissionId

PermissionId of entity to delete.

Return Value

Type Description
None

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Events

Event Description
ADMIN_PERMISSION_REMOVED Sent when a permission is successfully deleted.
ADMIN_PERMISSION_REMOVE_FAILED Sent when a permission fails to be deleted.

Show WSDL type definition



Permission_DeletePermissions

Delete multiple admin permissions. If all deletions were not successful, a PartialFailureFault will be thrown indicating which bases were successfully deleted and which failed. The index of results in the PartialFailureFault correspond to the index of the original base. The result entry will contain a fault if the deletion failed.

Privileges

Privilege Description
GLOBAL_PERMISSION_MANAGEMENT Permission management privilege is required to delete any permissions.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Permission used to make the method call.
idsPermissionId[]

PermissionIds of entities to delete.

Return Value

Type Description
None

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidTypeThrown if the type of any specified argument is invalid.
PartialFailureFaultThrown if all operations were not successful, a PartialFailureFault will be thrown indicating which permissions were successfully deleted and which ones failed. The index of results in the PartialFailureFault correspond to the index of the original permission. The result entry will contain either the original return type (on success) or an exception (on failure).
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Events

Event Description
ADMIN_PERMISSION_REMOVED Sent for each permission that is successfully deleted.
ADMIN_PERMISSION_REMOVE_FAILED Sent for each permission that fails to be deleted.

Show WSDL type definition



Permission_Get

Get a permission by Id.

Privileges

Privilege Description
GLOBAL_PERMISSION_VIEW Permission read access privilege is required to read any permissions.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Permission used to make the method call.
idPermissionId

PermissionId of entity to get.

Return Value

Type Description
PermissionInforequested permission entity.

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Show WSDL type definition



Permission_GetInfos

Get multiple permission by Id.

Privileges

Privilege Description
GLOBAL_PERMISSION_VIEW Permission read access privilege is required to read any permissions.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Permission used to make the method call.
idsPermissionId[]

PermissionIds of entities to get.

Return Value

Type Description
PermissionInfo[]requested permission entities.

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Show WSDL type definition



Permission_List

List all permissions.

Privileges

Privilege Description
GLOBAL_PERMISSION_VIEW Permission read access privilege is required to read any permissions.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Permission used to make the method call.

Return Value

Type Description
PermissionInfo[]An array of permissions.

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Show WSDL type definition