Custom role to manage KVMs

nikhilchawla
Participant III

Hi,

I need to create a custom role which will manage KVM ( Create, Edit, Delete ) in a particular environment of Org.

What all are resources i need to provide to custom role ?

I tried this :

{ "path" : "/organizations/xxxx/environments/xxxx/keyvaluemaps", "permissions" : [ "put", "get", "delete" ] }

But it didn't work.

0 3 443
3 REPLIES 3

Hi,

The resource path does not contain the org. If you use this API , the request body should look like this:

{
 "path": "/environments/xxx/keyvaluemaps/",
 "permissions": [
   "get",
   "delete",
   "put"
 ]
}

And you also want to add:

{
 "path": "/environments/xxx/keyvaluemaps/*",
 "permissions": [
   "get",
   "delete",
   "put"
 ]
}

Hello ,is there anyway if we want to give permissions only to particular kvm.

Below calls does'nt work

{"path" : "/environments/dev/keyvaluemaps/{kvm name}/entries/*","permissions" : ["get","put","delete"]}

{"path" : "/environments/dev/keyvaluemaps/{kvm name}/*","permissions" : ["get","put","delete"]}

Hi, please ask a new question. There's a bright green box in the upper right.

9932-ask-a-question.png

When you ask the new question, you'll need to provide complete details as to the calls you're making. Not just the JSON. Also the path, verb, headers, and so on.

Also, you will need to elaborate on "doesn't work". Exactly what results do you see?