Slide 1

Slide 1 text

© AKAMAI - EDGE 2017 PAPI and Python. How to automate Akamai John Councilman – Enterprise Architect

Slide 2

Slide 2 text

© AKAMAI - EDGE 2017 Global Consulting Services Accelerate our customer's business through a partnership focused on expertise, innovation, and education. [email protected]

Slide 3

Slide 3 text

© AKAMAI - EDGE 2017 What Business Outcomes can we help you achieve? CLOUD MIGRATIONS EVENT READINESS NEW MARKET LAUNCHES ARCHITECTURE ASSESSMENTS PERFORMANCE OPTIMIZATION DEVOPS INTEGRATIO N HIGH IMPACT WORK WITH HIGH VISIBILITY FOR DEADLINE DRIVEN INITIATIVES [email protected] Global Consulting Services

Slide 4

Slide 4 text

© AKAMAI - EDGE 2017 Objectives 1. Understand where to obtain information about Akamai APIs. 2. Understand how to initialize Akamai authentication and begin development framework. 3. Obtain enough background to begin incorporating Akamai into custom applications.

Slide 5

Slide 5 text

© AKAMAI - EDGE 2017 WHOIS John Councilman Enterprise Architect Atlanta, GA, USA [email protected] https://www.linkedin.com/in/jcouncilman/ Today’s Instructor

Slide 6

Slide 6 text

© AKAMAI - EDGE 2017 Akamai API Documentation https://developer.akamai.com APIs are categorized by Use Case. Today, we will discuss Property Manager and Purge APIs. Other APIs are integrated in a similar manner. Akamai OPEN API Site

Slide 7

Slide 7 text

© AKAMAI - EDGE 2017 API Usage GET, POST, PUT, JSON, Oh My! POST HTTP POST is used to create a new item. GET HTTP GET is used to pull information via the API. PUT HTTP PUT is for updating an existing item. No need to worry. The documentation will clearly explain which one to use. As we work today, please notice that HTTP Method is important in how your application interacts with Akamai’s APIs.

Slide 8

Slide 8 text

© AKAMAI - EDGE 2017 API Request / Response Formats.

Slide 9

Slide 9 text

© AKAMAI - EDGE 2017 Setting up your first application! • Obtain one or more sets of API credentials from within your Luna account. • Populate API information into your application. • Test a GET request. • Begin coding!

Slide 10

Slide 10 text

© AKAMAI - EDGE 2017 API Credential Request

Slide 11

Slide 11 text

© AKAMAI - EDGE 2017 API Credential Request

Slide 12

Slide 12 text

© AKAMAI - EDGE 2017 API Credential Request

Slide 13

Slide 13 text

© AKAMAI - EDGE 2017 API Credential Request Notice that two filters exist. OPEN APIs and CCU APIS. You’ll need a separate API key for OPEN and PURGE.

Slide 14

Slide 14 text

© AKAMAI - EDGE 2017 API Credential Request When creating new credential, take note of all keys! They will not re-appear!

Slide 15

Slide 15 text

© AKAMAI - EDGE 2017 API Credential Request All keys displayed until closed.

Slide 16

Slide 16 text

© AKAMAI - EDGE 2017 Application setup! 1. Download library from Github. https://github.com/akamai 1. Include library into code. • Python from akamai.edgegrid import EdgeGridAuth from urlparse import urljoin import json import re • Perl use Akamai::Edgegrid; use JSON::XS 'decode_json'; use Data::Dumper;

Slide 17

Slide 17 text

© AKAMAI - EDGE 2017 Interactive Code Jam + Q/A! For the remainder of the time during this class, we will build a simple application to automate Akamai. This is intended to be interactive, questions will be answered during development. Demo by Instructor (10 mins) Q/A (10 mins)

Slide 18

Slide 18 text

© AKAMAI - EDGE 2017

Slide 19

Slide 19 text

© AKAMAI - EDGE 2017