Creating a Read-Only API Client in Akamai
Creating the API Client
You can add your Akamai CDN in Read-Only mode to IO River and use it for importing your configuration, monitoring, and traffic steering. To add Akamai as a Read-Only CDN provider, you need to create an API client in your Akamai account:
- Sign in to your Akamai account.
- Navigate to the left sidebar and choose Identity & access.
- Under the Users and API Clients tab, click the Create API client button.
- Click the Advanced button.
- Fill out the new API client form:
- Name - Type a name for the client.
- Description - Type a description for the client.
- APIs - Check the Select APIs option. When the list of permissions appears, click the Clear API selection, and pick the following permissions:
- Property Manager (PAPI) - READ-ONLY
- CPS - READ-ONLY
- Manage Edge Hostnames API - READ-ONLY
- Datastream Config - READ-ONLY
- CCU APIs - READ-ONLY
- Enhanced Content Control Utility (ECCU) - READ-ONLY
- Reporting API - READ-WRITE (The Reporting API is only used to retrieve statistics, but it requires READ-WRITE permissions.)
- CPcode and Reporting group - READ-ONLY
- Click Submit.
- Click Create API client.
- Review the created API client and copy its credentials:
- client_secret
- host (base URL)
- access_token
- client_token
Example
client_secret = i3YpvJFBiScVG6J6JJPzI9aJk32XmMOYTRDQCNgCFXY=
host = akab-grfave5t2bgnf7gp-thnbutolqvre5evi.luna.akamaiapis.net
access_token = akab-tznh3naf2xyrtepu-6pwdbmjsqy7la4vs
client_token = akab-gbq3efk7iuw3nk6e-2al2mw7xdwlunph
Save the created credentials, and provide them to the IO River support team to add your Akamai CDN in Read-Only mode.
Creating an Akamai Functions Token
In Akamai, the IO River WAF runs as an Akamai Function, which has a separate authorization framework. Learn more about Akamai Functions.
If you are using IO River WAF, you will need to create an Akamai Function Token, a dedicated token that IO River can use to deploy the WAF engine in Akamai Functions. The token is created using the Akamai Functions CLI, called spin.
- Install spin.
- Install the Akamai spin plugin.
- Login to Akamai Functions.
- Create an Akamai Functions token using the following command
spin aka auth token create --name ioriver -e 90
- Review the command output
INT ✘ compute-apps
A personal access token has been created! The token will expire 90 days from now.
Please store this token in a safe place, as it will not be shown again.
Here is your access token: pat_M6FXXXXXXXXXXXXXXXXXXXV4XP
Copy the token pat_M6FXXXXXXXXXXXXXXXXXXXV4XP from the command output, and paste it when you add your Akamai CDN here.