pyakamai


Namepyakamai JSON
Version 2.35 PyPI version JSON
download
home_pagehttps://github.com/Achuthananda/pyakamai
SummaryA Boto3 like SDK for Akamai
upload_time2024-03-27 11:23:41
maintainerNone
docs_urlNone
authorAchuthananda M P
requires_python>=3.7
licenseNone
keywords akamai python cdn sdk edge
VCS
bugtrack_url
requirements akamaihttp common commonutilities edgegrid_python requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyakamai - The Akamai SDK for Python
[![Package Version](http://img.shields.io/pypi/v/boto3.svg?style=flat)](https://pypi.org/project/pyakamai/)
[![Python Versions](https://img.shields.io/pypi/pyversions/boto3.svg?style=flat)](https://pypi.org/project/pyakamai/)

pyakamai is the Akamai CDN Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Akamai Delivery ,Security Configs and many more. 

pyakamai (pronounced pie-akamai) is maintained and published by Achuthananda and a group of enthusiastic Akamai developers.

The advantage of pyakamai is application developers need not know about the underlying API calls and their usage. Application developers can just focus on getting their work done programmatically using the objects of pyakamai.


### Getting Starterd
In order to use this configuration, you need to:
* Set up your credential files as described in the [doc](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials).
* When working through this process you need to give grants for the various APIs as needed. You can have any number of sections in your .edgerc file.


### Install pip package available
```
$ pip install pyakamai
```

or install from source with:

```
$ git clone https://github.com/Achuthananda/pyakamai
$ cd pyakamai
$ python -m pip install -r requirements.txt
$ python -m pip install -e .
```


# Using pyakamai

## Using AkamaiProperty

### Print Hostnames
```
>>> from pyakamai import pyakamai
>>> pyakamaiObj = pyakamai()
>>> akamaiconfig = pyakamaiObj.client('property')
>>> akamaiconfig.config('test_bulkseach_update_1')
>>> hostnamesList = akamaiconfig.getHostNames(akamaiconfig.getProductionVersion())
>>> print(hostnamesList)
>>> ['www.achuth-purgetest.edgesuite-staging.net', 'www.achuth-purgetest.edgesuite.net', 'www.geethapriya-purge.edgesuite-staging.net', 'www.geethapriya-purge.edgesuite.net']
```

### Print Basic Information
```
>>> akamaiconfig.printPropertyInfo()
Property Name: test_bulkseach_update_1
Contract Id: ctr_C-1IE2OHM
Group Id: grp_163363
Active Staging Version: 18
Active Production Version: 18
```

### Get the Delivery Product
```
>>> from pyakamai import pyakamai
>>> pyakamaiObj = pyakamai()
>>> akamaiconfig = pyakamaiObj.client('property')
>>> akamaiconfig.config('achuth-purgetest.com')
>>> version = akamaiconfig.getProductionVersion()
>>> 
>>> product = akamaiconfig.getProduct()
>>> print(product)
Dynamic Site Accelerator
```

### List the CP Codes of the Config
```
>>> from pyakamai import pyakamai
>>> pyakamaiObj = pyakamai()
>>> akamaiconfig = pyakamaiObj.client('property')
>>> akamaiconfig.config('achuth-purgetest.com')
>>> akamaiconfig.getCPCodes(akamaiconfig.getProductionVersion())
[912248,566814,4512345,127890]
```

### List the Origins of the Config
```
>>> from pyakamai import pyakamai
>>> pyakamaiObj = pyakamai()
>>> akamaiconfig = pyakamaiObj.client('property')
>>> akamaiconfig.config('achuth-purgetest.com')
>>> akamaiconfig.getOrigins(akamaiconfig.getProductionVersion())
['www.gsshappylearning.com','gssflowershop.com','origin-acmp.requestcatcher.com']
```

### To Search a hostname in the Account
```
>>> from pyakamai import pyakamai
>>> pyakamaiObj = pyakamai() 
>>> akamaiconfig = pyakamaiObj.client('property')
>>> configName = akamaiconfig.search('www.achuth-purgetest.edgesuite.net')
>>> print(configName)
>>> achuth-purgetest.com
```


### Create a new version
```
>>> akamaiconfig.createVersion(18)
'78'
```

### Get rule Tree
```
>>>akamaiconfig.getRuleTree(18)
{'accountId': 'act_B-C-1IE2OH8', 'contractId': 'ctr_C-1IE2OHM', 'groupId': 'grp_163363', 'propertyId': 'prp_605086', 'propertyName': 'test_bulkseach_update_1', 'propertyVersion': 18, 'etag': 'd0d28a6b71e665144955f7f7e1ff214933d119d7', 'rules':.....}
```

### Activate the config
```
>>>akamaiconfig.activateStaging(18,"testing activation",["apadmana@akamai.com"])
True
```

## Using AkamaiEDNS
```
from pyakamai import pyakamai
pyakamaiObj = pyakamai('ACCOUNT-SWITCH-KEY')

ednsClient = pyakamaiObj.client('edns')
for ednszone in ednsClient.listZones()['zones']:
    print(ednszone['zone'])

```

## Using Akamai MSL
```
>>>from pyakamai import pyakamai
>>>pyakamaiObj = pyakamai(''ACCOUNT-SWITCH-KEY)
>>>mslConfig = pyakamaiObj.client('msl')

>>>mslConfig.stream('2002471')
>>>mslConfig.printStreamInfo()

Stream Name: ssselecthd2dash2323
Stream Id: 2002471
Allowed IPs: ['203.2.47.34', '125.212.85.190', '213.200.155.163', '15.110.20.2', '14.13.11.61/32', '14.43.83.134']
Format: DASH
Origin: {'id': 16532, 'hostName': '012-dn001-sssesslectasdashd2dash.akamaiorigin.net', 'cpcode': 759459}
Provisioning Status: PROVISIONED
```


## Using Akamai Purge
```
>>> from pyakamai import pyakamai
>>> pyakamaiObj = pyakamai(section='ccu') #Akamai Technologies Assets
>>> purgeClient = pyakamaiObj.client('purge')
>>> 
>>> 
>>> print(purgeClient.deletebyCPCode([912248],'staging'))
{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'edcs-NP5QvoTVwkpnjdADva1U9c', 'purgeId': 'edcs-NP5QvoTVwkpnjdADva1U9c', 'estimatedSeconds': 5}
>>> print(purgeClient.deletebyCPCode([912248],'production'))
{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'edcp-NTTmPZzCdHbYAMaVdTKyd3', 'purgeId': 'edcp-NTTmPZzCdHbYAMaVdTKyd3', 'estimatedSeconds': 5}
>>> print(purgeClient.invalidatebyCPCode([912248],'production'))
{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'eicp-NVQycBX9FkCPHvEfv8Ntx1', 'purgeId': 'eicp-NVQycBX9FkCPHvEfv8Ntx1', 'estimatedSeconds': 5}
>>> print(purgeClient.deletebyURL(['http://www.achuth-purgetest.edgesuite.net/images/5.jpg','http://www.achuth-purgetest.edgesuite.net/images/9.jpg'],'staging'))
{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'edus-Na3M2qwxAMioicEEWj1Scz', 'purgeId': 'edus-Na3M2qwxAMioicEEWj1Scz', 'estimatedSeconds': 5}
>>> print(purgeClient.invalidatebyURL(['http://www.achuth-purgetest.edgesuite.net/images/5.jpg','http://www.achuth-purgetest.edgesuite.net/images/9.jpg'],'staging'))
{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'eius-NfB5EvSnXdz7B36rhjxRxU', 'purgeId': 'eius-NfB5EvSnXdz7B36rhjxRxU', 'estimatedSeconds': 5}
>>> print(purgeClient.deletebyCacheTag(['acmpjs','acmpimages'],'staging'))
{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'edts-NhiHSoKVaXULwJj9eS48EU', 'purgeId': 'edts-NhiHSoKVaXULwJj9eS48EU', 'estimatedSeconds': 5}
>>> print(purgeClient.invalidatebyCacheTag(['acmpjs','acmpimages'],'production'))
{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'eitp-PYjibvc6uyRKcM31gn5GxY', 'purgeId': 'eitp-PYjibvc6uyRKcM31gn5GxY', 'estimatedSeconds': 5}
```

## Using Akamai CPS
```
>>> from pyakamai import pyakamai
>>> pyakamaiObj = pyakamai('B-3-16OEUPX') 
>>> cpsClient = pyakamaiObj.client('cps')
>>> 
>>> 
>>> enrollments = cpsClient.listEnrollments()

print(json.dumps(enrollments,indent=2))
>>> 
>>> print(json.dumps(enrollments,indent=2))
{
  "enrollments": [
    {
      "location": "/cps/v2/enrollments/65586",
      "ra": "lets-encrypt",
      "validationType": "dv",
      "certificateType": "san",
      "certificateChainType": "default",
      "networkConfiguration": {
        "geography": "core",
        "secureNetwork": "enhanced-tls",
        "mustHaveCiphers": "ak-akamai-2020q1",
        "preferredCiphers": "ak-akamai-2020q1",
        "disallowedTlsVersions": [
          "TLSv1",
          "TLSv1_1"]}}]}
```

## Using Akamai LDS

```
>>> from pyakamai import pyakamai
>>> pyakamaiObj = pyakamai('B-3-16OEUPX') 
>>> ldsClient = pyakamaiObj.client('lds')
>>> ldsList = ldsClient.listConfigs('cpcode-products')

>>> print(json.dumps(ldsList,indent=2))
[
  {
    "id": 707034,
    "status": "expired",
    "startDate": "2021-06-13",
    "endDate": "2021-07-13",
    "logSource": {
      "links": [
        {
          "rel": "self",
          "href": "/lds-api/v3/log-sources/cpcode-products/1-788273"
        },
        {
          "rel": "cpcode-products",
          "href": "/lds-api/v3/log-sources/cpcode-products"
        },
        {
          "rel": "log-sources",
          "href": "/lds-api/v3/log-sources"
        }
      ],
      "type": "cpcode-products",
      "id": "1-788273",
      "cpCode": "788273 - demo.grinwis.com-pristine",
      "products": [
        "Ion Standard"
      ],
      "logRetentionDays": 8
    },
    "aggregationDetails": {
      "type": "byLogArrival",
      "deliveryFrequency": {
        "id": "1",
        "value": "Every 24 hours",
        "links": [
          {
            "rel": "self",
            "href": "/lds-api/v3/log-configuration-parameters/delivery-frequencies/1"
          },
          {
            "rel": "deliveryFrequencies",
            "href": "/lds-api/v3/log-configuration-parameters/delivery-frequencies"
          }
        ]
      }
    },
    "contactDetails": {
      "mailAddresses": [
        "jgrinwis@akamai.com"
      ],
      "contact": {
        "id": "F-CO-3289943",
        "value": "John Grinwis - phone: +31615514552",
        "links": [
          {
            "rel": "self",
            "href": "/lds-api/v3/log-configuration-parameters/contacts/F-CO-3289943"
          },
          {
            "rel": "contacts",
            "href": "/lds-api/v3/log-configuration-parameters/contacts"
          }
        ]
      }
    },
    "deliveryDetails": {
      "type": "httpsns4",
      "domainPrefix": "jgrinwis",
      "cpcodeId": 789214,
      "directory": "/logs"
    },
    "encodingDetails": {
      "encoding": {
        "id": "3",
        "value": "GZIP",
        "links": [
          {
            "rel": "self",
            "href": "/lds-api/v3/log-configuration-parameters/encodings/3"
          },
          {
            "rel": "encodings",
            "href": "/lds-api/v3/log-configuration-parameters/encodings"
          }
        ]
      }
    },
    "logFormatDetails": {
      "logIdentifier": "test_grinwis",
      "logFormat": {
        "id": "2",
        "value": "combined",
        "links": [
          {
            "rel": "self",
            "href": "/lds-api/v3/log-configuration-parameters/log-formats/2"
          },
          {
            "rel": "logFormats",
            "href": "/lds-api/v3/log-configuration-parameters/log-formats"
          }
        ]
      }
    },
    "messageSize": {
      "id": "1",
      "value": "50 MB (approx. 300 MB uncompressed logs)",
      "links": [
        {
          "rel": "self",
          "href": "/lds-api/v3/log-configuration-parameters/message-sizes/1"
        },
        {
          "rel": "messageSizes",
          "href": "/lds-api/v3/log-configuration-parameters/message-sizes"
        }
      ]
    },
    "links": [
      {
        "rel": "self",
        "href": "/lds-api/v3/log-configurations/707034"
      },
      {
        "rel": "get-log-configurations-for-log-source",
        "href": "/lds-api/v3/log-sources/cpcode-products/1-788273/log-configurations",
        "title": "Get Log Configurations for the same log source"
      },
      {
        "rel": "get-log-configurations-for-log-source-type",
        "href": "/lds-api/v3/log-sources/cpcode-products/log-configurations",
        "title": "Get Log Configurations for the same log source type"
      },
      {
        "rel": "update-log-configuration",
        "href": "/lds-api/v3/log-configurations/707034",
        "method": "PUT",
        "title": "Update Log Configuration"
      },
      {
        "rel": "delete-log-configuration",
        "href": "/lds-api/v3/log-configurations/707034",
        "method": "DELETE",
        "title": "Delete Log Configuration"
      }
    ]
  },

```

## Using Akamai Case Management

```
from pyakamai import pyakamai
import json
pyakamaiObj = pyakamai()
caseManagementClient = pyakamaiObj.client('case')
caseList = caseManagementClient.listAllActiveCases(accountIds='F-AC879800')
print(json.dumps(caseList,indent=2))

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Achuthananda/pyakamai",
    "name": "pyakamai",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "Akamai Python CDN SDK Edge",
    "author": "Achuthananda M P",
    "author_email": "achuthadivine@gmail.com",
    "download_url": null,
    "platform": null,
    "description": "# pyakamai - The Akamai SDK for Python\n[![Package Version](http://img.shields.io/pypi/v/boto3.svg?style=flat)](https://pypi.org/project/pyakamai/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/boto3.svg?style=flat)](https://pypi.org/project/pyakamai/)\n\npyakamai is the Akamai CDN Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Akamai Delivery ,Security Configs and many more. \n\npyakamai (pronounced pie-akamai) is maintained and published by Achuthananda and a group of enthusiastic Akamai developers.\n\nThe advantage of pyakamai is application developers need not know about the underlying API calls and their usage. Application developers can just focus on getting their work done programmatically using the objects of pyakamai.\n\n\n### Getting Starterd\nIn order to use this configuration, you need to:\n* Set up your credential files as described in the [doc](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials).\n* When working through this process you need to give grants for the various APIs as needed. You can have any number of sections in your .edgerc file.\n\n\n### Install pip package available\n```\n$ pip install pyakamai\n```\n\nor install from source with:\n\n```\n$ git clone https://github.com/Achuthananda/pyakamai\n$ cd pyakamai\n$ python -m pip install -r requirements.txt\n$ python -m pip install -e .\n```\n\n\n# Using pyakamai\n\n## Using AkamaiProperty\n\n### Print Hostnames\n```\n>>> from pyakamai import pyakamai\n>>> pyakamaiObj = pyakamai()\n>>> akamaiconfig = pyakamaiObj.client('property')\n>>> akamaiconfig.config('test_bulkseach_update_1')\n>>> hostnamesList = akamaiconfig.getHostNames(akamaiconfig.getProductionVersion())\n>>> print(hostnamesList)\n>>> ['www.achuth-purgetest.edgesuite-staging.net', 'www.achuth-purgetest.edgesuite.net', 'www.geethapriya-purge.edgesuite-staging.net', 'www.geethapriya-purge.edgesuite.net']\n```\n\n### Print Basic Information\n```\n>>> akamaiconfig.printPropertyInfo()\nProperty Name: test_bulkseach_update_1\nContract Id: ctr_C-1IE2OHM\nGroup Id: grp_163363\nActive Staging Version: 18\nActive Production Version: 18\n```\n\n### Get the Delivery Product\n```\n>>> from pyakamai import pyakamai\n>>> pyakamaiObj = pyakamai()\n>>> akamaiconfig = pyakamaiObj.client('property')\n>>> akamaiconfig.config('achuth-purgetest.com')\n>>> version = akamaiconfig.getProductionVersion()\n>>> \n>>> product = akamaiconfig.getProduct()\n>>> print(product)\nDynamic Site Accelerator\n```\n\n### List the CP Codes of the Config\n```\n>>> from pyakamai import pyakamai\n>>> pyakamaiObj = pyakamai()\n>>> akamaiconfig = pyakamaiObj.client('property')\n>>> akamaiconfig.config('achuth-purgetest.com')\n>>> akamaiconfig.getCPCodes(akamaiconfig.getProductionVersion())\n[912248,566814,4512345,127890]\n```\n\n### List the Origins of the Config\n```\n>>> from pyakamai import pyakamai\n>>> pyakamaiObj = pyakamai()\n>>> akamaiconfig = pyakamaiObj.client('property')\n>>> akamaiconfig.config('achuth-purgetest.com')\n>>> akamaiconfig.getOrigins(akamaiconfig.getProductionVersion())\n['www.gsshappylearning.com','gssflowershop.com','origin-acmp.requestcatcher.com']\n```\n\n### To Search a hostname in the Account\n```\n>>> from pyakamai import pyakamai\n>>> pyakamaiObj = pyakamai() \n>>> akamaiconfig = pyakamaiObj.client('property')\n>>> configName = akamaiconfig.search('www.achuth-purgetest.edgesuite.net')\n>>> print(configName)\n>>> achuth-purgetest.com\n```\n\n\n### Create a new version\n```\n>>> akamaiconfig.createVersion(18)\n'78'\n```\n\n### Get rule Tree\n```\n>>>akamaiconfig.getRuleTree(18)\n{'accountId': 'act_B-C-1IE2OH8', 'contractId': 'ctr_C-1IE2OHM', 'groupId': 'grp_163363', 'propertyId': 'prp_605086', 'propertyName': 'test_bulkseach_update_1', 'propertyVersion': 18, 'etag': 'd0d28a6b71e665144955f7f7e1ff214933d119d7', 'rules':.....}\n```\n\n### Activate the config\n```\n>>>akamaiconfig.activateStaging(18,\"testing activation\",[\"apadmana@akamai.com\"])\nTrue\n```\n\n## Using AkamaiEDNS\n```\nfrom pyakamai import pyakamai\npyakamaiObj = pyakamai('ACCOUNT-SWITCH-KEY')\n\nednsClient = pyakamaiObj.client('edns')\nfor ednszone in ednsClient.listZones()['zones']:\n    print(ednszone['zone'])\n\n```\n\n## Using Akamai MSL\n```\n>>>from pyakamai import pyakamai\n>>>pyakamaiObj = pyakamai(''ACCOUNT-SWITCH-KEY)\n>>>mslConfig = pyakamaiObj.client('msl')\n\n>>>mslConfig.stream('2002471')\n>>>mslConfig.printStreamInfo()\n\nStream Name: ssselecthd2dash2323\nStream Id: 2002471\nAllowed IPs: ['203.2.47.34', '125.212.85.190', '213.200.155.163', '15.110.20.2', '14.13.11.61/32', '14.43.83.134']\nFormat: DASH\nOrigin: {'id': 16532, 'hostName': '012-dn001-sssesslectasdashd2dash.akamaiorigin.net', 'cpcode': 759459}\nProvisioning Status: PROVISIONED\n```\n\n\n## Using Akamai Purge\n```\n>>> from pyakamai import pyakamai\n>>> pyakamaiObj = pyakamai(section='ccu') #Akamai Technologies Assets\n>>> purgeClient = pyakamaiObj.client('purge')\n>>> \n>>> \n>>> print(purgeClient.deletebyCPCode([912248],'staging'))\n{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'edcs-NP5QvoTVwkpnjdADva1U9c', 'purgeId': 'edcs-NP5QvoTVwkpnjdADva1U9c', 'estimatedSeconds': 5}\n>>> print(purgeClient.deletebyCPCode([912248],'production'))\n{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'edcp-NTTmPZzCdHbYAMaVdTKyd3', 'purgeId': 'edcp-NTTmPZzCdHbYAMaVdTKyd3', 'estimatedSeconds': 5}\n>>> print(purgeClient.invalidatebyCPCode([912248],'production'))\n{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'eicp-NVQycBX9FkCPHvEfv8Ntx1', 'purgeId': 'eicp-NVQycBX9FkCPHvEfv8Ntx1', 'estimatedSeconds': 5}\n>>> print(purgeClient.deletebyURL(['http://www.achuth-purgetest.edgesuite.net/images/5.jpg','http://www.achuth-purgetest.edgesuite.net/images/9.jpg'],'staging'))\n{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'edus-Na3M2qwxAMioicEEWj1Scz', 'purgeId': 'edus-Na3M2qwxAMioicEEWj1Scz', 'estimatedSeconds': 5}\n>>> print(purgeClient.invalidatebyURL(['http://www.achuth-purgetest.edgesuite.net/images/5.jpg','http://www.achuth-purgetest.edgesuite.net/images/9.jpg'],'staging'))\n{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'eius-NfB5EvSnXdz7B36rhjxRxU', 'purgeId': 'eius-NfB5EvSnXdz7B36rhjxRxU', 'estimatedSeconds': 5}\n>>> print(purgeClient.deletebyCacheTag(['acmpjs','acmpimages'],'staging'))\n{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'edts-NhiHSoKVaXULwJj9eS48EU', 'purgeId': 'edts-NhiHSoKVaXULwJj9eS48EU', 'estimatedSeconds': 5}\n>>> print(purgeClient.invalidatebyCacheTag(['acmpjs','acmpimages'],'production'))\n{'httpStatus': 201, 'detail': 'Request accepted', 'supportId': 'eitp-PYjibvc6uyRKcM31gn5GxY', 'purgeId': 'eitp-PYjibvc6uyRKcM31gn5GxY', 'estimatedSeconds': 5}\n```\n\n## Using Akamai CPS\n```\n>>> from pyakamai import pyakamai\n>>> pyakamaiObj = pyakamai('B-3-16OEUPX') \n>>> cpsClient = pyakamaiObj.client('cps')\n>>> \n>>> \n>>> enrollments = cpsClient.listEnrollments()\n\nprint(json.dumps(enrollments,indent=2))\n>>> \n>>> print(json.dumps(enrollments,indent=2))\n{\n  \"enrollments\": [\n    {\n      \"location\": \"/cps/v2/enrollments/65586\",\n      \"ra\": \"lets-encrypt\",\n      \"validationType\": \"dv\",\n      \"certificateType\": \"san\",\n      \"certificateChainType\": \"default\",\n      \"networkConfiguration\": {\n        \"geography\": \"core\",\n        \"secureNetwork\": \"enhanced-tls\",\n        \"mustHaveCiphers\": \"ak-akamai-2020q1\",\n        \"preferredCiphers\": \"ak-akamai-2020q1\",\n        \"disallowedTlsVersions\": [\n          \"TLSv1\",\n          \"TLSv1_1\"]}}]}\n```\n\n## Using Akamai LDS\n\n```\n>>> from pyakamai import pyakamai\n>>> pyakamaiObj = pyakamai('B-3-16OEUPX') \n>>> ldsClient = pyakamaiObj.client('lds')\n>>> ldsList = ldsClient.listConfigs('cpcode-products')\n\n>>> print(json.dumps(ldsList,indent=2))\n[\n  {\n    \"id\": 707034,\n    \"status\": \"expired\",\n    \"startDate\": \"2021-06-13\",\n    \"endDate\": \"2021-07-13\",\n    \"logSource\": {\n      \"links\": [\n        {\n          \"rel\": \"self\",\n          \"href\": \"/lds-api/v3/log-sources/cpcode-products/1-788273\"\n        },\n        {\n          \"rel\": \"cpcode-products\",\n          \"href\": \"/lds-api/v3/log-sources/cpcode-products\"\n        },\n        {\n          \"rel\": \"log-sources\",\n          \"href\": \"/lds-api/v3/log-sources\"\n        }\n      ],\n      \"type\": \"cpcode-products\",\n      \"id\": \"1-788273\",\n      \"cpCode\": \"788273 - demo.grinwis.com-pristine\",\n      \"products\": [\n        \"Ion Standard\"\n      ],\n      \"logRetentionDays\": 8\n    },\n    \"aggregationDetails\": {\n      \"type\": \"byLogArrival\",\n      \"deliveryFrequency\": {\n        \"id\": \"1\",\n        \"value\": \"Every 24 hours\",\n        \"links\": [\n          {\n            \"rel\": \"self\",\n            \"href\": \"/lds-api/v3/log-configuration-parameters/delivery-frequencies/1\"\n          },\n          {\n            \"rel\": \"deliveryFrequencies\",\n            \"href\": \"/lds-api/v3/log-configuration-parameters/delivery-frequencies\"\n          }\n        ]\n      }\n    },\n    \"contactDetails\": {\n      \"mailAddresses\": [\n        \"jgrinwis@akamai.com\"\n      ],\n      \"contact\": {\n        \"id\": \"F-CO-3289943\",\n        \"value\": \"John Grinwis - phone: +31615514552\",\n        \"links\": [\n          {\n            \"rel\": \"self\",\n            \"href\": \"/lds-api/v3/log-configuration-parameters/contacts/F-CO-3289943\"\n          },\n          {\n            \"rel\": \"contacts\",\n            \"href\": \"/lds-api/v3/log-configuration-parameters/contacts\"\n          }\n        ]\n      }\n    },\n    \"deliveryDetails\": {\n      \"type\": \"httpsns4\",\n      \"domainPrefix\": \"jgrinwis\",\n      \"cpcodeId\": 789214,\n      \"directory\": \"/logs\"\n    },\n    \"encodingDetails\": {\n      \"encoding\": {\n        \"id\": \"3\",\n        \"value\": \"GZIP\",\n        \"links\": [\n          {\n            \"rel\": \"self\",\n            \"href\": \"/lds-api/v3/log-configuration-parameters/encodings/3\"\n          },\n          {\n            \"rel\": \"encodings\",\n            \"href\": \"/lds-api/v3/log-configuration-parameters/encodings\"\n          }\n        ]\n      }\n    },\n    \"logFormatDetails\": {\n      \"logIdentifier\": \"test_grinwis\",\n      \"logFormat\": {\n        \"id\": \"2\",\n        \"value\": \"combined\",\n        \"links\": [\n          {\n            \"rel\": \"self\",\n            \"href\": \"/lds-api/v3/log-configuration-parameters/log-formats/2\"\n          },\n          {\n            \"rel\": \"logFormats\",\n            \"href\": \"/lds-api/v3/log-configuration-parameters/log-formats\"\n          }\n        ]\n      }\n    },\n    \"messageSize\": {\n      \"id\": \"1\",\n      \"value\": \"50 MB (approx. 300 MB uncompressed logs)\",\n      \"links\": [\n        {\n          \"rel\": \"self\",\n          \"href\": \"/lds-api/v3/log-configuration-parameters/message-sizes/1\"\n        },\n        {\n          \"rel\": \"messageSizes\",\n          \"href\": \"/lds-api/v3/log-configuration-parameters/message-sizes\"\n        }\n      ]\n    },\n    \"links\": [\n      {\n        \"rel\": \"self\",\n        \"href\": \"/lds-api/v3/log-configurations/707034\"\n      },\n      {\n        \"rel\": \"get-log-configurations-for-log-source\",\n        \"href\": \"/lds-api/v3/log-sources/cpcode-products/1-788273/log-configurations\",\n        \"title\": \"Get Log Configurations for the same log source\"\n      },\n      {\n        \"rel\": \"get-log-configurations-for-log-source-type\",\n        \"href\": \"/lds-api/v3/log-sources/cpcode-products/log-configurations\",\n        \"title\": \"Get Log Configurations for the same log source type\"\n      },\n      {\n        \"rel\": \"update-log-configuration\",\n        \"href\": \"/lds-api/v3/log-configurations/707034\",\n        \"method\": \"PUT\",\n        \"title\": \"Update Log Configuration\"\n      },\n      {\n        \"rel\": \"delete-log-configuration\",\n        \"href\": \"/lds-api/v3/log-configurations/707034\",\n        \"method\": \"DELETE\",\n        \"title\": \"Delete Log Configuration\"\n      }\n    ]\n  },\n\n```\n\n## Using Akamai Case Management\n\n```\nfrom pyakamai import pyakamai\nimport json\npyakamaiObj = pyakamai()\ncaseManagementClient = pyakamaiObj.client('case')\ncaseList = caseManagementClient.listAllActiveCases(accountIds='F-AC879800')\nprint(json.dumps(caseList,indent=2))\n\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Boto3 like SDK for Akamai",
    "version": "2.35",
    "project_urls": {
        "Homepage": "https://github.com/Achuthananda/pyakamai",
        "Source": "https://github.com/Achuthananda/pyakamai"
    },
    "split_keywords": [
        "akamai",
        "python",
        "cdn",
        "sdk",
        "edge"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbc884bbb407c4b1fcd59b7e57cb5aa735c16736740509d9475b6cb6a201b950",
                "md5": "8621068ebd1a1e349cd0543671d59dd4",
                "sha256": "baf33827df1563de54ebe4d43c9cdee7735d9572c321fdd8eaa460e472f88834"
            },
            "downloads": -1,
            "filename": "pyakamai-2.35-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8621068ebd1a1e349cd0543671d59dd4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 37335,
            "upload_time": "2024-03-27T11:23:41",
            "upload_time_iso_8601": "2024-03-27T11:23:41.184073Z",
            "url": "https://files.pythonhosted.org/packages/fb/c8/84bbb407c4b1fcd59b7e57cb5aa735c16736740509d9475b6cb6a201b950/pyakamai-2.35-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-27 11:23:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Achuthananda",
    "github_project": "pyakamai",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "akamaihttp",
            "specs": [
                [
                    "==",
                    "1.6.4"
                ]
            ]
        },
        {
            "name": "common",
            "specs": [
                [
                    "==",
                    "0.1.2"
                ]
            ]
        },
        {
            "name": "commonutilities",
            "specs": [
                [
                    "==",
                    "0.1"
                ]
            ]
        },
        {
            "name": "edgegrid_python",
            "specs": [
                [
                    "==",
                    "1.3.1"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.25.1"
                ]
            ]
        }
    ],
    "lcname": "pyakamai"
}
        
Elapsed time: 0.21949s