Review a node drain (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/{cluster_id}/kubernetes/nodes/{name}/drain-review"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/{cluster_id}/kubernetes/nodes/{name}/drain-review', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/{cluster_id}/kubernetes/nodes/{name}/drain-review \
--cookie ankra_session={
"snapshot": {
"node": {
"name": "<string>",
"uid": "<string>",
"resource_version": "<string>",
"unschedulable": true
},
"pods": [
{
"name": "<string>",
"namespace": "<string>",
"uid": "<string>",
"resource_version": "<string>",
"controller": "<string>",
"retained_reason": "<string>",
"local_data": true,
"terminating": true
}
],
"budgets": [
{
"name": "<string>",
"namespace": "<string>",
"disruptions_allowed": 123,
"observed": true
}
]
},
"revision": "<string>"
}Kubernetes
Review a node drain (browser session)
Read complete live node, pod and disruption-budget evidence using the caller’s cluster access grant. Requires Kubernetes read/write permission and an active cluster access grant because this review prepares consent for a drain.
GET
/
org
/
clusters
/
{cluster_id}
/
kubernetes
/
nodes
/
{name}
/
drain-review
Review a node drain (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/{cluster_id}/kubernetes/nodes/{name}/drain-review"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/{cluster_id}/kubernetes/nodes/{name}/drain-review', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/{cluster_id}/kubernetes/nodes/{name}/drain-review \
--cookie ankra_session={
"snapshot": {
"node": {
"name": "<string>",
"uid": "<string>",
"resource_version": "<string>",
"unschedulable": true
},
"pods": [
{
"name": "<string>",
"namespace": "<string>",
"uid": "<string>",
"resource_version": "<string>",
"controller": "<string>",
"retained_reason": "<string>",
"local_data": true,
"terminating": true
}
],
"budgets": [
{
"name": "<string>",
"namespace": "<string>",
"disruptions_allowed": 123,
"observed": true
}
]
},
"revision": "<string>"
}