curl --request GET \
--url https://api.streamkap.com/cluster/scale/{operation_id} \
--header 'Authorization: Bearer <token>'{
"operation_id": "<string>",
"direction": "up",
"status": "pending",
"current_step": 123,
"steps": [
{
"step": 123,
"name": "<string>",
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"detail": "<string>"
}
],
"cluster_name": "<string>",
"namespace": "<string>",
"initiated_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"total_steps": 6,
"completed_at": "2023-11-07T05:31:56Z",
"error_message": "<string>",
"timing_summary": {
"node_scale_duration_s": 0,
"workload_restart_duration_s": 0,
"cleanup_duration_s": 0,
"total_duration_s": 0
}
}Get the current status of a scaling operation. Frontend polls this every 5 seconds.
curl --request GET \
--url https://api.streamkap.com/cluster/scale/{operation_id} \
--header 'Authorization: Bearer <token>'{
"operation_id": "<string>",
"direction": "up",
"status": "pending",
"current_step": 123,
"steps": [
{
"step": 123,
"name": "<string>",
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"detail": "<string>"
}
],
"cluster_name": "<string>",
"namespace": "<string>",
"initiated_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"total_steps": 6,
"completed_at": "2023-11-07T05:31:56Z",
"error_message": "<string>",
"timing_summary": {
"node_scale_duration_s": 0,
"workload_restart_duration_s": 0,
"cleanup_duration_s": 0,
"total_duration_s": 0
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
up, down pending, in_progress, completed, failed, cancelled Show child attributes
Show child attributes
Was this page helpful?