Hi,
We have an application that is not capable of handling async responses from ManageIQ/Cloudforms. Is there a way to have ManageIQ responde synchronously? To make it more more clear, we’d want to have
url = "https://#{cfserver}/api/automation_requests"
resource = RestClient::Resource.new(url, user, password)
payload = {
“action” => “create”,
“resource” => {
“version” => “1.1”,
“uri_parts” => {
“namespace” => “System”,
“class” => “Request”,
“instance” => “someentry”,
“message” => “create”
},
“parameters” => {
“vm_name” => “vm1234”
},
“requester” => {
“auto_approve” => true
}
}
}
make the automation request , and the response object will be populated in the state machine and returned here.
response = resource.post(payload.to_json, “Content-Type” => “application/json”)
request_result = JSON.parse(response)