Data added to a space is managed in a similar way to data added to a project. For example:
Adding data to a space creates a new copy of the asset and its attachments within the space, maintaining a reference back to the project asset. If an asset such as a data connection requires access credentials, they persist and are the same
whether you are accessing the data from a project or from a space.
Just like with data connection in a project, you can edit data connection details from the space.
Data assets are stored in a space in the same way that they are stored in a project. They use the same file structure for the space as the structure used for the project.
Adding data and connections to space by using UI
Copy link to section
To add data or connections to space by using UI:
From the Assets tab of your deployment space, click Import assets.
Choose between adding a connected data asset, local file, or connection to a data source:
If you want to add a connected data asset, select Connected data. Choose a connection and click Import.
If you want to add a local file, select Local file > Data asset. Upload your file and click Done.
If you want to add a connection to a data source, select Data access > Connection. Choose a connection and click Import.
The data asset displays in the space and is available for use as an input data source in a deployment job.
Note:
Some types of connections allow for using your personal platform credentials. If you add a connection or connected data that uses your personal platform credentials, tick the Use my platform login credentials checkbox.
Adding data to space programmatically
Copy link to section
If you are using APIs to create, update, or delete watsonx.ai Runtime assets, make sure that you use Data and AI Common Core API.
Data source reference types are referenced in watsonx.ai Runtime requests to represent input data and results locations. Use data_asset and connection_asset for these types of data sources:
Cloud Object Storage
Db2
Database data
Notes:
For Decision Optimization, the reference type is url.
Cloud Object Storage service can be used with deployment jobs through a connected data asset or a connection asset. To use data from the Cloud Object Storage service:
Create a connection to IBM Cloud Object Storage
by adding a Connection to your project or space and selecting Cloud Object Storage (infrastructure) or Cloud Object Storage as the connector. Provide the secret key, access key, and login URL.
Note:
When you are creating a connection to Cloud Object Storage or Cloud Object Storage (Infrastructure), you must specify both access_key and secret_key. If access_key and secret_key are
not specified, downloading the data from that connection doesn't work in a batch deployment job. For reference, see IBM Cloud Object Storage connection and IBM Cloud Object Storage (infrastructure) connection.
Add input and output files to the deployment space as connected data by using the Cloud Object Storage connection that you created.
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.