Bind an explicit application namespace (browser session)
import requests
url = "https://api.platform.ankra.app/org/service-admission/consumers"
payload = {
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"allow_planned": True,
"local_only": True,
"expected_revision": 1
}
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
application_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
cluster_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
namespace: '<string>',
allow_planned: true,
local_only: true,
expected_revision: 1
})
};
fetch('https://api.platform.ankra.app/org/service-admission/consumers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/service-admission/consumers \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"allow_planned": true,
"local_only": true,
"expected_revision": 1
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"region": "<string>",
"data_boundary": "<string>",
"policy_revision": 2,
"binding_revision": 2,
"binding_kind": "planned",
"installation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"local_only": true
}Services
Bind an explicit application namespace (browser session)
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.
POST
/
org
/
service-admission
/
consumers
Bind an explicit application namespace (browser session)
import requests
url = "https://api.platform.ankra.app/org/service-admission/consumers"
payload = {
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"allow_planned": True,
"local_only": True,
"expected_revision": 1
}
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
application_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
cluster_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
namespace: '<string>',
allow_planned: true,
local_only: true,
expected_revision: 1
})
};
fetch('https://api.platform.ankra.app/org/service-admission/consumers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/service-admission/consumers \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"allow_planned": true,
"local_only": true,
"expected_revision": 1
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"region": "<string>",
"data_boundary": "<string>",
"policy_revision": 2,
"binding_revision": 2,
"binding_kind": "planned",
"installation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"local_only": true
}Authorizations
Body
application/json
Response
Success