Skip to main content

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

This version

0.1

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

akamaichinaCDN-0.1-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

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