List of zones to contract using TSIG key

POST https://{{host}}/config-dns/v2/keys/used-by/zone-contract-map

List of zone names within a contract that use the given TSIG key for which the current user has READ access. If the list returned is empty, it's possible that the given key is in use by other zones but the current user doesn't have permission to view those zones.

Request Params

KeyDatatypeRequiredDescription
keyTypestring(Optional) Enum Limits the response to zones of the specified TSIG key type. Either inbound, outbound, or proxy.
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Request Body

{"algorithm"=>"hmac-sha512", "name"=>"example.com.akamai.com."}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"contracts":[{"contractId":"K-0N7RAK7","zoneNames":["river.com","lake.com"]},{"contractId":"C-0N7RAC7","zoneNames":["ocean.com"]}]}