manageiq-api icon indicating copy to clipboard operation
manageiq-api copied to clipboard

[RFE] Ability to change Catalog Item Request Info via API

Open eggoide opened this issue 2 years ago • 9 comments

Hi, is there a way how to set or reset VM for a catalog item using rails or API? I can do it in GUI on the following tab: image

but I need to do it in a script. I cannot find any relation between a Catalog Item and the data in Request Info. How can I retrieve them and change them if needed?

Thank you very much!

eggoide avatar Jan 24 '23 08:01 eggoide

It's possible that's not exposed via the API, as those provisioning forms are some of the oldest in the app (from before we even had an API). I'm going to transfer this to the API repo and mark as an enhancement request.

Fryguy avatar Jan 26 '23 14:01 Fryguy

@kbrock Do you know if we have this?

Fryguy avatar Jan 26 '23 14:01 Fryguy

We have a spec around using the API to update a request. I'm assuming you are talking about the request rather than the contents of the catalog item.

Knowing the actual fields to set here would be tricky, but it looks like it is possible.

https://github.com/ManageIQ/manageiq-api/blob/master/spec/requests/requests_spec.rb#L354-L369

kbrock avatar Feb 17 '23 01:02 kbrock

Now that we know we have the endpoint. Is this endpoint good enough? Or do we have some changes we need?

kbrock avatar Mar 27 '23 23:03 kbrock

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

miq-bot avatar Jul 03 '23 00:07 miq-bot

This issue has been automatically closed because it has not been updated for at least 3 months.

Feel free to reopen this issue if this issue is still valid.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

miq-bot avatar Oct 09 '23 00:10 miq-bot

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

miq-bot avatar Jan 15 '24 00:01 miq-bot

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

miq-bot avatar Apr 22 '24 00:04 miq-bot

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

miq-bot avatar Jul 29 '24 00:07 miq-bot