Possible to Get Custom Attribute?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
I can get customValue from a VM when pulling its information. I organize my VMs by a custom attributes. For example, 'owner'.
Is there anyway to see all custom attributes with its name? I notice its only be an index id.
In this case, 44 = "owner"
(vim.CustomFieldsManager.Value) [
(vim.CustomFieldsManager.StringValue) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 44,
value = 'JohnDoe'
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the vim.CustomFieldsManager.Value example in the issue and trace the pyvmomi bindings for CustomFieldsManager. Check the VMware vSphere API documentation for how numeric custom-field keys map to names; done means documenting or exposing a supported way to retrieve those names, with a focused test if the bindings require a change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100