I working on script to create Azure API through Powershell.
Mainly looking for to add/update API operation through Powershell script.
Can someone point to good documentation for that ?
please check out our REST API: https://msdn.microsoft.com/en-us/library/azure/dn776326.aspx?f=255&MSPPError=-2147217396
Related
I have a general query regarding creating a simple REST API using Google Cloud Functions in Python. Is it best practice to create a HTTP function for each endpoint or create one function which handles all the endpoints?
Also is it possible to use a custom URL for the function e.g. /api/v1/pets/
I wrote 2 articles on that topic, one in Python and the other in Golang.
But I can't recommend you to do that for real world workload, it's fun when you hack but not more. You can have a look to my first article that explain why I prefer Cloud Run to Cloud Function, and the local testing is the main argument that I can offer. Then portability.
Google Cloud only supports one event definition per
function. However, you could handle multiple definition by using same sources or use one trigger which has a response to call another function that combines different kind of events. You can refer to this GCP docs.
If you want to use a custom URL, you can check out Cloud Endpoints since it acts as an API Gateway for Cloud Functions.
I am trying to take a file from Google Cloud Storage and load it in to SQL using SSIS. I have no clue how to do this and I have not been able to find anything on how this can be done? Can anyone point me in the right direction?
I know there are paid solutions for integrating with google,
https://www.cdata.com/drivers/google/ssis/
Not sure about the reverse way but during some of my search, I have found that:
Google Cloud Storage has an API:
https://developers.google.com/storage/docs/xml-api-overview
I imagine you would end up with a Script Task component calling API
I am trying to accomplish the same as the GitHub link, anyone has experience and can suggest a successful best practice?
Google Apps Script to read JSON and write to sheet
Found it, for Python Python Bookshelf App from a previous stackoverflow article: Reading & Writing JSON file on Google Cloud Storage using Python, I believe there is the same for Java, have to review a bit more Java on Google Cloud Platform
I am working on an application that will be using the V2 Box API and have noticed that for some calls the response I get from the API differs from the documentation.
How do you want me to handle what I find?
Do you want me to post these points as individual topics here?
Or is there another way to provide the feedback?
You can send any documentation errors you find to API[at]BOXdotCOM.
I try to program a name generator script for various sample data entry jobs. What I need to do is the following:
Access the Google Maps Api and give me a random adress (in a specific city if possible)
Return Street and Zip Code (and City (see above))
Is that possible in Powershell? I was thinking about using the IE ComObj and just parse the dom of Google Maps but that seems so wasteful.
Any help would be great! Thanks :)
I'm not familiar with the Google maps API however it looks like you are just calling web services.
You can interact with web services in PowerShell. If the service communicates with SOAP you can use the New-WebServiceProxy cmdlet. If it is a REST service you can use the System.Net.WebRequest .NET class, here's an example. As noted in the linked answer, you will probably want a JSON library to process the service response. Also, this fella posted a JSON module on PoshCode that you might want to take a look at.
Also, a new cmdlet is being introduced in PowerShell V3 Invoke-RestMethod, which is currently in community technical preview...
Google map provides REST API's to use them in Powershell, you can call these using an Invoke-RestMethod cmdlet to get your task done. Infact I wrote a Googlemaps module in powershell and you can get the same from Powershell Gallery