MngGetGatewayRuntime¶
Returns process, transport and provider state for one active gateway runtime. Requires SESSION_ADMIN.
HTTP: GET /gateway/:id/runtime
{"command":"MngGetGatewayRuntime","id":1}
{"runtime":{"gateway_id":1,"state":"READY","state_id":6,"pid":32145,"local_port":41763,"instance_id":"gw-1-a12b34cd","provider_state":"READY","config_version":3,"sent_sequence":2,"received_sequence":18,"started_at":1785300000,"connected_at":1785300001,"ready_at":1785300001,"last_heartbeat_at":1785300018,"last_exit_at":0,"last_exit_code":0,"restart_count":0,"last_error":""}}
Returns RET_NOT_FOUND when no runtime context exists, including a configured gateway that is disabled or was manually stopped.
local_port is the actual port used by the current process. It is especially important when the configuration uses port: 0.