Created
June 16, 2020 21:50
-
-
Save JohnKDay/ebf532834ab9f5784e34e2fde7a00044 to your computer and use it in GitHub Desktop.
Roles for vCenter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ccpVcenterRoles=( | |
Extension.Register | |
Extension.Unregister | |
Extension.Update | |
StorageProfile.View | |
System.Anonymous | |
System.Read | |
System.View | |
) | |
ccpDatacenterRoles=( | |
Datastore.AllocateSpace | |
Datastore.FileManagement | |
Network.Assign | |
Resource.AssignVMToPool | |
StorageProfile.View | |
System.Anonymous | |
System.Read | |
System.View | |
VApp.ApplicationConfig | |
VApp.Import | |
VApp.InstanceConfig | |
VApp.ManagedByConfig | |
VApp.PowerOff | |
VApp.PowerOn | |
VApp.ResourceConfig | |
VApp.Suspend | |
VirtualMachine.Config.AddExistingDisk | |
VirtualMachine.Config.AddNewDisk | |
VirtualMachine.Config.AddRemoveDevice | |
VirtualMachine.Config.AdvancedConfig | |
VirtualMachine.Config.CPUCount | |
VirtualMachine.Config.DiskExtend | |
VirtualMachine.Config.ManagedBy | |
VirtualMachine.Config.Memory | |
VirtualMachine.Config.RawDevice | |
VirtualMachine.Config.RemoveDisk | |
VirtualMachine.Config.Rename | |
VirtualMachine.Config.Resource | |
VirtualMachine.Config.Settings | |
VirtualMachine.Interact.PowerOff | |
VirtualMachine.Interact.PowerOn | |
VirtualMachine.Inventory.Create | |
VirtualMachine.Inventory.CreateFromExisting | |
VirtualMachine.Inventory.Delete | |
VirtualMachine.Provisioning.Clone | |
VirtualMachine.Provisioning.CreateTemplateFromVM | |
VirtualMachine.Provisioning.DeployTemplate | |
) | |
set -v | |
govc role.create ccp-vcenter ${ccpVcenterRoles[*]} | |
govc role.create ccp-datacenter ${ccpDatacenterRoles[*]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment