PATCH
/
dns
/
v2
/
zones
/
{name}
/
dnssec
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
dnssec = client.dns.zones.dnssec.update(
    name="name",
)
print(dnssec.algorithm)
{
  "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=="
}

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

Path Parameters

name
string
required

Body

application/json
enabled
boolean

Response

ToggleDNSSECResponse

algorithm
string

Specifies the algorithm used for the key.

Example:

"13"

digest
string

Represents the hashed value of the DS record.

Example:

"28D2F00FB7FD127C05D1CE02BFA8660B094CA6728B1619ABA2144234F7221069"

digest_algorithm
string

Specifies the algorithm used to generate the digest.

Example:

"SHA256"

digest_type
string

Specifies the type of the digest algorithm used.

Example:

"2"

ds
string

Represents the complete DS record.

Example:

"zxy.com. 3600 IN DS 26191 13 2 135E208FF18578AB18C1EB8EA064BE08324DCBA6CF08FF55D76F0DBD4BF49F07"

flags
integer

Represents the flag for DNSSEC record.

Example:

257

key_tag
integer

Represents the identifier of the DNSKEY record.

Example:

26191

key_type
string

Specifies the type of the key used in the algorithm.

Example:

"ECDSAP256SHA256"

message
string
public_key
string

Represents the public key used in the DS record.

Example:

"ahD2C5Th+4NIFmErQPgSe/j6yPc2pbuhr3QcOJImCYHtv/mR/2qP2yHjBE1x20ERnmAnp6e6//g0uYAQKTW+DA=="