v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
NetworkMappings

Create Network Mapping

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"
			]
		}
	]
}'
post/dns/v2/network-mappings

Request body

idinteger
namestring

Response

CreateNetworkMappingResponse

idinteger