Logo
Akamai APIs API Documentation

List hostnames for an account

GET https://{{host}}/papi/v1/hostnames

This operation lists active property hostnames for all properties available in an account. Use the optional query parameters to paginate, sort, and filter the results. You can nest and combine filters to obtain desired results. To view paginated results, use the response's nextLink and previousLink.

 

Body PARAM

Key Datatype Required Description 
offset
string (Optional) For paginated responses, specifies the page of results you want to navigate to, starting from `0`.
limit
string (Optional) For paginated responses, specifies the number of `hostnames` objects to include on each page.
sort
string (Optional) __Enum__ Sort the results based on the `cnameFrom` value, either `hostname:a` for ascending or `hostname:d` for descending order. The default is `hostname:a`.
hostname
string (Optional) Filter the results by `cnameFrom`. Supports wildcard matches with `*`.
cnameTo
string (Optional) Filter the results by edge hostname. Supports wildcard matches with `*`.
network
string (Optional) __Enum__ Network of activated hostnames, either `STAGING` or `PRODUCTION`.
contractId
string (Optional) Unique identifier for the contract. See [ID prefixes](https://techdocs.akamai.com/property-mgr/reference/id-prefixes) for details on omitting the value's `ctr_` prefix.
Curl
curl -X GET 'https://host/papi/v1/hostnames?offset=&limit=&sort=&hostname=&cnameTo=&network=&contractId=&groupId=&accountSwitchKey=' -H 'PAPI-Use-Prefixes: PAPI-Use-Prefixes' -H 'Accept: application/json'

ENDPOINTS