A Pip Package for Akamai China CDN
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file akamaichinaCDN-0.1-py3-none-any.whl
.
File metadata
- Download URL: akamaichinaCDN-0.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8841a08bfe42231fe4027301d10b86de16864f745ba78e1624ad0229ece56c4 |
|
MD5 | 6f12590a46ebf575a735f46cb9953cc4 |
|
BLAKE2b-256 | 8c9403185df3dc0dded61ca4b455ae3cf350d11654f4498071b55b85a9a0c025 |