Skip to content

Instantly share code, notes, and snippets.

@embano1
Created April 6, 2022 08:58
Show Gist options
  • Save embano1/10b07302910c4d37257951e2ec599d06 to your computer and use it in GitHub Desktop.
Save embano1/10b07302910c4d37257951e2ec599d06 to your computer and use it in GitHub Desktop.
Retrieve StorageIOAllocation property of a virtual disk
$ ./govc object.collect -json /vcqaDC/vm/vm-with-disk config.hardware.device \
  | jq '.[0].Val.VirtualDevice[]|select(.Key==2000)|.StorageIOAllocation'
{
  "Limit": -1,
  "Shares": {
    "Shares": 1000,
    "Level": "normal"
  },
  "Reservation": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment