List Rate limits
List Rate limits
GET
https://api.ocamba.com/v2/ocamba/developer/app/{id}/rate-limits/developer/app/{id}/rate-limits
Returns a list of Rate limits
Name
Descriptionidstringrequired
Unique identifier for the object defined as a path parameter.Example: 12345
Name
Descriptionfieldsstring
The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter.Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name
See "Tips" for the list of filterable parameters.
Example: fields=field1,field2,field3
viewstring
Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used.Note that the “fields” parameter has precedence over the “view” parameter.
Example: view=full/default
pagestring
The page number indicates which set of items will be returned in the response. The format of request is "page=N,M" where 'N' (required) represents page number and 'M' (optional) is number of items per page.Examples:
N=1, M=20 → returns page 1 with 20 items
N=2, M=20 → returns page 2 with 20 items (items 21-40)
N=3 → returns page 3. The number of objects returned depends on the resource settings.
Example: page=1,10
sortstring
Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix "-" for descending).Examples:
GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending
GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending
GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending
See tips for the list of sortable fields.
Example: sort=-field1,filed2
Response examples
>
200 - OK
200 - OK response
application/json
Name
Descriptionitems[ rate-limit ]
An array of all items.Rate limit
Name
Descriptionapp_idstring
A unique app identifier generated by the Ocamba platform.Example: 1001
create_timestring
Timezone: GMT.Example: 2021-10-29 12:47:00
descriptionstring
Rate limit descriptionExample: Default rate limits
idstring
A unique identifier generated by the Ocamba platform.Example: 101
metadatarate-limit-metadata
Define limitsRate limit metadata
Name
Descriptiondefaultobject
Name
Descriptiondaynumber (integer)
Maximum number of requests allowed per day.Example: 10
hournumber (integer)
Maximum number of requests allowed per hour.Example: 10
minutenumber (integer)
Maximum number of requests allowed per minute.Example: 10
parallelnumber (integer)
Maximum number of concurrent requests allowed at the same time.Example: 10
secondnumber (integer)
Maximum number of requests allowed per second.Example: 10
resource-nameobject
Name
Descriptionmethodobject
Name
Descriptiondaynumber (integer)
Maximum number of requests allowed per day.Example: 1000
hournumber (integer)
Maximum number of requests allowed per hour.Example: 350
minutenumber (integer)
Maximum number of requests allowed per minute.Example: 55
parallelnumber (integer)
Maximum number of concurrent requests allowed at the same time.Example: 22
secondnumber (integer)
Maximum number of requests allowed per second.Example: 10
namestring
Rate limit name.Example: C
update_timestring
Timezone: GMT.Example: 2021-10-30 14:27:26
totalinteger
A total number of items.Example: 1
>
500 - Internal Server Error
500 - Internal Server Error response
application/json
Name
Descriptioncodeinteger
Http response status code.Example: 500
messagestring
The human readable message that describes how to deal with error.Example: Internal server error.
titlestring
The error title.Example: Internal server error.
Response examples

Copied

200

{
"total": 1,
"items": [
{
"id": "101",
"app_id": "1001",
"name": "C",
"metadata": {
"default": {
"second": 10,
"minute": 10,
"hour": 10,
"day": 10,
"parallel": 10
},
"resource-name": {
"method": {
"second": 10,
"minute": 55,
"hour": 350,
"day": 1000,
"parallel": 22
}
}
},
"description": "Default rate limits",
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
]
}
{
"code": 500,
"title": "Internal server error.",
"message": "Internal server error."
}
Tip
1
1 Sortable field is name.
2
2 Searchable field is name.
3