Get a proxy's routing table

GET
/v1/{namespace}/proxies/{proxy}/hosts

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.

Authorization

headerAuthorizationBearer <token>

A personal or service access token, sent as Authorization: Bearer <token>. See access tokens.

Path Parameters

namespace*string

The namespace id.

proxy*string

The proxy id.

Response Body

The routing table, by host.

application/json
  1. 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": []}