envoyproxy / xds-relay

Caching, aggregation, and relaying for xDS compliant clients and origin servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Admin REST API: cache dump

LisaLudique opened this issue · comments

Pasted from the tech spec:

GET /cache/<key>
Output the contents of the xDS Aggregator Cache.

Arguments
key [optional] : The cache key. Regex suffixes are supported.

Output Sample
Note: The DiscoveryResponse listed below is expanded into the DiscoveryRequest and DiscoveryResponse proto formats. It’s not listed here to keep the document compact.
Query: GET /cache/foo_production*

{ 
   "foo_production_lds": { 
      "response": *v3.DiscoveryResponse,
      "watchers": [ *v3.DiscoveryRequest, *v3.DiscoveryRequest, ... ]
      "stream_open": false,
   },
   "foo_production_eds":{ 
      "response": nil,
      "watchers": [ *v3.DiscoveryRequest ]
      "stream_open": true,
   },
}