SlideShare uma empresa Scribd logo
1 de 11
MANAGE AND
CONSUME THE API
By
Achyuta
Laxmi
Overview
 Introduction
 Apply Rate Limiting Policy
 Create SLA Tiers
 Add a Rate Limiting SLA-based Policy
 Create an API Portal
 Request Access for the API
 Conclusion
INTRODUCTION
The Anypoint API Manager is an API policy
management and governance tool that is integrated with
the API Gateway.It utilize the secure connection
between the API Gateway and API Manager to
configure policies that will allow us to manage security,
quality of service, and compliance policies for your APIs.
APPLY RATE LIMITING POLICY
To test policy management, you will add a Rate Limiting Policy to the API.
a. Go to the Mobile Experience API Administration page.
b. Click the Policies tab under the API definitions.
c. Click on Apply for the Rate Limiting Policy.
d. Enter a maximum requests of 3 per Minute as shown and click Apply.
e. You should see the Rate limiting policy now under Applied Policies.
f. Test the API using your browser or using ARC and access your
CloudHub URL
g. Wait for a few seconds (the API Gateway receives policy updates every
5 seconds by default).
h. Test it again by reloading the browser 4 times.
On the 4th invocation you will get a message indicating API Calls
Exceeded. This demonstrates your Rate Limiting policy has been applied.
i. Remove the Rate Limiting Policy after your test by clicking the
Remove button.
CREATE SLA TIERS
In the API Manager access can be based on SLA tiers set
by the API owner. However, this is optional. As we
demonstrated in the previous step, it is possible to provide
access without any SLA tiers. An API owner can establish
pre-defined SLA tiers that consumers can view and choose
from when they request access to the API. If no SLA tiers
are defined for an API, the application owner can request
access without an SLA tier.
a. Click the SLA Tiers tab on your API Version Details
page
b. Click Add SLA tier
ADD A RATE LIMITING SLA-
BASED POLICY
To enforce SLA tiers, you need to apply a rate-limiting or
throttling policy that is SLA-based. These policies require all
applications that consume your API to register for a specific tier.
Their client credentials will be required for each API call so that
the Anypoint Platform can properly enforce the contracted tier.
a. Click the Policies tab to view the list of available policies for
your organization. Select individual policies to read their
descriptions.
b. Click Apply on the Rate limiting - SLA based policy.
c. Click Apply to accept the default configuration for the Rate
limiting SLA based policy.
d. Expand the policy to see details about the policy. In this case
you see the policy requires Client ID and Client Secret. You
can see these properties are obtained from the
http.query.params.
CREATE AN API PORTAL
Now we are going to create a basic API portal. The portal will enable a
self-service API access registration process where consumers can request
access with an associated service level. A later lab will explore more
advanced API capabilities.
a. Scroll back up to the top of the API configuration page.
b. Click on the No Portal drop down and choose Create new portal. You
will be brought to a page to edit your new portal.
c. This will create a new API portal page. Now you can add the
components desired for your API.
d. Click the Add drop down to see a list of options that you have in your
API Portal for managing content. At this point, we will not be creating
anything. This is just to satisfy your curiosity about what can be
added.
e. Click on the ‘A’ to add text to the page
f. Add the following text to the page.
g. The Mobile Experience API provides API resources for Mythical
Corporation's Mobile Commerce application.
h. Click Save.
REQUEST ACCESS FOR THE API
You now have a portal page for the API that explains what it does and will
allow Developers to register to use it.
The live portal view will allow application owners to request a client_id to
access this or any other APIs published here.
In the top right corner of the portal, select Request API Access.
Click on New application.
Complete the new application dialog as shown above.
When finished, click Add.
Since we have tiers associated with our API we also need to select a tier.
Choose the Trial tier.
Click on the Request API Access button.
By default, all API requests will be approved for the Trial SLA tier. You’ll
see your Client ID and Client secret.
Record these values as you will use them in the next step to invoke the
API.
Go to your email
You should see the above registration email indicating you have been
auto-approved.
CONCLUSION
We saw the capabilities around managing APIs and applying
policies to enforce security and governance around your API
giving you better control. We easily applied rate limiting
policies and added SLA tiers giving you the ability to scale
with easier management and operations. We created a basic
API portal for providing easy access to your APIs and we
tested how to use consumer credentials to access your APIs
that were provisioned based on SLAs.
THANK YOU

