Adding policies to your APIs

Google Cloud · Intermediate ·🛠️ AI Tools & Apps ·3y ago

Key Takeaways

This video demonstrates how to add policies to APIs in Apigee, specifically rate limiting and assigning message policies, to enforce security controls and customize API behavior.

Full Transcript

how can you add policies to an API proxy in apigee API management to enforce security controls this is the third in a series of introductory videos on apogee API management if you follow the first two you have apogee API management setup and you've created a pass-through proxy you've successfully invoked it now let's extend it in this video we will show you how to add a policy to perform rate limiting we'll see how to update policy configuration and we'll learn about request and response flows and we'll get a quick introduction to the apogee Community a great online resource for getting help let's go [Music] in the apogee UI navigate to the proxy list and the first proxy you created select the overview tab from here undeploy the proxy after that it will no longer be listening for inbound requests [Music] flip to the develop tab to modify the proxy here you can change any of the choices you made previously in the Wizard the base path and the target endpoint and you can add policies in apogee policies are reusable logic steps that perform a specific action on the request these can be enforced on the request flow after the proxy receives the inbound request but before the proxy connects with the target or on the response flow after the proxy receives the response from the target but before it sends that response to the original client let's add a rate limit policy I want apogee to enforce that on the request flow so I'll select the proxy endpoint the request pre-flow and click the icon to add a policy I need to create a new policy here there's a list to choose from all the built-in policy types their policies for caching credential verification Spike arrest threat protection and more each policy has different configuration options let's click the link to find documentation on the quota policy back in the apogee proxy editor I'll add a quota policy to enforce the rate limit each policy gets a name I'll name this one quota one then click create and add it to my flow here I see it displayed in the proxy editor clicking on the link I can see the pre-populated configuration for the quota policy showing lots of options the quota policy in apogee is remarkably flexible based on my reading of the documentation I'm going to replace that configuration with something simpler a basic configuration that tells apogee to allow four requests per minute now save the proxy as a new revision and deploy that revision again this will take a few moments after which the updated proxy will be handling inbound requests now I'll flip to my browser Tab and reload it several times after a few requests you can see that the rate limit gets enforced the error message tells the caller that a limit has been reached foreign if I like I can modify the quota configuration to allow oh maybe 100 requests per minute it's that easy and I can add another policy this one will execute in the response flow I want to add a few headers to the response that the client will receive describing the rate limits we use the assign message policy for that assigned message can manipulate any part of a request or response message including the headers and the documentation page for a sign message gives lots of examples save and deploy the new revision to get this new rate limit and the new response headers now flipping to my terminal window I can invoke the updated proxy from curl and yes we can see the new headers in the response there's a lot of flexibility with apogee if you ever need assistance you can visit the apogee community it's available right here at this icon it provides a knowledge base and a q a forum for all things apogee for example if you have a question on the quota policy it's easy to search or you can post a new question plenty of experts are willing to help you out [Music] let's wrap up in this video you learned about policies as the configurable logic that allows you to enforce controls on your API proxies you saw the proxy editor and you deployed new revisions of proxies with different policies you learned about the quota and assigned message policies and I showed you the apogee Community an invaluable support resource in the next video I'll cover how to add API key verification to an API proxy we'll see you there and don't forget to like And subscribe [Music]

Original Description

Policies help you protect your APIs from unauthorized access, enable you to control their behavior, and much more. In this video, we will show you how to add policies to your APIs in Apigee, how to create an API product, how to add a developer, how to register an app, and even how to call your API with an API key.
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Google Cloud · Google Cloud · 24 of 60

