-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting resource custom attributes/fields should be as easy as setting them #3187
Comments
Howdy 🖐 rickatnight11 ! Thank you for your interest in this project. We value your feedback and will respond soon. If you want to contribute to this project, please make yourself familiar with the |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
|
This issue is stale because it has been open for 90 days with no |
Not stale. |
/remove-lifecycle stale |
|
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale
|
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale
|
Is your feature request related to a problem? Please describe.
I'm developing an app to manage VMs (i.e. stop, start, reboot) in a hybrid environment based on custom attributes (to match similar behavior on AWS and Azure hosts using tags). Setting VM tags on a
VirtualMachine
object is as easy as:....whereas getting the current values requires a complicated lookup from the
ManagedObjectReference
via aCustomFieldManager
like:Describe the solution you'd like
It would be amazingly convenient for the
VirtualMachine
object (and other similar resource objects), itself, to have a function that returns a list of key-value custom attributes/fields, like so:In this way custom attributes would actually behave like attributes of the resource they're supposed to be attached to, rather than a lookup for a totally separate resource.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
My use-case only needs this for VMs, but I imagine all resources (or perhaps generically just
Common
) would greatly benefit.The text was updated successfully, but these errors were encountered: