Azure apimanagement with subscriptions on a subset of operations, is it possible? - azure-api-management

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

Related

BIM 360 API, PATCH users endpoint, services associated to an industry role are note applied

I am trying to apply roles for several users using the projects/:project_id/users/:user_id endpoint.
Roles are correctly assigned to each user, however the services associated to that roles are not applied at all.
As I see in several other sources, it seems to be a known limitation and I would like to know if there is any workaround I can use.
I can see that from the web interface, when a rol is selected a call to a /project_users/:project_id/update_member is invoked where a list of roles and services are posted and works as intended. Is there perhaps any undocumented endpoint I can use?
As you already found out, unfortunately, it is a known limitation, which we hear repeatedly. We can easily understandable use case in setting a project users. Sadly, we do not have a workaround. Here is a ID for the wish:
ACSADMIN-530 (was HQ-3034): “API wish: adding users beyond Docs”
Sorry for not being helpful here.

API call - the SMT category

I have recently tried to review the Chinese -> English system. According to https://blogs.msdn.microsoft.com/translation/2017/11/15/microsoft-translator-accelerates-use-of-neural-networks-across-its-offerings/ , those systems were already switched to NMT models. There is also statement, that user can still use the statistical system when setting category to "SMT".
However the https://blogs.msdn.microsoft.com/translation/2016/01/27/new-microsoft-translator-customization-features-help-unleash-the-power-of-artificial-intelligence-for-everyone/ mentions there were actually three standard categories available for SMT engines: General(default), TECH, SPEECH.
Could you please explain which domain is offered by the SMT category now? And for how long it will be supported on your side?
Thanks
We are working on customizaton using a neural network decoder. Currently, the Microsoft Translator Hub has 3 Category IDs for SMT and they are general, tech and speech.
With content that is not narrowly confined to your domain, you may find it to be better using category=generalnn than your current customization.
Chinese is using the NMT system so using Category=generalnn would result in the same translation when calling the service using the Microsoft Translator Text API.
The second article is addressing Customization where you can create your own custom translation system or dictionary tuned to your domain, style and terminology. If you're interested in customization (SMT at this time), there are categories associated with using the Translator Text API and the Microsoft Translator Hub. The category identifies the domain for the project you create using the Hub. Two of the categories are Tech and Speech.
See the Microsoft Translator Hub User Guide to learn more about the Hub.
The tech category will produce different results only when translating FROM English to other languages. In the case of English>Chinese, with my sample sentence "My computer doesn't boot up.", it does. For Chinese>English, specifying "tech" will fall back to the default, which is neural in the case of Chinese<>English. "speech" generates the same results as "generalnn" in all cases.
It is generally true, including for Hub categories, that a category that is valid in one language pair is valid in all language pairs. The API will fail with an "invalid category" error only if that category doesn't exist at all. The reason for this design is so that you can build your custom systems out language by language, over time, while still allowing the user to choose between all available languages, at the cost of, maybe, occasionally suboptimal domain vocabulary in an as of yet uncustomized language pair.
The API does not return to you whether a customized system was used or not. A trick to get that feature anyway is to watermark your custom system using a dictionary entry. Make a dictionary entry "_mywatermark" that translates to "CustomSystem180309_1700_en_ru" for instance, and then you can test anytime, in any application, whether you are getting your custom system or not.

using Azure Billing REST API for Pre-consumption cost analysis

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.

Reseller API seem to be underdeveloped?

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!

HelpSpot to Fogbugz to HelpSpot integration

Does anyone have a nice example of integration between HelpSpot and Fogbugz?
We're using HelpSpot as our customer facing software and ticket management, and then if a developer needs to work on a ticket the data will be pushed to Fogbugz.
Obviously we can use the Fogbugz push API that Userscape provides, but this only allows you to specify the title of the incident in Fogbugz. Ideally I want to share title, assigned to, category and status in a two-way integration.
Do most people just use emails between the two programs, or has anyone come across a nice third party app?
Thanks in advance!
I think you might get better help with this on the dedicated FogBugz StackExchange website.
The FogBugz API example in the HelpSpot docs can be modified to do what you want. What you can do is specify you're own format for the push box text. So have staff put the category on line one, a note on line 2, etc and then parse it in the FB push file and set it as needed.
For the HelpSpot --> FogBugz way: as far as I can see, the provided FogBugz push implementation is only an example which you can extend and customize to your needs.
If you look at the push function in RequestPush-FogBugz.php there are the parameters sending to FogBugz. You can set additional data in here (request attributes are specified in the HelpSpot documentation and FogBugz fields are specified in the FogBugz API documentation).
Of course you have to provide the mapping between users and other metadata (or e.g. use the exactly same usernames in FogBugz and HelpSpot).