1 Top 3 ways organizations are adjusting their cloud strategies to prepare for economic uncertainty
Top 3 ways organizations are adjusting their cloud strategies to prepare for economic uncertainty
Google Cloud
2 Google Cloud Retail Search and Browse Console deep dive
Google Cloud Retail Search and Browse Console deep dive
Google Cloud
3 Google Cloud Backup and DR - How to mount, clone or restore a VMware VM
Google Cloud Backup and DR - How to mount, clone or restore a VMware VM
Google Cloud
4 Google Cloud Backup and DR - VMware vSphere Backup Overview
Google Cloud Backup and DR - VMware vSphere Backup Overview
Google Cloud
5 Google Cloud Backup and DR - Creating backup Plans for VMware VM backups
Google Cloud Backup and DR - Creating backup Plans for VMware VM backups
Google Cloud
6 Google Cloud Backup and DR - Compute Engine Instance Backups and Sole Tenant Nodes
Google Cloud Backup and DR - Compute Engine Instance Backups and Sole Tenant Nodes
Google Cloud
7 Google Cloud Backup and DR - Managing Service Accounts
Google Cloud Backup and DR - Managing Service Accounts
Google Cloud
8 Let’s solve for what’s next
Let’s solve for what’s next
Google Cloud
9 Google Cloud Executive Briefing Center | Cloud Space | Silicon Valley
Google Cloud Executive Briefing Center | Cloud Space | Silicon Valley
Google Cloud
10 Tinyclues with Google Cloud offers CRM Intelligence to maximize conversions
Tinyclues with Google Cloud offers CRM Intelligence to maximize conversions
Google Cloud
11 Aible partners with Google Cloud helping customers build predictive models within minutes
Aible partners with Google Cloud helping customers build predictive models within minutes
Google Cloud
12 TELUS streamlines big data ingestion with help from Google Cloud and Accenture
TELUS streamlines big data ingestion with help from Google Cloud and Accenture
Google Cloud
13 Getting started with Apigee API Management
Getting started with Apigee API Management
Google Cloud
14 Google Cloud Retail Search
Google Cloud Retail Search
Google Cloud
15 Building your first API proxy with Apigee
Building your first API proxy with Apigee
Google Cloud
16 Brands and agencies develop dynamic video ads with Connected-Stories NEXT and Google Cloud
Brands and agencies develop dynamic video ads with Connected-Stories NEXT and Google Cloud
Google Cloud
17 Redefining the transportation industry
Redefining the transportation industry
Google Cloud
18 Google Cloud Project Katalyst
Google Cloud Project Katalyst
Google Cloud
19 Israel's Family Court: Creating more compelling experiences for its citizens
Israel's Family Court: Creating more compelling experiences for its citizens
Google Cloud
20 Tausight partners with Google Cloud to help healthcare industry protect PHI activity & take action
Tausight partners with Google Cloud to help healthcare industry protect PHI activity & take action
Google Cloud
21 Google Cloud Retail Browse
Google Cloud Retail Browse
Google Cloud
22 Verifying API keys and debugging your API proxy flow
Verifying API keys and debugging your API proxy flow
Google Cloud
23 Getting started with Apigee API Management
Getting started with Apigee API Management
Google Cloud
Adding policies to your APIs
Adding policies to your APIs
Google Cloud
25 Google Cloud Backup and DR - Configuring Google Cloud VMware Engine to work with Backup and DR
Google Cloud Backup and DR - Configuring Google Cloud VMware Engine to work with Backup and DR
Google Cloud
26 Topaz Subsea Cable
Topaz Subsea Cable
Google Cloud
27 Episode 29: Building a culture of data literacy with Latin America’s biggest ecommerce platform
Episode 29: Building a culture of data literacy with Latin America’s biggest ecommerce platform
Google Cloud
28 Weshalb Datananalysten die Sparringspartner von Produktmanagern sein sollten
Weshalb Datananalysten die Sparringspartner von Produktmanagern sein sollten
Google Cloud
29 Warum und wie METRO eine Machine Learning-Pipeline implementiert hat
Warum und wie METRO eine Machine Learning-Pipeline implementiert hat
Google Cloud
30 Wie nutzt METRO Data Science, um geschäftliche Herausforderungen zu meistern?
Wie nutzt METRO Data Science, um geschäftliche Herausforderungen zu meistern?
Google Cloud
31 Google Cloud in Qatar. Let's get solving.
Google Cloud in Qatar. Let's get solving.
Google Cloud
32 Google Cloud for Qatar
Google Cloud for Qatar
Google Cloud
33 Doha has a new Google Cloud region
Doha has a new Google Cloud region
Google Cloud
34 The new Google Cloud region in Qatar
The new Google Cloud region in Qatar
Google Cloud
35 Build, tune, and deploy foundation models with Vertex AI
Build, tune, and deploy foundation models with Vertex AI
Google Cloud
36 Generative AI on Google Cloud
Generative AI on Google Cloud
Google Cloud
37 Who will be coming to Google Cloud Day Tel Aviv? #Shorts
Who will be coming to Google Cloud Day Tel Aviv? #Shorts
Google Cloud
38 Protect your organization at the edge
Protect your organization at the edge
Google Cloud
39 Google Cloud Backup and DR Alert Notifications setup
Google Cloud Backup and DR Alert Notifications setup
Google Cloud
40 Build, tune, and deploy foundation models with Generative AI Support in Vertex AI
Build, tune, and deploy foundation models with Generative AI Support in Vertex AI
Google Cloud
41 Where the Internet Lives: Data center on the prairie
Where the Internet Lives: Data center on the prairie
Google Cloud
42 Which developer program are you joining?
Which developer program are you joining?
Google Cloud
43 Lufthansa Group baut intelligente Systeme zur Vereinfachung des Flugbetriebs
Lufthansa Group baut intelligente Systeme zur Vereinfachung des Flugbetriebs
Google Cloud
44 How ASML revived Moore's Law and remade chipmaking
How ASML revived Moore's Law and remade chipmaking
Google Cloud
45 CMO of Unity celebrates Women's History Month
CMO of Unity celebrates Women's History Month
Google Cloud
46 Vint Cerf on Google Cloud Digital Leader
Vint Cerf on Google Cloud Digital Leader
Google Cloud
47 Mobile World Congress 2023
Mobile World Congress 2023
Google Cloud
48 Topaz - Canada
Topaz - Canada
Google Cloud
49 Google Data Cloud & AI Summit 2023: Reveal opportunities to transform your business
Google Data Cloud & AI Summit 2023: Reveal opportunities to transform your business
Google Cloud
50 Building a conversational bot with Google Cloud Gen App Builder
Building a conversational bot with Google Cloud Gen App Builder
Google Cloud
51 Elisa Polystar and Google Cloud partner to bring the power of analytics and automation to CSPs
Elisa Polystar and Google Cloud partner to bring the power of analytics and automation to CSPs
Google Cloud
52 Network modernization - how can CSPs start now?
Network modernization - how can CSPs start now?
Google Cloud
53 How Semios uses imported and remote models for inference with BigQuery ML
How Semios uses imported and remote models for inference with BigQuery ML
Google Cloud
54 Deliver your AI solutions up to 100 times faster with Google Cloud partner, Snorkel AI
Deliver your AI solutions up to 100 times faster with Google Cloud partner, Snorkel AI
Google Cloud
55 Capture consumer perspectives for CPG using NLP and analytics with Harmonya and Google Cloud
Capture consumer perspectives for CPG using NLP and analytics with Harmonya and Google Cloud
Google Cloud
56 Delivering Cloud-Native Network Transformation
Delivering Cloud-Native Network Transformation
Google Cloud
57 Proactively detect & investigate anomalies & data quality issues in BigQuery with Telmai
Proactively detect & investigate anomalies & data quality issues in BigQuery with Telmai
Google Cloud
58 Introducing AlloyDB Omni
Introducing AlloyDB Omni
Google Cloud
59 Episode 30: How Auto Trader transitioned to the cloud to analyze tricky customer data
Episode 30: How Auto Trader transitioned to the cloud to analyze tricky customer data
Google Cloud
60 MongoDB Atlas on Google Cloud
MongoDB Atlas on Google Cloud
Google Cloud

