API7 Docs

Get Server Information

GET /v1/server_info

GET /v1/server_info

Interactive request editor loads with JavaScript.

Response Body

application/json

curl -X GET "http://127.0.0.1:9090/v1/server_info"

OK

{
  "boot_time": 1608522102,
  "hostname": "gateway-1",
  "id": "b7ce1c5c-b1aa-4df7-888a-cbe403f3e948",
  "version": "3.18.0",
  "etcd_version": "3.5.0"
}
Complete operation details and schema variants

GET /v1/server_info

Get Server Information

Get information about the local APISIX instance. This endpoint is available only when the server-info plugin is enabled. The plugin is deprecated in APISIX 3.17.0.

Parameters

Responses

  • 200: OK
  • boot_time (integer, required): Instance boot time as a Unix timestamp.
  • hostname (string, required): Instance hostname.
  • id (string, required): Instance ID.
  • version (string, required): APISIX version.
  • etcd_version (string, required): etcd version, or unknown when unavailable.
  • 500: Server information could not be read.

cURL

curl -X GET 'http://127.0.0.1:9090/v1/server_info'