Collect data from Box
Box is a cloud-based content management, collaboration, and file sharing platform designed for businesses and enterprises.
Configuration
Parameters
N/A
Secrets
Enter a secret containing the Client ID that will be used for token authentication (referenced later as
${secrets.client_id}Enter a secret containing the Client Secret that will be used for basic authentication (referenced later as
${secrets.client_secret}
Open the Secret fields and click New secret to create a new one:
Give the secret a Name.
Turn off the Expiration date option.
Click Add new value and paste the secret corresponding to the value.
Click Save.


Learn more about secrets in Onum in this article.
You can now select the secret you just created in the corresponding fields.
After entering the required parameters and secrets, you can choose to manually enter the Box API fields, or simply paste the given YAML:
Toggle this ON to enable a free text field where you can paste your Box API YAML.
Temporal Window
Toggle ON to add a temporal window for events. This repeatedly shifts the time window over which data is collected.
Duration - 30 seconds (
30s)Offset -
30sFormat -
RFC3339
Authentication Phase
Toggle ON to configure the authentication phase.
Type* -
tokenRequest
Method* -
POSTURL* -
https://api.box.com/oauth2/tokenHeaders
Name -
Content-TypeValue -
application/x-www-form-urlencodedapplication/x-www-form-urlencodedBody Type -
urlEncodedBody Params
Name -
grant_typeValue -
client_credentialsName -
Client IDValue -
${secrets.client_id}Name -
Client SecretValue -
${secrets.client_secret}Name -
box_subject_idValue -
62685208Name -
box_subject_typeValue -
enterprise
Token path -
.access_tokenAuth injection
In -
headerName -
AuthorizationPrefix -
BearerSuffix -
''
Enumeration Phase
Toggle OFF
Collection Phase
Toggle ON to configure the collection phase. This API endpoint requires an initial request that will provide a list of alert ids. In order to get the details about that information, it will require an additional request for those details.
Pagination Type* -
cursorCursor Selector* -
.next_stream_positionInitial request
Method* -
GETURL* -
https://api.box.com/2.0/eventsHeaders
Name -
AcceptValue -
Application/JSON
Query Params
Name - stream_type
Value -
admin_logsName - Created_after
Value -
${temporalWindow.from}Name - Created_before
Value -
${temporalWindow.to}Name - limit
Value -
100
Next request
Method* -
GETURL* -
https://api.box.com/2.0/eventsHeaders
Name -
AcceptValue -
Application/JSON
Query Params
Name - Stream_type
Value -
admin_logsName - Stream_position
Value -
${pagination.cursor}Name - Created_after
Value -
${temporalWindow.from}Name - Created_before
Value -
${temporalWindow.to}Name - limit
Value -
100
Output
Select -
.entriesMap -
.Output Mode -
element
This HTTP Pull Listener now uses the data export API to extract events.
Click Create labels to move on to the next step and define the required Labels if needed.
Last updated
Was this helpful?

