GitHub Repository: https://github.com/SimonSparksUK/Automation
Filename: Policy-Day-2-Action-Sample.json
{
"name": "Default - Day 2 Actions Policy",
"typeId": "com.vmware.policy.deployment.action",
"projectId": "--INSERT-YOUR-PROJECT-ID-HERE--",
"enforcementType": "HARD",
"definition": {
"allowedActions": [
{
"actions": [
"Cloud.vSphere.Machine.PowerOff",
"Cloud.vSphere.Machine.PowerOn",
"Cloud.vSphere.Machine.Reboot",
"Cloud.vSphere.Machine.Rebuild",
"Cloud.vSphere.Disk.Disk.Change.Display.Name",
"Cloud.vSphere.Disk.Disk.Resize",
"Cloud.vSphere.Disk.Update.Tags",
"Cloud.vSphere.Machine.Add.Disk",
"Cloud.vSphere.Machine.ApplySaltConfiguration",
"Cloud.vSphere.Machine.AttachSaltStackResource",
"Cloud.vSphere.Machine.Change.SecurityGroup",
"Cloud.vSphere.Machine.Compute.Disk.Resize",
"Cloud.vSphere.Machine.Delete",
"Cloud.vSphere.Machine.Remote.Console",
"Cloud.vSphere.Machine.Remote.PrivateKey",
"Cloud.vSphere.Machine.Remove.Disk",
"Cloud.vSphere.Machine.Reset",
"Cloud.vSphere.Machine.Resize",
"Cloud.vSphere.Machine.Resize.Compute.Disk",
"Cloud.vSphere.Machine.Shutdown",
"Cloud.vSphere.Machine.Snapshot.Create",
"Cloud.vSphere.Machine.Snapshot.Delete",
"Cloud.vSphere.Machine.Snapshot.Revert",
"Cloud.vSphere.Machine.Suspend",
"Cloud.vSphere.Machine.Unregister",
"Cloud.vSphere.Machine.Update.Tags",
"Deployment.ChangeLease",
"Deployment.Update",
"Deployment.RebuildVMs",
"Deployment.PowerOn",
"Deployment.PowerOff",
"Deployment.EditTags",
"Deployment.EditDeployment",
"Deployment.Delete",
"Deployment.ChangeProject",
"Deployment.ChangeOwner",
"Cloud.NSX.LoadBalancer.Delete",
"Cloud.NSX.LoadBalancer.LoadBalancer.Reconfigure",
"Cloud.NSX.Network.*",
"Cloud.NSX.Nat.*"
],
"authorities": [
"USER:admin"
]
}
]
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
