Publishing events from the Inventory service to IBM Cloud Object Storage
The events are published to IBM Cloud® Object Storage after the integration steps are completed. You can then download the data from IBM Cloud Object Storage for further processing.
- If you are using the Order Hub, see Configuring the endpoints for publishing events.
- If you are not using the Order Hub, contact IBM® Software Support.
- Bucket name
Filename prefix
- Endpoint URL. For more information, see Endpoints and storage locations.
- Authentication details
Authenticating IBM Cloud Object Storage
- API key credentials
- For more information, see IAM overview.
- HMAC credentials
- For more information, see Using HMAC credentials.
- HMAC access key
- HMAC secret key
- Region - For more information, see Endpoints and storage locations.
Processing files
- Get the number of files in an IBM Cloud Object Storage bucket.
- Download the files locally.
- Count the number of events in the files.
- Delete all files from the IBM Cloud Object Storage bucket.
For more information, see Getting started with IBM Cloud Object Storage.
Getting started with Software Development Kits
IBM Cloud Object Storage provides Software Development Kits (SDKs) for Java™, Python, NodeJS, and Go which can help you to make the most of IBM Cloud Object Storage to integrate to the Inventory Visibility event feed.
For instructions on downloading and installing the SDK and view code samples for running basic operations with object storage, see Getting started with the SDKs.
Java sample code
The Java sample code that is provided with Getting started with IBM Cloud Object Storage gives introductory examples of running the basic operations with Object Storage. This code example can be run multiple times because it uses Universally Unique Identifiers (UUIDs) for bucket and item names to prevent potential conflicts.
To run the code sample, you need to remove any angled brackets or other excess characters. You
also need to replace the endpoint, api-key,
resource-instance-id, and storage-class values with your endpoint
information.
Copy the Java code block from the Getting started with IBM Cloud Object Storage Code example section, replace the necessary values with your information, and run the code sample.
For more information, see Using Java.
Python sample code
The Python code sample that is provided with Getting started with IBM Cloud Object Storage gives introductory examples of running the basic operations with Object Storage. This code example can be run multiple times because it uses Universally Unique Identifiers (UUIDs) for bucket and item names to prevent potential conflicts.
To run the code sample, you need to remove any angled brackets or other excess characters. You
also need to replace the endpoint, api-key,
resource-instance-id, and storage-class values with your endpoint
information.
Copy the Python code block from the Getting started with IBM Cloud Object Storage Code example section, replace the necessary values with your information, and run the code sample.