Read a cluster's service placement policy
import requests
url = "https://platform.ankra.app/api/v1/org/service-admission/cluster-policies/{cluster_id}"
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/service-admission/cluster-policies/{cluster_id}', 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/service-admission/cluster-policies/{cluster_id} \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region": "<string>",
"data_boundary": "<string>",
"local_only": true,
"revision": 2,
"source": "organisation_declared",
"updated_at": "2023-11-07T05:31:56Z"
}Services
Read a cluster's service placement policy
Requires the applications rollout flag and live membership intersected with token scopes. Cluster policy reads require clusters.read and writes clusters.write. Consumer reads require applications.read and clusters.read; binding requires applications.deploy, clusters.operate and clusters.read. Locations are organisation declarations, not independently verified. No service deployment is executed. Updates require the current revision; zero creates only. Browser mutations require CSRF.
GET
/
api
/
v1
/
org
/
service-admission
/
cluster-policies
/
{cluster_id}
Read a cluster's service placement policy
import requests
url = "https://platform.ankra.app/api/v1/org/service-admission/cluster-policies/{cluster_id}"
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/service-admission/cluster-policies/{cluster_id}', 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/service-admission/cluster-policies/{cluster_id} \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region": "<string>",
"data_boundary": "<string>",
"local_only": true,
"revision": 2,
"source": "organisation_declared",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
Response
Success
organisation_declared for an administrator's declaration; default for the open default a cluster without one is admitted under (region and data_boundary unspecified, local_only false, revision 1). The settings read answers only declarations.
Available options:
organisation_declared, default