Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables...
-
Upload
ca-technologies -
Category
Technology
-
view
128 -
download
1
Transcript of Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables...
![Page 1: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/1.jpg)
CA API Developer Portal: Policy Writing for the Portal Using Context Variables and Custom FieldsJay BagtasPrincipal Software EngineerCA Technologies
DO3X40E
DEVOPS
![Page 2: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/2.jpg)
5 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
© 2016 CA. All rights reserved. All trademarks referenced herein belong to their respective companies.
The content provided in this CA World 2016 presentation is intended for informational purposes only and does not form any type of warranty. The information provided by a CA partner and/or CA customer has not been reviewed for accuracy by CA.
For Informational Purposes Only Terms of this Presentation
![Page 3: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/3.jpg)
6 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Abstract
CA API Management Policy flexibility is what allows customers to create solutions and modify them easily over time as your business changes. In this course, we will look at how to write Policy to leverage Context Variables, Custom Fields and Policy Templates to create solutions for real-world use cases.
Jay Bagtas
CA TechnologiesPrincipal Software Engineer
![Page 4: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/4.jpg)
7 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Agenda
INTRODUCTION
GATEWAY POLICY
Q&A
PORTAL POLICY TEMPLATES
PORTAL CUSTOM FIELDS
DEMO
1
2
3
4
5
6
![Page 5: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/5.jpg)
8 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Introduction
![Page 6: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/6.jpg)
9 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Policy Entities
Encapsulated Assertion
Policy/Policy Fragment
Assertions
Context Variables
![Page 7: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/7.jpg)
10 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Policy Writing
Turing-complete
Supports branching, looping
Extensible but comes with numerous Assertions
Easy to learn, hard to master
![Page 8: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/8.jpg)
11 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Portal and the Gateway
Portal allows publishing of APIs managed by the Gateway
Policy Templates and Custom Fields are Portal features that allow additional input into these APIs– Portal users define the what– Gateway admins define how input used at API runtime
![Page 9: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/9.jpg)
12 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Example Policy Template/Encapsulated Assertion
![Page 10: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/10.jpg)
13 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Custom Fields
Portal supports API & API Key custom fields
Metadata that can be added to an API & API Key
Custom Fields can be setup as text fields or single-select dropdowns
Custom Field values are specified at API & API Key creation
![Page 11: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/11.jpg)
14 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Example API Custom Field/Service Properties Sub-head
![Page 12: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/12.jpg)
15 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Example Application Custom Field
![Page 13: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/13.jpg)
16 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Typical Use Cases
Authentication
Authorization
Routing
Rate limiting
API Protection
Metadata extension for APIs and Applications
![Page 14: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/14.jpg)
17 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Let’s Do an Exercise
Problem: Need to variably set quotas on specific HTTP Methods for an API
Problem part 2: Partners do not get access to certain HTTP methods for an API
![Page 15: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/15.jpg)
18 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Demo
![Page 16: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/16.jpg)
19 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
What Did We Do?
Created an Policy Template/Encapsulated Assertion
Exposed it to the Portal
Created an API that used it and an Application to consume it
Added a API Custom Field for additional control
Added an Application Custom Field for differentiated control
![Page 17: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/17.jpg)
20 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Recommended Sessions
SESSION # TITLE DATE/TIME
DO3X51E 11/14/2016 at 2:00 PM
DO3T11T Tech Talk: CA API Gateway: Deploying Docker Container Gateways 11/16/2016 at 11:30 AM
DO3T12T Tech Talk: SaaS Portal: Advantages of deploying your developer portal in SaaS vs an on-premises solution 11/16/2016 at 12:15 PM
Pre-Con Ed: Workshop on Policy Creation, Management and Support for OAuth and OIDC
![Page 18: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/18.jpg)
21 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Must See Demos
Booth:API Management SaaSDeveloper Products Area Main Show Floor
CA API Developer Portal Developer Products Area Main Show Floor
Booth:
![Page 19: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/19.jpg)
22 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Questions?
![Page 20: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields](https://reader035.fdocuments.us/reader035/viewer/2022081605/5874140d1a28abcb5b8b4e97/html5/thumbnails/20.jpg)
23 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Thank you.
Stay connected at communities.ca.com