How to assign permission to a custom role to access multiple resources? also if someone can share the list of all resource names?

I have created a custom role and want to assign permission to this role to access multiple resources within an organization.
Note:-Here i don't want to run this role as an administrator.

0 2 248
2 REPLIES 2

Hello,

Here is a cURL request example on how to add permission to an existing role.

In this example, permission is given to GET, PUT, DELETE KVM on a specific environment (<ENV>) and on a specific organisation:

$ curl -u "<Login>:<Password>" -i -n -k -X POST -H "content-type:application/xml" -H "accept:application/xml" "https://api.enterprise.apigee.com/v1/o/<ORG>/userroles/<ROLE>/permissions" -d '<ResourcePermission path="/environments/<ENV>/keyvaluemaps/*"><Permissions><Permission>get</Permission><Permission>put</Permission><Permission>delete</Permission></Permissions></ResourcePermission>'

You may also find some complementary info in the apigee management API doc: https://apidocs.apigee.com/api/user-roles

I wish you a very good day!

Also, see @Kurt Kanaskie's excellent compilation of resource paths useful for setting custom roles (https://community.apigee.com/questions/51264/is-there-a-definitive-list-of-resource-paths-for-s.html)