Mais conteúdo relacionado

Mais procurados

Mais procurados (16)

Mulesoft Salesforce Connector - OAuth 2.0 JWT Bearer
Mulesoft Salesforce Connector -  OAuth 2.0 JWT BearerMulesoft Salesforce Connector -  OAuth 2.0 JWT Bearer
Mulesoft Salesforce Connector - OAuth 2.0 JWT Bearer
 
Query Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESBQuery Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESB
 
Salesforce Integration using Mule ESB
Salesforce Integration using Mule ESBSalesforce Integration using Mule ESB
Salesforce Integration using Mule ESB
 
Anypoint b2 b
Anypoint b2 bAnypoint b2 b
Anypoint b2 b
 
Integrate facebook using mule esb
Integrate facebook using mule esbIntegrate facebook using mule esb
Integrate facebook using mule esb
 
Mule add contacts into salesforce
Mule add contacts into salesforceMule add contacts into salesforce
Mule add contacts into salesforce
 
Integrate with linked in
Integrate with linked inIntegrate with linked in
Integrate with linked in
 
Mulesoft intergrate for android app
Mulesoft intergrate for android appMulesoft intergrate for android app
Mulesoft intergrate for android app
 
Mule Salesforce Connector
Mule Salesforce ConnectorMule Salesforce Connector
Mule Salesforce Connector
 
Mule esb stripe
Mule esb stripeMule esb stripe
Mule esb stripe
 
Anypoint platform for API's glossary
Anypoint platform for API's glossaryAnypoint platform for API's glossary
Anypoint platform for API's glossary
 
Mule roles
Mule rolesMule roles
Mule roles
 
Anypoint platform highlights
Anypoint platform highlightsAnypoint platform highlights
Anypoint platform highlights
 
Mule cloud hub console overview
Mule   cloud hub console overviewMule   cloud hub console overview
Mule cloud hub console overview
 
Integration with sales force
Integration with sales forceIntegration with sales force
Integration with sales force
 
Integration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBIntegration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESB
 

Destaque

Destaque (20)

Content based routing tutorial in mule
Content based routing tutorial in muleContent based routing tutorial in mule
Content based routing tutorial in mule
 
Sap
SapSap
Sap
 
Mulesoft cloudhub
Mulesoft cloudhubMulesoft cloudhub
Mulesoft cloudhub
 
Mule Choice component
Mule Choice component Mule Choice component
Mule Choice component
 
Error handling in mule
Error handling in muleError handling in mule
Error handling in mule
 
Mule esb anypoint studio Tour
Mule esb anypoint studio TourMule esb anypoint studio Tour
Mule esb anypoint studio Tour
 
Github plugin setup in anypoint studio
Github plugin setup in anypoint studio Github plugin setup in anypoint studio
Github plugin setup in anypoint studio
 
Dataweavewithflowreflookup
DataweavewithflowreflookupDataweavewithflowreflookup
Dataweavewithflowreflookup
 
Using maven with mule
Using maven with muleUsing maven with mule
Using maven with mule
 
Mule JMS transport
Mule JMS transportMule JMS transport
Mule JMS transport
 
Mule addcontactsintosalesforce
Mule addcontactsintosalesforceMule addcontactsintosalesforce
Mule addcontactsintosalesforce
 
Web service vm in mule
Web service vm in muleWeb service vm in mule
Web service vm in mule
 
Simple Java component in Mule
Simple Java component in MuleSimple Java component in Mule
Simple Java component in Mule
 
Mule messages and transformers
Mule messages and transformersMule messages and transformers
Mule messages and transformers
 
Mule expression language
Mule expression languageMule expression language
Mule expression language
 
Choice router mule
Choice router   muleChoice router   mule
Choice router mule
 
Mule esb parts
Mule esb partsMule esb parts
Mule esb parts
 
Raml api designer
Raml   api designerRaml   api designer
Raml api designer
 
Cloudhub Mulesoft
Cloudhub MulesoftCloudhub Mulesoft
Cloudhub Mulesoft
 
Configuration patterns in mule
Configuration patterns in muleConfiguration patterns in mule
Configuration patterns in mule
 

Semelhante a Manage and consume the api

Manage your ap is securely and easily ibm apim 4.0
Manage your ap is securely and easily ibm apim 4.0Manage your ap is securely and easily ibm apim 4.0
Manage your ap is securely and easily ibm apim 4.0
sflynn073
 
