Closed djberg96 closed 4 years ago
To avoid the need of a new major version, can we keep everything untouched but add a new method called get_model_and_instance_view
?
@bzwei I don't really want to add another method. Instead I changed it to just add an optional 3rd argument, so it won't be included by default, but you could do this:
vm.get(vm_name, vm_group, :expand => 'instanceView')
This gives us the capability without breaking backwards compatibility.
This pull request has been automatically marked as stale because it has not been updated for at least 3 months.
If these changes are still valid, please remove the stale
label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s)
Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation.
As of June 2018 the Azure REST API was modified to allow inline expansion of the instance view properties in a standard GET call for a single instance:
https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/get
This would be handy for the Azure provider, since we currently end up making a separate call for each VM to get power state information.
Supporting the
$expand
url parameter was also necessary for this to work.Oddly, the ability to use
$expand
does not yet appear to be supported for other calls.Note that this is technically a breaking change and we should consider a major version bump if accepted.