Implementing Plans

After you create a plan, you implement it by setting rate limits and selecting gateways.

Setting a Plan Rate Limit

Rate limits are a way of giving applications more requests at higher cost levels.

Rate limits apply across all entitlements. For example, you have a plan with entitlements to three different APIs, and then set a rate limit of 1000 requests per minute. This means that requests to all three APIs combined cannot exceed 1000 per minute.

You can set multiple rate limit conditions. In this case, the most restrictive condition is the limiting factor. For example, you set two rate limit conditions, one for 1000 requests per second and another for 10000 requests per minute. The plan allows the full 10000 requests per minute, but if more than 1000 requests occur in any given second, the excess requests are rejected for that second.

To set a rate limit for a plan:
  1. On the Plans List page, click the plan for which you want to set a rate limit.
    The Settings page appears.
  2. The default rate limit for a plan is Unlimited Click Limited to set a specific rate limit.
  3. Click to enter number of requests.
  4. Click the list box and select the time interval. The options are Second, Minute, Hour, and Day.
    Click the Add Condition (+) icon to add another condition.
  5. Click Save.
    This image shows the Save button on the banner below the User menu.

Setting Plan Gateways

You can select one or multiple gateways through which the plan will allow the APIs to be invoked.

To set gateways for a plan:
  1. On the Plans List page, click the plan for which you want to set gateways.
    The Settings page appears.
  2. In the Gateways section, do one of the following:
    • Click the All option to allow the plan to invoke APIs through all gateways to which an API is deployed.
    • Click the Specific option to select specific gateways through which the plan can invoke APIs. Click in the field below the option to display a list and select a gateway. To select additional gateways, click in the field again to display the list and choose a gateway.
  3. Click Save.
    This image shows the Save button on the banner below the User menu.