akamaiproperty


Nameakamaiproperty JSON
Version 2.7 PyPI version JSON
download
home_pagehttps://github.com/Achuthananda/AkamaiPropertyManager
SummaryA Pip Package for Akamai Property
upload_time2023-04-14 09:55:31
maintainer
docs_urlNone
authorAchuthananda M P
requires_python
license
keywords akamai property cdn akamaiconfigs edge
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python SDK for Akamai Property Manager
A Python SDK of Akamai Property Manager.
The advantage of SDK is application developers need not know about the PAPI calls and their usage. Application developers can just focus on getting their work done on Property Manager configs programmatically using the objects of AkamaiProperty.


### Credentials
In order to use this configuration, you need to:
* Set up your credential files as described in the [authorization](https://developer.akamai.com/introduction/Prov_Creds.html) and [credentials](https://developer.akamai.com/introduction/Conf_Client.html) 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 'papi'.

## Overview
The advantage of Akamai Property class is application developers need not know about the PAPI calls and their usage. Application developers can just focus on getting their work done on Property Manager configs programmatically using the objects of AkamaiProperty.


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

## Instantiate the object.
```
>>> from akamaiproperty import AkamaiProperty
>>> myProperty = AkamaiProperty("/Users/apadmana/.edgerc","test_bulkseach_update_1","<accountSwitchKey>")
>>> myProperty = AkamaiProperty("/Users/apadmana/.edgerc","test_bulkseach_update_1")
```

## Print Basic Information
```
>>> myProperty.printPropertyInfo()
Property Name: test_bulkseach_update_1
Contract Id: ctr_C-1IE2OHM
Group Id: grp_163363
Active Staging Version: 18
Active Production Version: 18
```
## Create a new version
```
>>> myProperty.createVersion(18)
'78'
```

## Get rule Tree
```
>>>myProperty.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
```
>>>myProperty.activateStaging(18,"testing activation",["apadmana@akamai.com"])
True
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Achuthananda/AkamaiPropertyManager",
    "name": "akamaiproperty",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Akamai Property CDN AkamaiConfigs Edge",
    "author": "Achuthananda M P",
    "author_email": "achuthadivine@gmail.com",
    "download_url": "",
    "platform": null,
    "description": "# Python SDK for Akamai Property Manager\nA Python SDK of Akamai Property Manager.\nThe advantage of SDK is application developers need not know about the PAPI calls and their usage. Application developers can just focus on getting their work done on Property Manager configs programmatically using the objects of AkamaiProperty.\n\n\n### Credentials\nIn order to use this configuration, you need to:\n* Set up your credential files as described in the [authorization](https://developer.akamai.com/introduction/Prov_Creds.html) and [credentials](https://developer.akamai.com/introduction/Conf_Client.html) sections of the getting started guide on developer.akamai.com.  \n* 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 'papi'.\n\n## Overview\nThe advantage of Akamai Property class is application developers need not know about the PAPI calls and their usage. Application developers can just focus on getting their work done on Property Manager configs programmatically using the objects of AkamaiProperty.\n\n\n### Install pip package available\n```\n$ pip install akamaiproperty\n```\n\n## Instantiate the object.\n```\n>>> from akamaiproperty import AkamaiProperty\n>>> myProperty = AkamaiProperty(\"/Users/apadmana/.edgerc\",\"test_bulkseach_update_1\",\"<accountSwitchKey>\")\n>>> myProperty = AkamaiProperty(\"/Users/apadmana/.edgerc\",\"test_bulkseach_update_1\")\n```\n\n## Print Basic Information\n```\n>>> myProperty.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## Create a new version\n```\n>>> myProperty.createVersion(18)\n'78'\n```\n\n## Get rule Tree\n```\n>>>myProperty.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>>>myProperty.activateStaging(18,\"testing activation\",[\"apadmana@akamai.com\"])\nTrue\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A Pip Package for Akamai Property",
    "version": "2.7",
    "split_keywords": [
        "akamai",
        "property",
        "cdn",
        "akamaiconfigs",
        "edge"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "791aafcd8a2ab5a6e14b0a3ec4c64fc3b3e3a168c559a57afd9e2c4ac7d7d9fa",
                "md5": "c7fd3582bec5303a12650bc0420e6f88",
                "sha256": "d862c9e3207a32adff690ade64a88b773a7b1f7acc7bae35355de533df52cb00"
            },
            "downloads": -1,
            "filename": "akamaiproperty-2.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c7fd3582bec5303a12650bc0420e6f88",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 13855,
            "upload_time": "2023-04-14T09:55:31",
            "upload_time_iso_8601": "2023-04-14T09:55:31.828846Z",
            "url": "https://files.pythonhosted.org/packages/79/1a/afcd8a2ab5a6e14b0a3ec4c64fc3b3e3a168c559a57afd9e2c4ac7d7d9fa/akamaiproperty-2.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-14 09:55:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Achuthananda",
    "github_project": "AkamaiPropertyManager",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "akamaiproperty"
}
        
Elapsed time: 1.02142s