List the APi proxies created under custom user roles through curl call .

We have other customer user roles created other than org admin roles .where in users under custom roles create API proxies under this role . So is there any Curl APi call through which we can list the API proxies in that particular custom roles .

0 3 1,373
3 REPLIES 3

Former Community Member
Not applicable

Hi @Vaibhav Heddurshetti just curious what the intent is to get that information? When you query a single API proxy from the Management API, the response is:

HTTP/1.1 200 OKAccess-Control-Allow-Headers:originAccess-Control-Allow-Methods:GETAccess-Control-Allow-Origin:*Access-Control-Max-Age:3628800Connection:keep-aliveContent-Length:208Content-Type:application/jsonDate:Wed, 20 Apr 2016 13:59:03 GMTServer:Apigee Router{
  "metaData": {
    "createdAt": 1460321956626,
    "createdBy": "defaultUser",
    "lastModifiedAt": 1460322398951,
    "lastModifiedBy": "defaultUser"
  },
  "name": "cors",
  "revision": [
    "1"
  ]
}

As you can see the proxy stores the "createdBy" & "lastModifiedBy" attributes when the proxy is created. When it gets updated (changes or revisions) the "lastModifiedBy" gets updated with the user who is currently modifying the proxy, which can be different from the the user who may have created in the proxy and both of them could be in different roles. So just curious what the end requirement is.

There is no single management api that gives you what you are looking for, but you can get that information (with some mashing up to do) from a couple of different management apis.

Hi Prithpal ,

Thanks for the information .

Can you please help me out with those couple of management APi calls through i can get apis listed in custom roles .

Regards

Vaibhav

Former Community Member
Not applicable

Get all roles in an Org

Get users in a role

Get list of API proxies

You can query the above APIs & co-relate the user with the API proxies.