Api management introduction and product overview v1.0 2014.08.28
Api management introduction and product overview v1.0 2014.08.28Api management introduction and product overview v1.0 2014.08.28
Api management introduction and product overview v1.0 2014.08.28
floridawusergroup
 

Semelhante a Manage and consume the api (20)

MuleSoft_Meetup__Official_August-2022.pptx
MuleSoft_Meetup__Official_August-2022.pptxMuleSoft_Meetup__Official_August-2022.pptx
MuleSoft_Meetup__Official_August-2022.pptx
 
Connection flows
Connection flowsConnection flows
Connection flows
 
Integrating Third-Party APIs with WordPress Tips and Pitfalls
Integrating Third-Party APIs with WordPress Tips and PitfallsIntegrating Third-Party APIs with WordPress Tips and Pitfalls
Integrating Third-Party APIs with WordPress Tips and Pitfalls
 
A Practical Guide to Automating End-to-End API Testing
A Practical Guide to Automating End-to-End API TestingA Practical Guide to Automating End-to-End API Testing
A Practical Guide to Automating End-to-End API Testing
 
apidays LIVE JAKARTA - The modern digital with API Economy Ecosystems by Hari...
apidays LIVE JAKARTA - The modern digital with API Economy Ecosystems by Hari...apidays LIVE JAKARTA - The modern digital with API Economy Ecosystems by Hari...
apidays LIVE JAKARTA - The modern digital with API Economy Ecosystems by Hari...
 
Shopify App Developments RoadMap2024.pptx
Shopify App Developments RoadMap2024.pptxShopify App Developments RoadMap2024.pptx
Shopify App Developments RoadMap2024.pptx
 
Manage your ap is securely and easily ibm apim 4.0
Manage your ap is securely and easily ibm apim 4.0Manage your ap is securely and easily ibm apim 4.0
Manage your ap is securely and easily ibm apim 4.0
 
Api management introduction and product overview v1.0 2014.08.28
Api management introduction and product overview v1.0 2014.08.28Api management introduction and product overview v1.0 2014.08.28
Api management introduction and product overview v1.0 2014.08.28
 
Introduction to API
Introduction to APIIntroduction to API
Introduction to API
 
Your Journey with AWS as an APN partner and APN Resources to Help You
Your Journey with AWS as an APN partner and APN Resources to Help YouYour Journey with AWS as an APN partner and APN Resources to Help You
Your Journey with AWS as an APN partner and APN Resources to Help You
 
What is API Testing_ .pdf
What is API Testing_ .pdfWhat is API Testing_ .pdf
What is API Testing_ .pdf
 
#APIOps- Agile API Development powered by API Connect
#APIOps- Agile API Development powered by API Connect#APIOps- Agile API Development powered by API Connect
#APIOps- Agile API Development powered by API Connect
 
Deploy Alexa for Business in Your Organization & Build Your First Private Ski...
Deploy Alexa for Business in Your Organization & Build Your First Private Ski...Deploy Alexa for Business in Your Organization & Build Your First Private Ski...
Deploy Alexa for Business in Your Organization & Build Your First Private Ski...
 
How to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdfHow to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdf
 
Do you know How to Effectively Test APIs.pdf
Do you know How to Effectively Test APIs.pdfDo you know How to Effectively Test APIs.pdf
Do you know How to Effectively Test APIs.pdf
 
Accelerating Software Product Development with API Testing
Accelerating Software Product Development with API TestingAccelerating Software Product Development with API Testing
Accelerating Software Product Development with API Testing
 
Nader Dabit - Connecting Mobile & Web Applications to AWS AppSync.pdf
Nader Dabit -  Connecting Mobile & Web Applications to AWS AppSync.pdfNader Dabit -  Connecting Mobile & Web Applications to AWS AppSync.pdf
Nader Dabit - Connecting Mobile & Web Applications to AWS AppSync.pdf
 
How to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdfHow to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdf
 
Gravitee API Management - Ahmet AYDIN
 Gravitee API Management  -  Ahmet AYDIN Gravitee API Management  -  Ahmet AYDIN
Gravitee API Management - Ahmet AYDIN
 
apidays LIVE Hong Kong 2021 - Headless API Management by Snehal Chakraborty, ...
apidays LIVE Hong Kong 2021 - Headless API Management by Snehal Chakraborty, ...apidays LIVE Hong Kong 2021 - Headless API Management by Snehal Chakraborty, ...
apidays LIVE Hong Kong 2021 - Headless API Management by Snehal Chakraborty, ...
 

