List an application's service consumer bindings
import requests
url = "https://platform.ankra.app/org/service-admission/consumers"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://platform.ankra.app/org/service-admission/consumers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/service-admission/consumers \
--cookie ankra_session={
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"allow_planned": true,
"local_only": true,
"revision": 2,
"updated_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Services
List an application's service consumer bindings
Requires the applications rollout flag and live membership intersected with token scopes. Lists one application’s stored namespace bindings, oldest identifier first, gated on applications.read; a binding is included only when the caller also holds clusters.read on its cluster, so a page can hold fewer rows than the limit, or none, while next_cursor is set. Rows are the bindings as last saved, not live-resolved consumers: a binding whose deployment or cluster policy is missing is still listed. No service deployment is executed.
GET
/
org
/
service-admission
/
consumers
List an application's service consumer bindings
import requests
url = "https://platform.ankra.app/org/service-admission/consumers"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://platform.ankra.app/org/service-admission/consumers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/service-admission/consumers \
--cookie ankra_session={
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"allow_planned": true,
"local_only": true,
"revision": 2,
"updated_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Query Parameters
Required range:
1 <= x <= 50