REST and SOAP Parity

I wrote a script that used the SOAP API to pull together a daily provisioning report. I’m looking at refactoring it to REST, but it looks like there might be some things missing. Specifically, I was referencing:

[:hardware][:guest_os_full_name]
[:custom_attributes][:item]
[:ws_attributes][:item]

after I queried a specific VM. Looking at the REST output for /api/vms/:id, these seem to be missing. Am I looking in the wrong spot, or were these not implemented in Botvinnik?

Thanks,
Matt

Hello,

the documentation on the latest REST API version is not very good, but this can lead you: https://github.com/ManageIQ/manageiq/issues/121#issuecomment-91666742

Not sure if this feature is already available in Botvinnik, but I tried it on the latest CFME with API version 2.0.0 and the hardware and custom_attributes virtual attributes work, ws_attributes not.

https://xyz/api/vms/4?attributes=hardware,custom_attributes,ws_attributes

FYI the SOAP API was already removed in the current master ( https://github.com/ManageIQ/manageiq/pull/3392 ) so the next release of ManageIQ should lack SOAP.

Milan Falešník, QE

Ah, thanks for the link to the other conversation, the ?attributes was my missing link. It looks like that is available in Botvinnik.

Matt

Actually, looking at it now, I think the ws_attributes were just promoted to top-level. The two I was using previously were ipaddresses and evm_owner_name, both of which I can request as part of the attributes list:

?attributes=hardware,custom_attributes,ipaddresses,evm_owner_name

Thanks!
Matt