POST
/
dns
/
v2
/
network-mappings
Create Network Mapping
curl --request POST \
  --url https://api.gcore.com/dns/v2/network-mappings \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "mapping": [
    {
      "cidr4": [
        {}
      ],
      "cidr6": [
        {}
      ],
      "tags": [
        "<string>"
      ]
    }
  ],
  "name": "<string>"
}'
{
  "id": 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

Body

application/json

Response

200
application/json

CreateNetworkMappingResponse

The response is of type object.