Hello,
I'm wondering if anyone is aware of some management api that will capture the call flows for a given proxy. Say I have a proxy called MUSIC, and flownames like "getBandDetails" or "getAlbumTracks" where Condition/Path would be like "/bandname" or "/albumname" respectively.
Something where you could call v1/organizations/ORGNAME/apis/PROXYNAME and output would be like
"path/condition"
: [ "/bandname", "/albumname",]
It's all there in the Proxy overview in the UI, but would love to be able to call for those details via api.
Thanks!
Solved! Go to Solution.
There's an API for that.
A few things to know...
So,
curl -n $mgmtserver/v1/o/$ORG/apis/$API/revisions/1/proxies/$PROXYENDPOINTNAME
The name of the proxyendpoint is often "default" but again, this is not required. To list the proxyendpoints in a proxy bundle, use
curl -n $mgmtserver/v1/o/$ORG/apis/$API/revisions/1/proxies
From the former query, you will get output like:
{ "name": "getBandDetails", "condition": "(proxy.pathsuffix MatchesPath \"/band\") and (request.verb = \"GET\")", "description": "get details for a band", "request": { "children": [ ... policies on the request flow here... ] }, "response": { "children": [ ...policies on the response flow here... ] } }
You can ask for the result in XML format, too. Just pass the Accept header.