Get a proxy's routing table
GET
The hosts the proxy routes, and to which firewall. Needs namespace access. A host appears once for each attached firewall that covers it: the ecosystem's public registry, the extra hosts its stock package managers use (registry.yarnpkg.com for npm, index.rubygems.org for RubyGems), and the host of every upstream, including inherited ones. A host two attached firewalls cover is listed in collisions and is not routed.
header
AuthorizationBearer <token>A personal or service access token, sent as Authorization: Bearer <token>. See access tokens.
namespace*stringThe namespace id.
proxy*stringThe proxy id.
The routing table, by host.
application/json- response
A proxy's routing table.
routes*array<>The routed hosts, by host.
collisions*array<>Hosts two attached firewalls both cover. They are not routed.
curl -X GET 'https://eu-sov-1.bytesafecloud.eu/v1/my-namespace-id/proxies/proxy-01kya2b7m3q8xz5n0hdr4wcv6t/hosts'{ "routes": [ { "host": "registry.npmjs.org", "firewall": "npm-main", "ecosystem": "npm" }, { "host": "registry.yarnpkg.com", "firewall": "npm-main", "ecosystem": "npm" } ], "collisions": []}