Vimsvc/auth/role permissions: Difference between revisions

From VI-Toolkit
Jump to navigation Jump to search
added example output
No edit summary
 
Line 13: Line 13:
  # vmware-vim-cmd -H 10.10.10.10 -U root -P password vimsvc/auth/role_permissions ReadOnly
  # vmware-vim-cmd -H 10.10.10.10 -U root -P password vimsvc/auth/role_permissions ReadOnly
  (vim.AuthorizationManager.Permission) []
  (vim.AuthorizationManager.Permission) []
 
  # vmware-vim-cmd -H 10.10.10.10 -U root -P password vimsvc/auth/role_permissions Admin
  # vmware-vim-cmd -H 10.10.10.10 -U root -P password vimsvc/auth/role_permissions Admin
  (vim.AuthorizationManager.Permission) [
  (vim.AuthorizationManager.Permission) [

Latest revision as of 23:26, 28 December 2008

vimsh vimsvc/auth/role_permissions

Usage: role_permissions roleName

Gets defined permissions associated with a role. The roleName is case sensitive.

example output

Here's the output of the command when executed against a default setup on an ESX3.5iU3 host.

# vmware-vim-cmd -H 10.10.10.10 -U root -P password vimsvc/auth/role_permissions Anonymous
(vim.AuthorizationManager.Permission) []

# vmware-vim-cmd -H 10.10.10.10 -U root -P password vimsvc/auth/role_permissions ReadOnly
(vim.AuthorizationManager.Permission) []

# vmware-vim-cmd -H 10.10.10.10 -U root -P password vimsvc/auth/role_permissions Admin
(vim.AuthorizationManager.Permission) [
   (vim.AuthorizationManager.Permission) {
      dynamicType = <unset>,
      entity = 'vim.Folder:ha-folder-root',
      principal = "dcui",
      group = false,
      roleId = -1,
      propagate = true,
   },
   (vim.AuthorizationManager.Permission) {
      dynamicType = <unset>,
      entity = 'vim.Folder:ha-folder-root',
      principal = "root",
      group = false,
      roleId = -1,
      propagate = true,
   }
]