Logo
Akamai APIs API Documentation

List contracts

GET https://{{host}}/config-dns/v2/data/contracts?gid={{gid}}

Lists the contracts accessible to the current user. Each contract includes the list of features and permissions that are available to you on that contract.

 

Body PARAM

Key Datatype Required Description 
gid
string (Required) The currently selected group ID to manage.
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 
Accept
string




RESPONSES

status OK

{ "contracts": [ { "contractId": "K-0N7RAK71", "contractName": "Acme Inc", "contractTypeName": "DIRECT_CUSTOMER", "features": [ "PRIMARY_ZONES", "ALIAS_ZONES", "SECONDARY_ZONES", "ZONE_APEX_MAPPING", "FORCE_DELETE" ], "maximumZones": 5000, "permissions": [ "READ", "WRITE", "ADD" ], "zoneCount": 92 }, { "contractId": "C-0N7RAC71", "contractName": "Acme Europe Ltd", "contractTypeName": "DIRECT_CUSTOMER", "features": [ "PRIMARY_ZONES", "SECONDARY_ZONES", "ZONE_APEX_MAPPING" ], "maximumZones": 2000, "permissions": [ "READ" ], "zoneCount": 1023 } ] }



Curl
curl -X GET 'https://undefined/config-dns/v2/data/contracts?gid=?gid=&accountSwitchKey=' -H 'Accept: application/json'

ENDPOINTS