Monitoring and Managing Your API with Microsoft Azure API Management

Note

This feature requires a Microsoft Azure subscription and account. If you do not already have an Azure subscription and account, you’ll want to sign up for one using the instructions found on Azure’s official website before attempting to implement this feature.

Microsoft Azure’s API Management platform allows you to easily upgrade your Thriftly APIs by taking advantage of advanced API management and monitoring features. With Azure, you can extend your APIs’ functionality, adding additional layers of business insights, analytics, security, and protection without writing any additional code.

A sample Thriftly API overview in Microsoft Azure

Using Thriftly’s built-in Web Services Description Language (WSDL) support (described in the Accessing Your API’s WSDL, WADL, or IDL topic), you can quickly import your Thriftly APIs into Azure API Management. Then, you can get started integrating advanced API features, such as throttling, custom authorization and authentication, metric tracking, and alerts, into your Thriftly APIs. Below, we’ll walk you through how to publish your Thriftly API to the Azure API Management platform.

Note

Want to learn more about Azure API Management before you get started? Click here to read Microsoft’s own overview.

To start using your Thriftly API with Azure API Management:

  1. If you don’t already have a Microsoft Azure account, you must create one and log in. Otherwise, log in to your existing account. Note that, in addition to having a valid Microsoft Azure account, you must also have a valid Azure subscription to use Azure API Management.
  2. From the Azure portal’s left-side sidebar, select All services. Then, search for and select API Management services.
Searching for Azure's API management module
  1. When the API Management services form appears, select Add. The API Management service form appears.
The API Management service form
  1. Using the information below, fill out the API Management service form:

    1. In the Name field, enter a name for your API Management service.
    2. In the Subscription field, enter your subscription plan. This field will likely auto-populate.
    3. Use the Resource Group section to create or select the resource group to use for this API.
    4. In the Location field, enter the geographic region in which you want to base your service. We recommend basing your service as close as possible to the Thriftly Gateway you use with your API, to increase your API’s performance. For example, if your API is deployed through Thriftly’s Texas Gateway, you should select South Central US here.
    5. In the Organization name field, enter your organization’s name.
    6. The Administrator email field should auto-populate with your email. If it doesn’t, enter your email.
    7. In the Pricing tier field, select the pricing tier you want to use for this service.
  2. Select the Create button to create your service.

  3. Your API Management service appears within the Azure portal. Now, you must create a new Azure API and add it to your service, using your Thrifly API’s Web Services Description Language (WSDL) specification. This will import your Thriftly API into Azure:

    Note

    You need to find and note your API’s service URL before performing this step, so you can create a WSDL in the steps below. To do so, open your endpoint’s info from within the Thriftly Configurator (by selecting the endpoint and then selecting the Endpoint Info button) and copy your service’s URL. In step c below, enter your service’s URL appended with ?wsdl to generate a WSDL.

    1. Select your newly created API Management service. Then, within the sidebar that appears to the right of your service’s name, select APIs.
    The APIs section of the API Management sidebar
    1. The Add a new API page appears. Select the WSDL tile. The Create from WSDL window appears, allowing you to import your API.
    The Create from WSDL window
    1. Use the following information to import your Thriftly API into Azure:

      1. In the Create from WSDL window’s WSDL specification field, paste the URL of your API’s WSDL.
      2. In the Import method section, select SOAP pass-through.
      3. The Display Name and Name fields should auto-populate with settings from your API’s WSDL. Adjust the entries in these fields if necessary.
      4. In the Description field, enter a description of your API.
      5. In the API URL suffix field, enter a unique suffix to append to your service’s web address for this API.
      6. If you already use Azure products and would like to add this API as part of a product, select that product in the Products field.
      7. Select Create.
  4. When your API appears in Azure, select it. You’ll see details about your API’s methods and design. You can also select Test from your API’s toolbar to get started testing your API within Azure.

Testing an API in Microsoft Azure

At this point, you can begin testing, monitoring, and managing your Thriftly API from within Microsoft Azure. You can also allow your own or outside developers to begin accessing your API through Azure, by publishing your API as part of an Azure product. For more information on everything you can do with Microsoft Azure, we’ll refer you to Microsoft’s own Azure API Management tutorials, where you can learn how to publish, monitor, throttle, protect, and debug your APIs.

If you have any questions about Thriftly’s Azure API Management integration, email them to us at support@thriftly.io. If necessary, we’ll update this page to include the answer to your question, so others can find the information in the future.