Último

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 

Último (20)

The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 

Manage and consume the api

  • 1. MANAGE AND CONSUME THE API By Achyuta Laxmi
  • 2. Overview  Introduction  Apply Rate Limiting Policy  Create SLA Tiers  Add a Rate Limiting SLA-based Policy  Create an API Portal  Request Access for the API  Conclusion
  • 3. INTRODUCTION The Anypoint API Manager is an API policy management and governance tool that is integrated with the API Gateway.It utilize the secure connection between the API Gateway and API Manager to configure policies that will allow us to manage security, quality of service, and compliance policies for your APIs.
  • 4.
  • 5. APPLY RATE LIMITING POLICY To test policy management, you will add a Rate Limiting Policy to the API. a. Go to the Mobile Experience API Administration page. b. Click the Policies tab under the API definitions. c. Click on Apply for the Rate Limiting Policy. d. Enter a maximum requests of 3 per Minute as shown and click Apply. e. You should see the Rate limiting policy now under Applied Policies. f. Test the API using your browser or using ARC and access your CloudHub URL g. Wait for a few seconds (the API Gateway receives policy updates every 5 seconds by default). h. Test it again by reloading the browser 4 times. On the 4th invocation you will get a message indicating API Calls Exceeded. This demonstrates your Rate Limiting policy has been applied. i. Remove the Rate Limiting Policy after your test by clicking the Remove button.
  • 6. CREATE SLA TIERS In the API Manager access can be based on SLA tiers set by the API owner. However, this is optional. As we demonstrated in the previous step, it is possible to provide access without any SLA tiers. An API owner can establish pre-defined SLA tiers that consumers can view and choose from when they request access to the API. If no SLA tiers are defined for an API, the application owner can request access without an SLA tier. a. Click the SLA Tiers tab on your API Version Details page b. Click Add SLA tier
  • 7. ADD A RATE LIMITING SLA- BASED POLICY To enforce SLA tiers, you need to apply a rate-limiting or throttling policy that is SLA-based. These policies require all applications that consume your API to register for a specific tier. Their client credentials will be required for each API call so that the Anypoint Platform can properly enforce the contracted tier. a. Click the Policies tab to view the list of available policies for your organization. Select individual policies to read their descriptions. b. Click Apply on the Rate limiting - SLA based policy. c. Click Apply to accept the default configuration for the Rate limiting SLA based policy. d. Expand the policy to see details about the policy. In this case you see the policy requires Client ID and Client Secret. You can see these properties are obtained from the http.query.params.
  • 8. CREATE AN API PORTAL Now we are going to create a basic API portal. The portal will enable a self-service API access registration process where consumers can request access with an associated service level. A later lab will explore more advanced API capabilities. a. Scroll back up to the top of the API configuration page. b. Click on the No Portal drop down and choose Create new portal. You will be brought to a page to edit your new portal. c. This will create a new API portal page. Now you can add the components desired for your API. d. Click the Add drop down to see a list of options that you have in your API Portal for managing content. At this point, we will not be creating anything. This is just to satisfy your curiosity about what can be added. e. Click on the ‘A’ to add text to the page f. Add the following text to the page. g. The Mobile Experience API provides API resources for Mythical Corporation's Mobile Commerce application. h. Click Save.
  • 9. REQUEST ACCESS FOR THE API You now have a portal page for the API that explains what it does and will allow Developers to register to use it. The live portal view will allow application owners to request a client_id to access this or any other APIs published here. In the top right corner of the portal, select Request API Access. Click on New application. Complete the new application dialog as shown above. When finished, click Add. Since we have tiers associated with our API we also need to select a tier. Choose the Trial tier. Click on the Request API Access button. By default, all API requests will be approved for the Trial SLA tier. You’ll see your Client ID and Client secret. Record these values as you will use them in the next step to invoke the API. Go to your email You should see the above registration email indicating you have been auto-approved.
  • 10. CONCLUSION We saw the capabilities around managing APIs and applying policies to enforce security and governance around your API giving you better control. We easily applied rate limiting policies and added SLA tiers giving you the ability to scale with easier management and operations. We created a basic API portal for providing easy access to your APIs and we tested how to use consumer credentials to access your APIs that were provisioned based on SLAs.