Creating the API Client #
You can add your Akamai CDN in Read-Only mode to Flumotion Smart Multi CDN 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:
- 1. Name – Enter a name for the client.
- 2.Description – Enter a description for the client.
- 3.APIs – Check the Select APIs option. When the list of permissions appears, click Clear API selection, and select 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
4.Click Submit.
5.Click Create API client.
6.Review the created API client and copy the following credentials:
client_token
client_secret
host (base URL)
access_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 Flumotion Smart Multi CDN support team to add your Akamai CDN in Read-Only mode.
Creating an Akamai Functions Token #
In Akamai, the Flumotion Smart Multi CDN WAF runs as an Akamai Function, which has a separate authorization framework. Learn more about Akamai Functions.
If you are using the Flumotion Smart Multi CDN WAF, you will need to create an Akamai Function Token, a dedicated token that Flumotion Smart Multi CDN can use to deploy the WAF engine in Akamai Functions. The token is created using the Akamai Functions CLI, called spin.
1.Install spin.
2.Install the Akamai spin plugin.
3.Log in 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 enter it when adding your Akamai CDN to Flumotion Smart Multi CDN here.