Create new network mapping. Example of request:
curl --location --request POST 'https://api.gcore.com/dns/v2/network-mappings' \
--header 'Authorization: Bearer ...' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "test",
"mapping": [
{
"tags": [
"tag1"
],
"cidr4": [
"192.0.2.0/24",
"198.0.100.0/24"
]
},
{
"tags": [
"tag2",
"tag3"
],
"cidr4": [
"192.1.2.0/24",
"198.1.100.0/24"
],
"cidr6": [
"aa:10::/64"
]
}
]
}'
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
CreateNetworkMappingResponse
The response is of type object
.