List an application's service consumer bindings
import requests
url = "https://platform.ankra.app/api/v1/org/service-admission/consumers"
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/consumers', 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/consumers \
--header 'Authorization: Bearer <token>'{
"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
/
api
/
v1
/
org
/
service-admission
/
consumers
List an application's service consumer bindings
import requests
url = "https://platform.ankra.app/api/v1/org/service-admission/consumers"
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/consumers', 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/consumers \
--header 'Authorization: Bearer <token>'{
"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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Required range:
1 <= x <= 50