Unable to add permission to custom role using API

Former Community Member
Not applicable

I created a custom role "Test-Dev" in our Org.


Using the management API and machine user, I am trying to add the following permissions to this role. Ability to get, put Environment level KVMs and Target Servers.

https://api.enterprise.apigee.com/v1/organizations/org-name/userroles/Test-Dev/permissions

Here are the paths I am using:
"/environments/*/keyvaluemaps",
"/environments/*/servers"

keyvaluemaps is added but servers is showing the following error.
{StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Connection: keep-alive
Date: Mon, 20 Apr 2020 20:02:48 GMT
Server: Apigee
Server: LB
Content-Length: 0
}}

Is the resource path correct to add rights to get, put to Target Server?

0 1 229
1 REPLY 1

Former Community Member
Not applicable

I updated to "/environments/*/targetservers" as suggested by APIGEE Support and it fixed the issue.