Boomi Platform API Reference (1.0.0) - ApiUsageCount
You can use the API Usage Count object to query the number of APIs used in a specific time frame.
Required Privileges
Write access
- N/A
Read access
- API — Use the Boomi Platform API to access account data.
- ACCOUNT_ADMIN — Account configuration and administration.
Queries for an ApiUsageCount object(s)
For general information about the structure of QUERY filters, their sample payloads, and how to handle the paged results, refer to Query filters and Query paging.
Authorizations:
Request Body schema: optional
Possible properties include: processDate, classification, successCount, errorCount
required | object | ||||||||||
| |||||||||||
Responses
Response Schema:
| numberOfResults | integer <int32> |
| queryToken | string By default, the queryToken parameter is not available in the query response. It appears only when the query response contains more than 100 results. The maximum number of results returned per query is 100. To retrieve the next set of results, use the queryToken in the queryMore request. |
Array of objects (ApiUsageCount) |
Request samples
- Payload
{- "QueryFilter": {
- "expression": {
- "operator": "and",
- "nestedExpression": [
- {
- "argument": [
- "TEST"
], - "operator": "NOT_EQUALS",
- "property": "classification"
}, - {
- "argument": [
- "2017-09-01T00:00:00Z",
- "2017-09-07T00:00:00Z"
], - "operator": "BETWEEN",
- "property": "processDate"
}
]
}
}
}Response samples
- 200
- 403
- 410
- 503
{- "@type": "QueryResult",
- "result": [
- {
- "@type": "ApiUsageCount",
- "classification": "PROD",
- "processDate": "2017-09-01T04:00:00Z",
- "errorCount": 0,
- "successCount": 100
}, - {
- "@type": "ApiUsageCount",
- "classification": "PROD",
- "processDate": "2017-09-02T04:00:00Z",
- "errorCount": 0,
- "successCount": 4
}, - {
- "@type": "ApiUsageCount",
- "classification": "PROD",
- "processDate": "2017-09-03T04:00:00Z",
- "errorCount": 0,
- "successCount": 4
}, - {
- "@type": "ApiUsageCount",
- "classification": "PROD",
- "processDate": "2017-09-04T04:00:00Z",
- "errorCount": 0,
- "successCount": 100
}, - {
- "@type": "ApiUsageCount",
- "classification": "PROD",
- "processDate": "2017-09-05T04:00:00Z",
- "errorCount": 0,
- "successCount": 100
}, - {
- "@type": "ApiUsageCount",
- "classification": "PROD",
- "processDate": "2017-09-06T04:00:00Z",
- "errorCount": 0,
- "successCount": 100
}
], - "numberOfResults": 6
}Retrieves additional results for an ApiUsageCount query
To learn about using queryMore, refer to the topic Query paging.
Authorizations:
Request Body schema: text/plainrequired
Responses
Response Schema:
| numberOfResults | integer <int32> |
| queryToken | string By default, the queryToken parameter is not available in the query response. It appears only when the query response contains more than 100 results. The maximum number of results returned per query is 100. To retrieve the next set of results, use the queryToken in the queryMore request. |
Array of objects (ApiUsageCount) |
Response samples
- 200
- 403
- 410
- 503
{- "numberOfResults": 0,
- "queryToken": "string",
- "result": [
- {
- "classification": "PROD",
- "errorCount": 0,
- "processDate": "2019-08-24T14:15:22Z",
- "successCount": 0
}
]
}