Atom feed of this document
 

 3.7.3. Determining Limits Programmatically

Applications can programmatically determine current rate limits and absolute limits for an account using the following URIs:

Verb URI Description
GET /limits Return the current rate limits for the account.
GET /loadbalancers/absolutelimits Return the current absolute limits for the account.

Normal Response Code(s): 200

Error Response Code(s): loadbalancerFault (400, 500), serviceUnavailable (503), unauthorized (401), badRequest (400), overLimit (413)

These operations do not require a request body.

 

Example 3.5. List Rate Limits Response: XML

<limits xmlns="http://docs.openstack.org/common/api/v1.0">
    <rates>
        <rate uri="/v1.0/*" regex="^/1.0/.*">
            <limit
                verb="GET"
                value="600000"
                remaining="426852"
                unit="HOUR"
                next-available="2011-02-22T19:32:43.835Z"/>
        </rate>
    </rates>
</limits>

                    

 

Example 3.6. List Rate Limits Response: JSON

{
    "limits" : {
        "rate" : {
            "values": [
                {
                    "uri" : "/v1.0/*",
                    "regex" : "^/1.0/.*",
                    "limit" : [
                        {
                            "verb" : "GET",
                            "value" : 600000,
                            "remaining" : 426852,
                            "unit" : "HOUR",
                            "next-available" : "2011-02-22T19:32:43.835Z"
                        }
                    ]
                }
            ]
        }
    }
}

                    

 

Example 3.7. List Absolute Limits Response: XML

<limits xmlns="http://docs.openstack.org/loadbalancers/api/v1.0">
    <absolute>
        <limit name="IPV6_LIMIT" value="25"/>
        <limit name="LOADBALANCER_LIMIT" value="25"/>
        <limit name="BATCH_DELETE_LIMIT" value="10"/>
        <limit name="ACCESS_LIST_LIMIT" value="100"/>
        <limit name="NODE_LIMIT" value="25"/>
    </absolute>
</limits>

                    

 

Example 3.8. List Absolute Limits Response: JSON

{
    "absolute":
        [
            {"name":"IPV6_LIMIT","value":25},
            {"name":"LOADBALANCER_LIMIT","value":25},
            {"name":"BATCH_DELETE_LIMIT","value":10},
            {"name":"ACCESS_LIST_LIMIT","value":100},
            {"name":"NODE_LIMIT","value":25}
        ]
}

                    



loading table of contents...