I am looking for Azure REST API that will help me calculate the cost of creating azure resources in advance.
I got Azure Billing REST API.
It certainly helps in getting the price of already created azure resources on monthly basis. But, I need it for
Pre-consumption cost analysis.
Kindly help me how to use the same to achieve the cost estimation without creating the resources.
Input: n number of VMs
output: the latest cost of the VM(with specific criteria)*n.
Thanks in advance.
Actually, the Azure Billing API provides all that information as well with its Resource RateCard call:
https://msdn.microsoft.com/en-us/library/azure/mt219005.aspx
Just make sure you provide the appropriate OfferDurableId as prices for resources depend on which plan you fall under.
Also, when sending your request, you might want to escape the apostrophes to %27 or the call might fail for you.
Related
I am planning out a new project in which I need to connect one particular Fiat payment gateway to my smart contract. I don't want to have a system with a centralized backend, so I am exploring the possibility to use Chainlink to communicate with API and then pass response to my smart contract. I know that Chainlink allows any contract to access any external data source through their decentralized oracle network. The problem is I can't approximate how much LINK it will cost me to get a response from 1 oracle. Is there some average cost of a 1 response from an oracle and what determines such cost
I tried to look up this information, but it does not seem that this topic is discussed much. Also probably I didn't look in the right place
The problem is I can't approximate how much LINK it will cost me to
get response from 1 oracle.
Nobody can. When you make a request to oracle, you are calling a smart contract function and this will cost you gas which varies depending on the congestion in the system. if system is busy, it will cost more gas. Also when you interact with the chainlink, you are actually passing data to chainlink smart contract which makes some calculations, so you pay for those gas too.
Calling one oracle is sending a request to one oracle. oracle is a chainlink node operator, and it set its own price. But sending a request to only one node is not a decentralized approach even though each node have multiple data resources. you should make a request to several nodes meaning that you need to pay each node operator. when you make a request to several nodes, you receive the average of those responses.
The service you want to use is Chainlink Any Api, and in the service the cost of LINK depends on the node operator you are using.
There is a fee required by node operator. When you send a request, you actually require Chainlink node to provide a service. Usually the service is not free and the fee of a request is set by the node operator. The fee varies across different node operators. If you are only a consumer to use service provided by node operators, you just need to check the fee of different node operators.
you, of course, also has to pay gas fee for your transaction, but that it it costed in ETH rather than LINK (as you asking how much LINK it will cost, I assume you know it).
If you are a node operator and want to run the service for yourself, you may want to consider the following 2 factors:
Congestion of the system mentioned by #Yilmaz. When the blockchain you are using is very busy, the gas price is high so that the more gas fee, which is the result of (gas price) x(gas limit), will be cost more.
The logic of fulfill function in your contract. Fulfillment function is the "callback" function of Chainlink Any Api. Oracle node will fetch the data demand in the request and then call the fulfill function in consumer contract. In fulfill function, logics varies from simply saving the data in a variable or doing some calculations. The more complex logics, the more gas limit required.
Hope it helps!
Setting up an API with Azure API management. We've created 2 products, one that requires subscription and one that don't. We did this as vi have a single API where we want some of the operations to required subscription and others where we don't. Is this possible in a single API or do we need to create two APIs? The issue with 2 APIs is that any prefix ala "/api" needs to be different, and we want it to look like a single API
This is not possible, unfortunately.
As stated in the documentation subscriptions only apply to Products and individual APIs.
Se this UserVoice suggestion where "Operation Visibility" is suggested.
Greetings from Denmark ;-)
/rasmus
When initializing the REST Google Drive API in an Android app, I need to 'poke' the server to produce the
UserRecoverableAuthIOException
In order to minimize the network traffic, I'm searching for the most 'lightweight' request that would produce such an exception. Currently, I use the following construct:
com.google.api.services.drive.Drive svc;
svc.files().get("root").setFields("title").execute();
basically pulling the 'root' name.
Is this the lowest amount of traffic that would do the job?
The amount of traffic that is generating is negligible.
It won't count as much at all.
Unless it's for academic purposes you won't achieve anything more from further optimizing for speed. There's a point where it stops being a bottleneck.
So yes that is quite likely the lightest way you can generate the UserRecoverableAuthIOException
I'm trying to use Googles reseller API to better control and operate our business.
The API can only list seats for Google-Apps-For-Business with an ANNUAL plan. This results in misleading statistics since a big part are FLEXIBLE.
There are no way to see which Google-Drive-storage has Assigned Licenses or how many.
Are there any way around this? - or any ideas behind it?
Have the API not been fully developed? - if so, when will it be?
Love to know.
Check out the planName and skuId properties on the subscription resource:
https://developers.google.com/google-apps/reseller/v1/reference/subscriptions#resource
That should get you Flex plan data, and also data related to Google Drive storage.
Some days ago, Google has finaly added the feature that was lacking!
Recently I found myself in need to perform large batch reverse-geocoding operations.
Large means something about 20k points per request.
I was looking at Nominatim as standalone server. But there is no clue in docs about batch requests (or I just couldn't find it).
Thus the questions is:
1: Could I perform something like this with Nominatim
2: If not - is there other standalone solutions [Not service. May be proprietary]. Main zone of interest is Europe, if it's relevant.
3: What will be approximate time consumption of such request.
Or I am facing building own geocoder above pgsql + postGIS?
thx in advance.
Not a current question, but in the absence of any answers.. There seem to be 2 main solutions. You can either:
use the Google geocoding API, but this will limit you to a check every few seconds, which will make large bulk geocoding very slow, or
download a comprehensive database of place names (such as http://www.geonames.org/), and use a GIS to calculate the nearest points to your data at whatever hierarchical level is most appropriate.