Vimsvc/auth/roles
Jump to navigation
Jump to search
vimsh vimsvc/auth/roles
Usage: roles
Get the list of currently defined roles.
example output
Here's example output of a pristine ESX3.5i host with no additional roles defined or customized.
# vmware-vim-cmd -H 10.10.10.10 -U root -P password vimsvc/auth/roles (vim.AuthorizationManager.Role) [ (vim.AuthorizationManager.Role) { dynamicType = <unset>, roleId = -5, system = true, name = "NoAccess", info = (vim.Description) { dynamicType = <unset>, label = "No Access", summary = "Used for restricting granted access", }, }, (vim.AuthorizationManager.Role) { dynamicType = <unset>, roleId = -4, system = true, name = "Anonymous", info = (vim.Description) { dynamicType = <unset>, label = "Anonymous", summary = "Not logged-in user (cannot be granted)", }, privilege = (string) [ "System.Anonymous" ], }, (vim.AuthorizationManager.Role) { dynamicType = <unset>, roleId = -3, system = true, name = "View", info = (vim.Description) { dynamicType = <unset>, label = "View", summary = "Visibility access (cannot be granted)", }, privilege = (string) [ "System.Anonymous", "System.View" ], }, (vim.AuthorizationManager.Role) { dynamicType = <unset>, roleId = -2, system = true, name = "ReadOnly", info = (vim.Description) { dynamicType = <unset>, label = "Read-Only", summary = "See details of objects, but not make changes", }, privilege = (string) [ "System.Anonymous", "System.Read", "System.View" ], }, (vim.AuthorizationManager.Role) { dynamicType = <unset>, roleId = -1, system = true, name = "Admin", info = (vim.Description) { dynamicType = <unset>, label = "Administrator", summary = "Full access rights", }, privilege = (string) [ "Alarm.Create", "Alarm.Delete", "Alarm.Edit", "Authorization.ModifyPermissions", "Authorization.ModifyRoles", "Authorization.ReassignRolePermissions", "Datacenter.Create", "Datacenter.Delete", "Datacenter.Move", "Datacenter.Rename", "Datastore.Browse", "Datastore.Delete", "Datastore.DeleteFile", "Datastore.FileManagement", "Datastore.Rename", "Extension.Register", "Extension.Unregister", "Extension.Update", "Folder.Create", "Folder.Delete", "Folder.Move", "Folder.Rename", "Global.CancelTask", "Global.CapacityPlanning", "Global.Diagnostics", "Global.DisableMethods", "Global.EnableMethods", "Global.Licenses", "Global.LogEvent", "Global.ManageCustomFields", "Global.Proxy", "Global.ScriptAction", "Global.ServiceManagers", "Global.SetCustomField", "Global.Settings", "Global.VCServer", "Host.Cim.CimInteraction", "Host.Config.AdvancedConfig", "Host.Config.AutoStart", "Host.Config.Connection", "Host.Config.DateTime", "Host.Config.Firmware", "Host.Config.HyperThreading", "Host.Config.Maintenance", "Host.Config.Memory", "Host.Config.NetService", "Host.Config.Network", "Host.Config.Patch", "Host.Config.Resources", "Host.Config.Settings", "Host.Config.Snmp", "Host.Config.Storage", "Host.Config.SystemManagement", "Host.Inventory.AddHostToCluster", "Host.Inventory.AddStandaloneHost", "Host.Inventory.CreateCluster", "Host.Inventory.DeleteCluster", "Host.Inventory.EditCluster", "Host.Inventory.MoveCluster", "Host.Inventory.MoveHost", "Host.Inventory.RemoveHostFromCluster", "Host.Inventory.RenameCluster", "Host.Local.CreateVM", "Host.Local.DeleteVM", "Host.Local.InstallAgent", "Host.Local.ManageUserGroups", "Network.Delete", "Performance.ModifyIntervals", "Resource.ApplyRecommendation", "Resource.AssignVMToPool", "Resource.ColdMigrate", "Resource.CreatePool", "Resource.DeletePool", "Resource.EditPool", "Resource.HotMigrate", "Resource.MovePool", "Resource.QueryVMotion", "Resource.RenamePool", "ScheduledTask.Create", "ScheduledTask.Delete", "ScheduledTask.Edit", "ScheduledTask.Run", "Sessions.GlobalMessage", "Sessions.ImpersonateUser", "Sessions.TerminateSession", "Sessions.ValidateSession", "System.Anonymous", "System.Read", "System.View", "Task.Create", "Task.Update", "VirtualMachine.Config.AddExistingDisk", "VirtualMachine.Config.AddNewDisk", "VirtualMachine.Config.AddRemoveDevice", "VirtualMachine.Config.AdvancedConfig", "VirtualMachine.Config.CPUCount", "VirtualMachine.Config.DiskExtend", "VirtualMachine.Config.DiskLease", "VirtualMachine.Config.EditDevice", "VirtualMachine.Config.HostUSBDevice", "VirtualMachine.Config.Memory", "VirtualMachine.Config.RawDevice", "VirtualMachine.Config.RemoveDisk", "VirtualMachine.Config.Rename", "VirtualMachine.Config.ResetGuestInfo", "VirtualMachine.Config.Resource", "VirtualMachine.Config.Settings", "VirtualMachine.Config.SwapPlacement", "VirtualMachine.Config.UpgradeVirtualHardware", "VirtualMachine.Interact.AnswerQuestion", "VirtualMachine.Interact.Backup", "VirtualMachine.Interact.ConsoleInteract", "VirtualMachine.Interact.DefragmentAllDisks", "VirtualMachine.Interact.DeviceConnection", "VirtualMachine.Interact.PowerOff", "VirtualMachine.Interact.PowerOn", "VirtualMachine.Interact.Reset", "VirtualMachine.Interact.SetCDMedia", "VirtualMachine.Interact.SetFloppyMedia", "VirtualMachine.Interact.Suspend", "VirtualMachine.Interact.ToolsInstall", "VirtualMachine.Inventory.Create", "VirtualMachine.Inventory.Delete", "VirtualMachine.Inventory.Move", "VirtualMachine.Provisioning.Clone", "VirtualMachine.Provisioning.CloneTemplate", "VirtualMachine.Provisioning.CreateTemplateFromVM", "VirtualMachine.Provisioning.Customize", "VirtualMachine.Provisioning.DeployTemplate", "VirtualMachine.Provisioning.DiskRandomAccess", "VirtualMachine.Provisioning.DiskRandomRead", "VirtualMachine.Provisioning.GetVmFiles", "VirtualMachine.Provisioning.MarkAsTemplate", "VirtualMachine.Provisioning.MarkAsVM", "VirtualMachine.Provisioning.ModifyCustSpecs", "VirtualMachine.Provisioning.PutVmFiles", "VirtualMachine.Provisioning.ReadCustSpecs", "VirtualMachine.State.CreateSnapshot", "VirtualMachine.State.RemoveSnapshot", "VirtualMachine.State.RenameSnapshot", "VirtualMachine.State.RevertToSnapshot" ], } ]