jonathanvh
Enthusiast
Enthusiast

REST calls to vRealize Operations Manager does character "translation"

Hi,

I need to do an API call to vRealize Operations Manager from vRealize Orchestrator.

And I use the workflow "Invoke a REST operation"

Basically I need to have following URL:

https://URL/suite-api/api/resources/b51cc558-22f4-409a-bab9-f324a18a7a41/stats/latest?statKey=OnlineCapacityAnalytics|cpu|alloc|capacityRemaining

But the Invoke a REST operation "translates" it to this:

https://URL/suite-api/api/resources/b51cc558-22f4-409a-bab9-f324a18a7a41/stats/latest?statKey=OnlineCapacityAnalytics%5C%7Ccpu%5C%7Calloc%5C%7CcapacityRemaining

Anyone suggestions ?

Thanks!

Tags (1)
0 Kudos
1 Reply
eoinbyrne
Expert
Expert

Think there might be an issue with the URL - possibly the order is wrong?

This is the character sequence requiring escapes

OnlineCapacityAnalytics|cpu|alloc|capacityRemaining

The embedded pipe chars '|' correspond to the %7C expressions in the final string - these are how vROPs recognises a metric name

I wonder if the JS engine is putting a '\' character to escape the pipe chars so the pre-URL encoded string is

OnlineCapacityAnalytics\|cpu\|alloc\|capacityRemaining

Then when URL escaping is applied the '\' chars become %5C

Which version of vRO and the REST plugin are you using?

0 Kudos