Skip to main content
GET
/
dns
/
v2
/
network-mappings
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
)
network_mappings = client.dns.network_mappings.list()
print(network_mappings.network_mappings)
{
  "network_mappings": [
    {
      "id": 123,
      "mapping": [
        {
          "cidr4": [
            "<string>"
          ],
          "cidr6": [
            "<string>"
          ],
          "tags": [
            "<string>"
          ]
        }
      ],
      "name": "<string>"
    }
  ],
  "total_amount": 123
}

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

Query Parameters

offset
integer<uint64>

Amount of records to skip before beginning to write in response.

limit
integer<uint64>

Max number of records in response

order_by
string

Field name to sort by

order_direction
enum<string>

Ascending or descending order

Available options:
asc,
desc

Response

ListNetworkMappingResponse

network_mappings
object[]
total_amount
integer<int64>