This video teaches how to add policies to APIs in Apigee to enforce security controls and customize API behavior. It covers rate limiting and assigning message policies, and demonstrates how to deploy new revisions of proxies with different policies.

Key Takeaways
  1. Navigate to the Apigee UI and select the proxy list
  2. Undeploy the proxy
  3. Modify the proxy in the Develop tab
  4. Add a rate limit policy to the request flow
  5. Configure the quota policy
  6. Save and deploy the new revision
  7. Test the rate limit
  8. Add an assign message policy to the response flow
  9. Configure the assign message policy
  10. Save and deploy the new revision
💡 Policies in Apigee are reusable logic steps that perform a specific action on the request or response, and can be used to enforce security controls and customize API behavior.

Related Reads

📰
Astro Chat That Starts With Your Kundli, Not a Generic Horoscope
Learn how Astro Chat uses Kundli for personalized astrology guidance, making it more effective than generic horoscopes
Dev.to AI
📰
The Docs Draft Pipeline: What an AI May Write and What You Must Own
Learn how to create a successful docs draft pipeline with AI assistance, understanding what AI can write and what you must own
Dev.to · Avery Lin
📰
Operationalizing the Splunk AI Assistant for Faster Triage and SPL Generation
Learn to operationalize the Splunk AI Assistant for faster triage and SPL generation, streamlining your workflow with AI-powered tools
Medium · AI
📰
CIOs are on notice – vSphere 8 times out in October 2027
Plan for AI and virtualization before vSphere 8 times out in October 2027
The Register
Up next
How to Get Your Brand Cited by ChatGPT, Claude and Gemini
Arvow
Watch →