A Python Class for Akamai China CDN Manager
An Object oriented implementation of Akamai China CDN Portal.
Credentials
In order to use this configuration, you need to:
- Set up your credential files as described in the authorization and credentials sections of the getting started guide on developer.akamai.com.
- When working through this process you need to give grants for the property manager API and the User Admin API (if you will want to move properties). The section in your configuration file should be called 'default'.
Overview
An Object oriented implementation of Akamai China CDN Manager
Install pip package available
$ pip install akamaichinaCDN
Instantiate the object.
>>> from akamaichinaCDN import ChinaCDNManager
>>> china_manager = ChinaCDNManager('/Users/apadmana/.edgerc')
Whitelist Hostname
>>> china_manager.whiteList(newhostname)
Class Definition
class ChinaCDNManager():
def __init__(self,edgercLocation,accountSwitchKey=None):
self.icp_info = ''
self._edgerc = ''
self._prdHttpCaller = ''
self._session = ''
self._baseurl_prd = ''
self._host = ''
self._icp_info = ''
self._icp_entities_info = ''
self.accountSwitchKey = ''
self._edgehostnames = ''
self._groups = ''
self._appmapping = ''
self._legalmapping = ''
def getICPEntities(self)
def getICPNumbers(self)
def getEdgeHostNames(self)
def getGroups(self)
def getProperties(self)
def getPropertyInfo(self,hostname)
def getDeProvisionPolicy(self,edgeHostname)
def specifyDeProvisionPolicy(self,edgeHostname)
def getProvisionStateChange(self,hostname,changeId)
def getcurrentProvisionStateChange(self,hostname)
def getProvisionStatus(self,status_filter=None)
def createPropertyHostname(self,hostname,icpNumberId,serviceCategoryName,groupId)
def whiteList(self,hostname)
Release files for akamaichinaCDN 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| akamaichinaCDN-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / akamaichinaCDN-0.1-py3-none-any.whl
| Download URL | akamaichinaCDN-0.1-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8841a08bfe42231fe4027301d10b86de16864f745ba78e1624ad0229ece56c4
|
|
BLAKE2b-256 checksum How to use checksums |
8c9403185df3dc0dded61ca4b455ae3cf350d11654f4498071b55b85a9a0c025
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0
|