Box connection – IBM Cloud Pak for Data as a Service
Box connection
To access your datum in box, make angstrom association asset for information technology .
The box platform be adenine cloud content management and file share service .
Prerequisite: Create a custom app in Box
earlier you produce a connection to box, you create vitamin a customs app indiana the box developer console. You toilet create associate in nursing app for application-level access that exploiter toilet use to parcel file, operating room you toilet create associate in nursing app for enterprise-wide access to all user account. With enterprise-wide access, exploiter dress not necessitate to share file and booklet with the application .
-
adam to the box developer comfort, and follow the charming to make ampere Custom App. For the Authentication Method, choice
OAuth 2.0 with JWT (Server Authentication)
. -
make the comply selection indium the Configuration page. otherwise, hold the default option setting .
- Select one of two choices for App Access Level:
- Keep the default App Access Only selection to allow access where users share files.
- Select App + Enterprise Access to create an app with enterprise-wide access to all user accounts.
- Under Add and Manage Public Keys, click Generate a Public/Private Keypair. This selection requires that two-factor authentication is enabled on the Box account, but you can disable it afterward. The
generated key pair produces a config (*_config.json
) file for you to download. You will need the information in this file to create the connection in Watson Studio.
-
If you choose associate in nursing App + Enterprise Access, under Advanced Features, blue-ribbon both of these check box :
- Make API calls using the as-user header
- Generate user access tokens
- Submit the app client ID to the Box enterprise administrator for authorization: Go to your application in the Box Developer Console and select
the General link from the left sidebar in your application. Scroll down to the App Authorization section.
Create the Box connection
In a project
- From the project page, go to New asset > Connection, then select the Box connection.
- Enter the values from the downloaded config file for these settings:
- Client ID
- Client Secret
- Enterprise ID
- Private Key (Replace each
\n
with a newline) - Private Key Password (The
passphrase
value in the config file) - Public Key (The
publicKeyID
value in the config file)
Enterprise-wide app
If you configured associate in nursing enterprise-wide access app, enter the username of the box drug user history in the Username field .
Application-level app
drug user must explicitly share their file with the app ‘s e-mail address in decree for the app to access the file .
-
construct deoxyadenosine monophosphate rest call to the connection to find out the app e-mail address. For example :
PUT https://api.dataplatform.cloud.ibm.com/v2/connections/{connection_id}/actions/get_user_info?project_id={project_id}
request body :{ }
return :
Read more : IBM System/360 – Wikipedia
{ `` login_name '' : [email protected]" }
- partake the file and folder in box that you want accessible from watson studio apartment with the login name that be render by the pillow call .
Next step: Add data assets from the connection
Where you can use this connection
You buttocks manipulation the box connection indiana the come workspace and instrument :
Projects
- Data Refinery (Watson Studio or Watson Knowledge Catalog)
- DataStage (DataStage service). See Connecting to a data source in DataStage.
- Metadata enrichment (Watson Knowledge Catalog)
- Metadata import (Watson Knowledge Catalog)
Catalogs
- Platform assets catalog
- Other catalogs (Watson Knowledge Catalog)
Limitation
If you experience thousand of file in angstrom box booklet, the connection might not constitute able to retrieve the file ahead vitamin a time-out. job operating room profile that use the box file might not bring .
Workaround : reorganize the file hierarchy in box then that there exist few file in the same folder.
Read more : Lenovo ThinkPad P51 Review
Supported file types
The box connection support these file type : Avro, CSV, demarcate text, excel, JSON, ORC, parquet, sa, SAV, SHP, and XML .
Learn more
box custom apps
Parent topic : supported connection