List organisation roles (members.read)
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/roles"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/organisation/roles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/organisation/roles \
--header 'Authorization: Bearer <token>'{
"roles": [
{
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"builtin": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kube_grants": [
{
"scope": "cluster",
"k8s_role": "view",
"namespace": "<string>"
}
]
}
]
}Organisation IAM
List organisation roles (members.read)
GET
/
api
/
v1
/
org
/
organisation
/
roles
List organisation roles (members.read)
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/roles"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/organisation/roles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/organisation/roles \
--header 'Authorization: Bearer <token>'{
"roles": [
{
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"builtin": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kube_grants": [
{
"scope": "cluster",
"k8s_role": "view",
"namespace": "<string>"
}
]
}
]
}