API7 Docs
Apache APISIXAPISIX Control APIGet Dump File

Get Dump File

GET /v1/discovery/{service}/show_dump_file

GET /v1/discovery/{service}/show_dump_file

Interactive request editor loads with JavaScript.

Path Parameters

service*string

Configured service discovery module name.

Response Body

application/json

text/plain

curl -X GET "http://127.0.0.1:9090/v1/discovery/consul/show_dump_file"

OK

{
  "last_update": 1703594980,
  "services": {
    "svc-a": [
      {
        "host": "192.168.42.145",
        "weight": 1,
        "port": 9081
      },
      {
        "host": "192.168.42.145",
        "weight": 1,
        "port": 9082
      }
    ]
  },
  "expire": 2592000
}
Complete operation details and schema variants

GET /v1/discovery/{service}/show_dump_file

Get Dump File

Read the persisted service discovery dump. This endpoint is currently provided by compatible service discovery modules such as Consul and exists only when the module is configured.

Parameters

  • service (path, string, required): Configured service discovery module name.

Responses

  • 200: OK
  • 503: The dump file is not configured or could not be read.

cURL

curl -X GET 'http://127.0.0.1:9090/v1/discovery/{service}/show_dump_file'