Skip to main content

Library that implements Akamai API requests to control the cloudlet API version 3

Project description

Akamai shared cloudlets library

Purpose

This python program implements the API requests that deal with Akamai Shared Cloudlets (for more information about Akamai cloudlets, see https://techdocs.akamai.com/cloudlets/reference/api).

It could be used as a building block for any application using the 'shared cloudlets API' (such as Akamai CLI https://github.com/akamai/cli or Terraform Akamai provider https://registry.terraform.io/providers/akamai/akamai/latest/docs/guides/get_started_cloudlets).

Getting it

Once finished in a 'functioning' state, it should be available via the standard pypi.

Using it

Prerequisites

Run

There are two basic ways how to work with the app - importing the app and making it part of your own code like that - or there is limited 'cli' capability (that doesn't provide all the requests, but it may help you find some basic information anyway.)

Module

It is recommended to use this app in virtual environment (especially for your development needs). Then install the app from PyPI. Following command installs the app from the TEST PYPI:

python3 -m pip install --index-url https://test.pypi.org/simple/ akamai-shared-cloudlets

Next step would be to import (example):

from akamai_shared_cloudlets import akamai_api_requests_abstractions as akamai_api

And finally you're ready to use the app:

print(akamai_api.list_cloudlets("~/.edgerc"))

Example above does not do very much, but it shows how to start using the app.

CLI

Issuing the following command:

cloudlets list-cloudlets

Would produce this output (for example, it may be different in your case)

Sending request to Akamai...
[{'cloudletType': 'ER', 'cloudletName': 'EDGE_REDIRECTOR'}]

Help is provided when issued the cloudlets command without any parameters or clouldets --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

akamai-shared-cloudlets-0.0.17.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

akamai_shared_cloudlets-0.0.17-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file akamai-shared-cloudlets-0.0.17.tar.gz.

File metadata

File hashes

Hashes for akamai-shared-cloudlets-0.0.17.tar.gz
Algorithm Hash digest
SHA256 acbbb0a014d667faa03950d380f9e7f2c4f32954f332def7d14eabd92eb32a36
MD5 2eb1f8271c73f79fb344b20d83ada121
BLAKE2b-256 92377c9082ac3d083668bb7cdc1cdc31f8ff2813bd53d995cbd832235609c088

See more details on using hashes here.

File details

Details for the file akamai_shared_cloudlets-0.0.17-py3-none-any.whl.

File metadata

File hashes

Hashes for akamai_shared_cloudlets-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 0e07af1c3e7f7c4a32bae133e652b04c353e6273cc9e10a1fbb1fa8acc7e460a
MD5 3363b3f43d2259ce8c9ade482373e12f
BLAKE2b-256 bf6e3d7ca998dff5a44dd94eec609a2467a7945c3aa20e14b79c8d7b29acee6a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page