Python
import requests url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/agent" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
{ "upgrade_available": true, "upgrading": true, "created_at": "2023-11-07T05:31:56Z", "checked_in_at": "2023-11-07T05:31:56Z", "agent_version": "<string>", "latest_agent_version": "<string>", "disable_auto_upgrade": false }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response