List cluster groups (members.manage)
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/cluster-groups"
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/cluster-groups', 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/cluster-groups \
--header 'Authorization: Bearer <token>'{
"groups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"membership_mode": "static",
"created_at": "<string>",
"selector": {}
}
]
}Organisation IAM
List cluster groups (members.manage)
Lists the organisation’s live cluster groups, static and dynamic, with their membership mode and selector. Requires members.manage, checked against the token’s scopes and the caller’s role, as the console’s cluster groups page is.
GET
/
api
/
v1
/
org
/
organisation
/
cluster-groups
List cluster groups (members.manage)
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/cluster-groups"
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/cluster-groups', 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/cluster-groups \
--header 'Authorization: Bearer <token>'{
"groups": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"membership_mode": "static",
"created_at": "<string>",
"selector": {}
}
]
}