Get Cluster Access Policy
import requests
url = "https://platform.ankra.app/api/v1/org/cluster-access-policy"
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/cluster-access-policy', 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/cluster-access-policy \
--header 'Authorization: Bearer <token>'{
"policy": {
"creator_grant_role": "none",
"max_grant_role": "view",
"is_configured": true
}
}{
"detail": "Cluster not found"
}Cluster Access
Get Cluster Access Policy
The organisation cluster access policy: the role the user who creates or imports a cluster receives on it, and the highest role any cluster access grant may carry. An organisation that has not set one reads the default (creator receives cluster-admin, no ceiling) with is_configured false.
GET
/
api
/
v1
/
org
/
cluster-access-policy
Get Cluster Access Policy
import requests
url = "https://platform.ankra.app/api/v1/org/cluster-access-policy"
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/cluster-access-policy', 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/cluster-access-policy \
--header 'Authorization: Bearer <token>'{
"policy": {
"creator_grant_role": "none",
"max_grant_role": "view",
"is_configured": true
}
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
Show child attributes
Show child attributes