Provides a way to interact with Identity Management related information via Open APIs. Functionality includes viewing details about OPEN clients and credentials.
- Python 3+
- pip install -r requirements.txt
In order to use this module, you need to:
- Set up your credential files as described in the authorization and credentials sections of the Get Started page on the developer portal.
- When working through this process you need to give grants for the Identity Management V1 API. The section in your configuration file should be called [idm]
[iam]
client_secret = [CLIENT_SECRET]
host = [HOST]
access_token = [ACCESS_TOKEN_HERE]
client_token = [CLIENT_TOKEN_HERE]
The following functionality are available:
- List the accountSwitchKeys and account names you can access based on the permissions of your API client
- Get an API client’s credentials
- Get details for a single credential
- View an API client’s details
This is the main program that wraps this functionality in a command line utility:
Use this command to retrieve the accountSwitchKeys and account names you can access based on the permissions of your API client. Once you have the accountSwitchKeys you need, you can make an API call to another account.
$ akamai iam list-account-switch-keys --open-identity-id pa444oyidwo6j4hyThe arguments available for this command are:
--open-identity-id <value> A unique identifier for each API client. Defaults to the id of the current client
--search <value> Optionally filter results by accountId or accountName. Enter at least three characters in the string to filter the results.
--json Display output in json format (optional)
Use this command to get an API client’s credentials
$ akamai iam list-credentials --open-identity-id pa444oyidwo6j4hyThe argument needed for this command is:
--open-identity-id <value> A unique identifier for each API client. Defaults to the id of the current client.
--actions Optionally include actions option to get available actions that can be performed on the credentials
Get details for a single credential. Use Update a credential to change the credential’s expiration date, or toggle the credential’s activation status.
$ akamai iam get-credential --open-identity-id pa444oyidwo6j4hy --credential-id 345678The arguments available for this command are:
--open-identity-id <value> A unique identifier for each API client. Defaults to the id of the current client
--credential-id <value> A credential’s unique identifier.
--actions Optionally include actions option to get available actions that can be performed on the credential
View an API client’s details. This operation lets you get a specific API client by passing the client’s token in the command.
$ akamai iam get-client --access-token akaa-onah2fsgph6i7sx2-j4vrsb3rbyqxusloThe arguments available for this command are:
--access-token <value> An access token identifies a collection of APIs belonging to an API client. Defaults to the access token of the current client
--actions Optionally include actions option to get available actions that can be performed on the client