API to associate proxy to a custom role

han-zhang
Participant IV

Hi

Just want to know if if there a management API or a way to tie a custom role on edge to a proxy?

Right now we use CI/CD to automate the process of deploying proxy, but we don't know how to automatically tie the proxy to a custom role.

Thanks

0 4 312
4 REPLIES 4

Hi @hanzhang Can you please elaborate on your requirement? What do you mean by "automatically tie the proxy to a custom role"?

Hi @sudheendra1

I think we just need a management api to associate our new created proxy to a custom role that the proxy owner belongs to.

For example, I am a API developer who develops API on edgeUI and I belongs to the role 'API Dev'.

If I create my proxy and publish my proxy on EdgeUI, once its done, I can see my new proxy will be automatically assigned to my role 'API Dev'.


Lets say I have a proxy, but is not assigned to any role that I belong to. How can I use API(mamagement API) to assign this proxy to the my role?


Thanks

Looking for the same scenario ? any ways to achieve it ? @Sudhee Sreedhara

Hello, @hanzhang @maivizhi

You can make a management API call to associate proxy to a specific role

example request:

curl -X POST \

https://api.enterprise.apigee.com/v1/organizations/{org_name}/userroles/{role_name}/permissions \

-H 'Authorization: Basic Auth' \ -H 'Content-Type: application/json' \

-d '{"path":"/applications/{Proxyname}","permissions":["get","put","delete"]}'