Skip to content
Справочник APIConsumerConsumer.vspaces

Get a VSpace's MagicDNS settings

Эта страница пока доступна только на английском языке. Руководства переведены; автоматически генерируемый справочник API публикуется на английском.

GET
/consumer/v1/vspaces/{id}/dns

Returns the current MagicDNS settings for the VSpace (toggle, search domains, global nameservers, override-local-DNS, split-DNS routes, static A/AAAA records). A VSpace with no settings yet returns a disabled-default-empty config.

Authorization

bearer_auth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

VSpace ID

Formatuuid

Header Parameters

X-Project-Id*string

UUID of the project that scopes consumer accounts, devices, sessions, and VSpaces for the request.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/consumer/v1/vspaces/44444444-4444-4444-4444-444444444444/dns" \  -H "X-Project-Id: 11111111-1111-1111-1111-111111111111"
{  "cert_domains": [],  "enabled": true,  "extra_records": [],  "override_local_dns": true,  "register_dual_stack": false,  "resolvers": [    {      "addr": "1.1.1.1",      "use_with_exit_node": false    }  ],  "routes": [],  "search_domains": [    "corp.example.com"  ],  "suffix": "mesh.fvpn.net"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}
{  "detail": "Pool slug must be unique.",  "instance": "urn:forestvpn:trace:a1b2c3d4",  "title": "Validation Error",  "type": "https://fvpn.net/errors/validation"}