import requests
url = "https://platform.ankra.app/api/v1/clusters/ankracloud/{cluster_id}/k3s-disabled-components"
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/clusters/ankracloud/{cluster_id}/k3s-disabled-components', 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/clusters/ankracloud/{cluster_id}/k3s-disabled-components \
--header 'Authorization: Bearer <token>'{
"k3s_disabled_components": [
"<string>"
],
"resource_ids": [
"<string>"
],
"control_plane_count": 123,
"applies": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Get disabled K3s components
Reads the k3s packaged components the platform keeps disabled on this running cluster (k3s —disable), on top of the provider shape’s own defaults, with the k8s node resources carrying the list. Requires clusters.read. A kubeadm cluster, one with no k8s node resources, or a cluster of another provider answers 409. Answers 404 while the organisation’s ankra_cloud_provider feature flag is off.
import requests
url = "https://platform.ankra.app/api/v1/clusters/ankracloud/{cluster_id}/k3s-disabled-components"
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/clusters/ankracloud/{cluster_id}/k3s-disabled-components', 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/clusters/ankracloud/{cluster_id}/k3s-disabled-components \
--header 'Authorization: Bearer <token>'{
"k3s_disabled_components": [
"<string>"
],
"resource_ids": [
"<string>"
],
"control_plane_count": 123,
"applies": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
The stored list
The components stored on the cluster's k8s node definitions; empty when nothing is stored (the provider shape's own defaults apply).
The cluster's live k8s node resources (control planes and workers) the list is stored on.
How many of those resources are control planes, the nodes the disable list is rendered on.
How the stored list reaches the nodes: the read lane flags control planes missing an entry within about five minutes and the reconcile lane converges them one at a time.