Object Store V2 Stats
home
An api for retrieving Object Store V2 usage statistics.
This API provides statistical usage data on your organizations usage of the Object Store V2 service. For example, you could retrieve data for how many API calls your organization is making to the Object Store v2 service on a monthly basis. More granular statistics will be available in future releases.
Full documentation for the Object Store V2 located at this link: https://docs.mulesoft.com/object-store/
Authentication
The Object Store v2 Stats API requires authentication with the Anypoint Platform Access Management API using client credentials.
- Grab your Client ID and Client Secret from the Anypoint Platform.
- Use the Object Store
/authorize API
endpoint to get an access token, using a body with the following parameters:- client_id
- client_secret
- grant_type (set to client_credentials)
- Once you have the access token, you can use that to make API calls to the Object Store v2 Stats using the Authorization header.
Example API calls
Retrieving organization usage statistics
Request:
curl -X GET \
-H 'authorization: Bearer 3a11f00b-b6a0-4b5f-b5a7-72d54fde4b2b' \
'https://object-store-stats.anypoint.mulesoft.com/api/v1/organizations/cfa7b584-d2ce-364d-b3b6-569d632879bc?startDate=2016-01-24T22%3A41%3A38.000Z&endDate=2018-01-24T22%3A41%3A38.000Z&period=1month'
Response:
[
{
"timeStamp": "2016-01-01T00:00:00Z",
"objectStoreRequestCount": 3442
},
{
"timeStamp": "2016-02-01T00:00:00Z",
"objectStoreRequestCount": 68772
},
{
"timeStamp": "2016-03-01T00:00:00Z",
"objectStoreRequestCount": 953
},
{
"timeStamp": "2016-04-01T00:00:00Z",
"objectStoreRequestCount": 3773652
},
{
"timeStamp": "2016-05-01T00:00:00Z",
"objectStoreRequestCount": 9563823
}
]
Support
Support for this API is provided through the Anypoint Platform support portal.