Python
import requests url = "https://platform.ankra.app/api/v1/clusters/{cluster_id}/kubernetes/pods" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
{ "pods": [ { "uid": "<string>", "name": "<string>", "namespace": "<string>", "phase": "<string>", "ready": "<string>", "restarts": 123, "last_restart_time": "<string>", "start_time": "<string>", "pod_ip": "<string>", "node_name": "<string>", "nominated_node_name": "<string>", "readiness_gates": "<string>" } ], "total_count": 123, "page": 123, "page_size": 123, "total_pages": 123, "cache_info": { "served_from_cache": true, "staleness_seconds": 123, "sync_status": "<string>", "warning": "<string>" }, "namespaces": [ "<string>" ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
x >= 1
1 <= x <= 100
253
50
10
Successful Response
Show child attributes