Logo
Akamai APIs API Documentation

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.

 

Body PARAM

Key Datatype Required Description 
keyType
string (Optional) __Enum__ Limits the response to zones of the specified TSIG key type. Either `inbound`, `outbound`, or `proxy`.
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

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



Curl
curl -X POST 'https://undefined/config-dns/v2/keys/used-by/zone-contract-map?keyType=&accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"algorithm":"hmac-sha512","name":"example.com.akamai.com."}'

ENDPOINTS