Home/API/GET /api/agent/commands

GET /api/agent/commands

Poll command pending dari panel.

Request

GET /api/agent/commands
X-Agent-Key: <api-key>

Response

{
  "commands": [
    {
      "id": "cmd-uuid",
      "type": "update_agent",
      "payload": {}
    }
  ]
}

Command Types

| Type | Deskripsi | |------|-----------| | update_agent | Trigger OTA update segera | | start_tunnel | Start GS Rescue tunnel | | stop_tunnel | Stop GS Rescue tunnel | | restart | Restart agent |