Skip to content

Instantly share code, notes, and snippets.

@michaelrice
Created October 14, 2014 18:47
Show Gist options
  • Select an option

  • Save michaelrice/546b38b06e51b35de9a6 to your computer and use it in GitHub Desktop.

Select an option

Save michaelrice/546b38b06e51b35de9a6 to your computer and use it in GitHub Desktop.
pyVmomi licensableResource
>>> children = content.rootFolder.childEntity
>>> hosts = children[0].hostFolder.childEntity
>>> hosts[0].host[0].licensableResource
(vim.LicenseManager.LicensableResourceInfo) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
resource = (vmodl.KeyAnyValue) [
(vmodl.KeyAnyValue) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'numCpuPackages',
value = 2L
},
(vmodl.KeyAnyValue) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'numCpuCores',
value = 4L
},
(vmodl.KeyAnyValue) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'memorySize',
value = 17175269376L
},
(vmodl.KeyAnyValue) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'memoryForVms',
value = 0L
},
(vmodl.KeyAnyValue) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'numVmsStarted',
value = 0L
},
(vmodl.KeyAnyValue) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'numVmsStarting',
value = 0L
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment