This documentation is for WSO2 API Manager 1.9.0. View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Subscribers are not allowed to change these throttling tiers. They are simply notified of the limitations.
IP-level throttling

In IP-based throttling, you can limit the number of requests sent by a client IP (e.g., 10 calls from single client).

  1. Log in to the management console and click the Resources -> Browse menu.
  2. Navigate to the tiers.xml file in the registry location /_system/governance/apimgt/applicationdata.

  3. Add your policy. For example, the throttling policy shown below allows only 1 API call per minute for a client from 10.1.1.1 and 2 calls per minute for a client from any other IP address.

    Code Block
    languagexml
    <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"  
    
    xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">   
       <throttle:MediatorThrottleAssertion>    
       <wsp:Policy>            
           <throttle:ID throttle:type="IP">10.1.1.1</throttle:ID>            
           <wsp:Policy>                
             <throttle:Control>                    
               <wsp:Policy>                        
                  <throttle:MaximumCount>1</throttle:MaximumCount>                        
                  <throttle:UnitTime>60000</throttle:UnitTime>                    
               </wsp:Policy>                
            </throttle:Control>           
           </wsp:Policy>        
        </wsp:Policy>
         
    <wsp:Policy>            
    <throttle:ID throttle:type="IP">other</throttle:ID>            
    <wsp:Policy>                
    <throttle:Control>                    
    <wsp:Policy>                        
    <throttle:MaximumCount>2</throttle:MaximumCount>                        
    <throttle:UnitTime>60000</throttle:UnitTime>                   
     </wsp:Policy>                
    </throttle:Control>            
    </wsp:Policy>        
    </wsp:Policy>    
    </throttle:MediatorThrottleAssertion></wsp:Policy> 

...

API visibility and subscription

...

An API is made up of one or more resources. Each resource , each of which handles a particular type of request and is analogous to a method (function) in a larger API.     

Image Removed

an application. The diagram below shows a resource by the name CheckPhoneNumber added with four HTTP methods.

Image Added 

 API resources accept following attributes:  

...