Pull data from the Box API
Overview
Use the HTTP Pull Listener to collect data from the Box API. Currently, we support the events endpoint.
HTTP Pull Listener configuration
In Falcon Onum, go to the Listeners area and click New Listener > HTTP Pull. Give a name to your new Listener and enter the following data:
Parameters
N/A
Secrets
You must define these credentials in Onum:
client_idwill reference your Box Client ID.client_secretwill reference your Box Client Secret.
To do it, click Add element and enter a Name for the secret (in this case, client_id). Then, click the Value field and select 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.
You can now select the secret you just created in the Value field list. Repeat the process for the client_secret.
Learn more about secrets in Onum in this article.
Setup
After entering the required parameters and secrets, you can choose to manually enter the rest of configuration fields, or simply paste the given YAML:
Toggle ON the Config as YAML option to enable a free text field where you can paste the following YAML:
Temporal Window
Toggle ON to add a temporal window for events. This repeatedly shifts the time window over which data is collected.
Duration* -
30sOffset* -
30sFormat* -
RFC3339
Authentication
Toggle ON to configure the authentication phase.
Type* -
tokenToken Retrieve Baes Authentication
Request
Method* -
POSTURL* -
https://api.box.com/oauth2/token
Headers
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 -
'Bearer 'Suffix -
''
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
Response Type* -
JSONMethod* -
GETURL* -
https://api.box.com/2.0/eventsHeaders
Name -
AcceptValue -
Application/JSON
Query Params
Name -
stream_typeValue -
admin_logsName -
created_afterValue -
${temporalWindow.from}Name -
created_beforeValue -
${temporalWindow.to}Name -
limitValue -
100
Next request
Response Type* -
JSONMethod* -
GETURL* -
https://api.box.com/2.0/eventsHeaders
Name -
AcceptValue -
Application/JSON
Query Params
Name -
stream_typeValue -
admin_logsName -
stream_positionValue -
${pagination.cursor}Name -
created_afterValue -
${temporalWindow.from}Name -
created_beforeValue -
${temporalWindow.to}Name -
limitValue -
100
Output
Select* -
.entriesMap -
.Output Mode* -
element
When you're done, click Create labels to move on to the next step and define the required Labels if needed.
Last updated
Was this helpful?

