Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables...

Post on 15-Apr-2017

128 views 1 download

Transcript of Pre-Con Ed: CA API Developer Portal: Policy Writing for the Portal Using the New Context Variables...

CA API Developer Portal: Policy Writing for the Portal Using Context Variables and Custom FieldsJay BagtasPrincipal Software EngineerCA Technologies

DO3X40E

DEVOPS

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

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

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

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

Introduction

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

Policy Entities

Encapsulated Assertion

Policy/Policy Fragment

Assertions

Context Variables

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

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

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

Example Policy Template/Encapsulated Assertion

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

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

Example API Custom Field/Service Properties Sub-head

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

Example Application Custom Field

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

Typical Use Cases

Authentication

Authorization

Routing

Rate limiting

API Protection

Metadata extension for APIs and Applications

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

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

Demo

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

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

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:

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

Questions?

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

Thank you.

Stay connected at communities.ca.com