AzureRM Application Gateway Rest API - ruby

I am trying to create Azure Application Gateway with SSL certification. I have successfully created it using Azure Power-Shell.
Now I want to create it using Rest APIs so that I can use/call them in my code (ruby). My question is: Is there any Rest API exist to create AzureRM Application Gateway? Because I am not able to find any. I've gone through the following link
https://msdn.microsoft.com/en-us/library/azure/mt420159.aspx
It has the APIs present for Application Gateway but for classic mode not for RM mode.

Now I want to create it using Rest APIs so that I can use/call them in
my code (ruby). My question is: Is there any Rest API exist to create
AzureRM Application Gateway? Because I am not able to find any
There's a REST API but at this moment it is not documented and hence you are not able to find it. As a workaround, what you could do is run PowerShell Cmdlets with -Debug switch. Then you will see the request URL as well as request body sent to create an Application Gateway. You can use that in your ruby code.

Related

Obtaining analytics data by using REST API calls on IBM API Connect Developer portal

I am looking for a way to fetch API Connect analytics data i.e. a number of requests of APIs exposed via API Connect, by which client, etc. I know, there is an individual dashboard/chart within API Connect. But, I want to build an explicit tool to monitor the same leveraging API Connect data on the IBM API Connect Developer portal. If anyone has the answer please reply to me.
With reference to the https://www.ibm.com/docs/en/api-connect/5.0.x?topic=veaaed-obtaining-analytics-data-by-using-rest-api-calls I have tried but my question is how without any authentication we get the data and if authentication requires then how can we call the API and fetch the data.
According to the doc, HTTP basic auth is required. Your post doesn't specify how you want to retrieve the data, but as an example from the command line using curl
curl -k -X GET -u 'username#company.com' -p 'somePassword' 'https://api-manager-server.company.com/v1/orgs/macs-shack/
environments/sb/events?after=2016-08-01T00:00:00.000&before=2016-09-30T23:59:59.999'

The application utilizing the gmail-api must run in Goolge Cloud Platform?

When I want to use Google's Gmail API within my web application in order to receive and send emails, then must this web application be deployed in the Google Cloud as a precondition and any on-premise hosting will fail? Is this the price one must pay to use it?
Your application's code can be hosted anywhere you want. However, you do need to create a Google Cloud account to create a project, enable the APIs and get the application credentials:
Cloud APIs use application credentials for identifying the calling applications. Credential types include API keys, OAuth 2.0 clients, and service accounts. You can use Google Cloud console to create, retrieve, and manage your application credentials. For more information about application credentials, see Authentication Overview.
Once you have your project's credentials you can just create the code within your current app and use the credentials wherever they are needed. You can refer to one of Google's quickstarts for that.
Sources:
Getting started with Google Cloud APIs
Developing on Google Workspace
Gmail API Overview

How to secure the call from Azure API Management to my Spring Boot REST API?

Largely, what I am trying to accomplish is explained in this video by Azure, which is the unsecured version of adding API keys to a REST API (specifically http://conferenceapi.azurewebsites.net/?format=json).
If you watch through the video, it seems great until you realize that anyone can call the "conferenceapi" as long as they know the url, essentially bypassing the entire purpose of Azure API Management which is controlling/metering peoples' access to an API.
My question is, if I'm trying to create the backend (so Spring Boot controllers) of my API Management service, what am I supposed to do in order to make sure that my REST api is only responding to requests made by API Management?
There is surprisingly little documentation on this that I could find:
Securing Backend Services behind Azure API Management
X.509 Authentication
How to secure back-end services using client certificate authentication in Azure API Management (literally only talks about how to upload a certificate and nothing about backend)
Like, a certificate sounds like a great idea. Only, how do I create the certificate, and how do I verify the certificate from a Spring Boot Application? Azure documentation feels so sparse, unless I didn't find the documentation that would address those questions.

Access SOAP request in AWS Lambda

I am working in IVR team. I write SOAP web services, write java client to access those web services and set data in the session variables of the CISCO API and IVR can then able to access that data. I am very good at this.
Currently, my manager plans to move from CISCO IVR to Amazon Connect. Amazon Connect has all infrastructure and IVR can be set up in 45 minutes.
My task is to access existing legacy SOAP web services(which has access to our databases) in AWS Lambda and give that data to IVR.
I went through all the documentation, but not able to figure out where to start. Could some one give me guidance on where to start.
Here's an article about calling SOAP services from a Lambda function, with a walkthrough of the process: https://blog.codecentric.de/en/2016/12/serverless-soap-legacy-api-integration-java-aws-lambda-aws-api-gateway/
It goes further than what you may need, adding API gateway on top of the Lambda function. You may not need that if you're just planning to call those Lambda functions from Connect.
There's also an article in Connect documentation on integrating with Lambda: http://docs.aws.amazon.com/connect/latest/adminguide/connect-lambda-functions.html

How to hide web service API key?

I'm using oracle apex 4.2.6.
I have a web service that I want to use. ( Web service is not mine )
I need to hide the API key when calling it. I want to know how.
Can I create my own web service that will call this one and then send my API key with the call? If yes , how?
You have 2 ways to consume web services on the back-end (and hiding your api key).
1) Under Shared Components --> Web server reference --> Create
You can consume REST / Based on WSDL and Custom. Then you can reference the Web service in your APEX application and the back-end does the call.
2) Create a custom PL/SQL function/procedure that uses UTL_TCP or UTL_DBWS (or UTL_HTTP if it's a simple REST service) to call the web-service and crunch the response.
http://www.oraclecafe.com/2014/08/calling-wsdl-webservice-from-plsql/
If the web service is simple then going with option 1) would be the quickest way.
Creating and Using a Manual SOAP Web Service in Your Application

Resources