curl --request PATCH \
--url https://api.gcore.com/dns/v2/zones/{name}/dnssec \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"enabled": true
}'
{
"algorithm": "13",
"digest": "28D2F00FB7FD127C05D1CE02BFA8660B094CA6728B1619ABA2144234F7221069",
"digest_algorithm": "SHA256",
"digest_type": "2",
"ds": "zxy.com. 3600 IN DS 26191 13 2 135E208FF18578AB18C1EB8EA064BE08324DCBA6CF08FF55D76F0DBD4BF49F07",
"flags": 257,
"key_tag": 26191,
"key_type": "ECDSAP256SHA256",
"message": "<string>",
"public_key": "ahD2C5Th+4NIFmErQPgSe/j6yPc2pbuhr3QcOJImCYHtv/mR/2qP2yHjBE1x20ERnmAnp6e6//g0uYAQKTW+DA=="
}
Enable or disable DNSSEC for a DNS zone.
curl --request PATCH \
--url https://api.gcore.com/dns/v2/zones/{name}/dnssec \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"enabled": true
}'
{
"algorithm": "13",
"digest": "28D2F00FB7FD127C05D1CE02BFA8660B094CA6728B1619ABA2144234F7221069",
"digest_algorithm": "SHA256",
"digest_type": "2",
"ds": "zxy.com. 3600 IN DS 26191 13 2 135E208FF18578AB18C1EB8EA064BE08324DCBA6CF08FF55D76F0DBD4BF49F07",
"flags": 257,
"key_tag": 26191,
"key_type": "ECDSAP256SHA256",
"message": "<string>",
"public_key": "ahD2C5Th+4NIFmErQPgSe/j6yPc2pbuhr3QcOJImCYHtv/mR/2qP2yHjBE1x20ERnmAnp6e6//g0uYAQKTW+DA=="
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
ToggleDNSSECResponse
The response is of type object
.
Was this page helpful?