pre-con ed: ca api developer portal: policy writing for the portal using the new context variables...

20
CA API Developer Portal: Policy Writing for the Portal Using Context Variables and Custom Fields Jay Bagtas Principal Software Engineer CA Technologies DO3X40E DEVOPS

Upload: ca-technologies

Post on 15-Apr-2017

128 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables and API Key Custom Fields

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

23 © 2016 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Thank you.

Stay connected at communities.ca.com