Publishing events from the Inventory service to Google Cloud Storage

Publish the events from the Inventory service to Google Cloud Storage by providing the following details in the IBM support case and request to configure the event subscriptions.

  • Bucket name
  • OptionalFilename prefix
  • Endpoint URL
  • Service Account JSON

Authenticating Google Cloud Storage

Create a service account and share the json file for the authentication. For more information, see Service accounts overview.

Refer to the following sample json file for authentication:
"service_account" : {
   "type": "service_account",
   "project_id": "project id",
   "private_key_id": "<private key>",
   "private_key": "-----BEGIN PRIVATE KEY-----\<private key removed>\n-----END PRIVATE KEY-----\n",
   "client_email": "<google generated email>.iam.gserviceaccount.com",
   "client_id": "<client id>",
   "auth_uri": "https://accounts.google.com/o/oauth2/auth",
   "token_uri": "https://oauth2.googleapis.com/token",
   "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
   "client_x509_cert_url": <provided cert URL>,
   "universe_domain": "googleapis.com"
}
Note:
  • Google generates the .json file automatically. Do not modify the .json sample manually.
  • If the scope is different from https://www.googleapis.com/auth/devstorage.read_write, the credentials must support writing to the bucket.

Getting started with Software Development Kits

For instructions on downloading and installing the SDK and view code samples for running basic operations with cloud storage, see Cloud Storage client libraries.