Skip to main content
GET
/
dns
/
v2
/
network-mappings
/
{id}
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
dns_network_mapping = client.dns.network_mappings.get(
    0,
)
print(dns_network_mapping.id)
{
  "id": 123,
  "mapping": [
    {
      "cidr4": [
        "<string>"
      ],
      "cidr6": [
        "<string>"
      ],
      "tags": [
        "<string>"
      ]
    }
  ],
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
integer<uint64>
required

Response

NetworkMapping

id
integer<uint64>
mapping
object[]
name
string