<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Michał Zych on Medium]]></title>
        <description><![CDATA[Stories by Michał Zych on Medium]]></description>
        <link>https://medium.com/@michal.zych?source=rss-6bd620fa8359------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Michał Zych on Medium</title>
            <link>https://medium.com/@michal.zych?source=rss-6bd620fa8359------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:40:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@michal.zych/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Creating a Catalog with REST API in IBM watsonx.data]]></title>
            <link>https://medium.com/@michal.zych/creating-a-catalog-with-rest-api-in-ibm-watsonx-data-9f9b6715018a?source=rss-6bd620fa8359------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f9b6715018a</guid>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[ibm-cloud]]></category>
            <category><![CDATA[ibm-cloud-pak-for-data]]></category>
            <dc:creator><![CDATA[Michał Zych]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 13:46:10 GMT</pubDate>
            <atom:updated>2026-08-25T14:34:32.469Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating a Catalog with REST API in IBM watsonx.data Intelligence - The Bucket Types That Make It Work</h3><p><em>By </em><a href="https://medium.com/u/6bd620fa8359"><em>Michał Zych</em></a><em> and </em><a href="https://medium.com/u/1ba8f2a247aa"><em>Andrzej Wrobel</em></a></p><p>A practical guide to leverage IBM watsonx.data Intelligence REST API to create catalogs, the differences between on-premises and cloud instances.</p><p><strong>Introduction</strong></p><p>A catalog in IBM watsonx.data Intelligence is the central container for data assets, governed by metadata, classifications, and business terms. Whether you’re deploying on IBM Cloud Pak for Data (CPD) on-premises or using the fully managed SaaS offering on IBM Cloud or AWS, every catalog requires a storage backend — a <em>bucket</em> — where asset files are physically stored.</p><p>The good news: the API endpoint is the same everywhere. The payload is not.</p><p>This article walks through the POST /v2/catalogs REST API call for all three environments, explains the three available bucket types you might come across and shows the exact differences in the request body.</p><p><strong>The Catalog endpoint</strong></p><p>A catalog is created through a single endpoint:</p><pre>POST {host}/v2/catalogs?check_bucket_existence=false</pre><p>The check_bucket_existence=false query parameter tells the API not to validate whether the bucket already exists before creating the catalog record — useful in automation where the bucket is created in the same pipeline.</p><p>Authentication is by a Bearer token in the Authorization header:</p><pre>Authorization: Bearer &lt;your_token&gt;<br>Content-Type: application/json</pre><p>For a practical walkthrough of how Bearer token authentication is used in IBM watsonx.data Intelligence REST API calls — including catalog export and import workflows — see <a href="https://medium.com/@andrzej.wrobel/exporting-glossary-data-to-a-zip-format-in-watson-knowledge-catalog-dd4b785b5d47">Exporting Glossary Data to a ZIP Format in Watson Knowledge Catalog.</a></p><p><strong>The Bucket Types</strong></p><p>The bucket_type field in the request body determines what storage backend the catalog uses. There are three options available:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*Xi2xuJqoZzfFPt0qg1c0zg.jpeg" /></figure><ul><li><strong>Asset Files — CPD On-Premises</strong></li></ul><p>On-premises CPD stores asset files on an internal cluster volume. No external bucket or credentials are necessary. The payload is simplest of all three:</p><pre>{<br>  &quot;name&quot;: &quot;My Catalog&quot;,<br>  &quot;generator&quot;: &quot;catalog@ibm.com&quot;,<br>  &quot;description&quot;: &quot;Created via REST API&quot;,<br>  &quot;bucket&quot;: {<br>    &quot;bucket_type&quot;: &quot;assetfiles&quot;<br>  }<br>}</pre><p><strong>Why no bucket credentials?</strong> CPD manages the internal file storage transparently. The catalog API allocates the storage automatically based on the cluster configuration — you never interact with it directly.</p><p><strong>Initializing the root directory — CPD On-Premises only</strong></p><p>When a catalog is created via REST API on CPD on-premises with bucket_type: assetfiles, the internal asset file storage is allocated but its root directory is not automatically initialized. Without this step, operations that depend on the file store — such as importing a ZIP, exporting a catalog or creating local file assets will fail.</p><p>Root directory initialization is a PUT to the asset files endpoint, authenticated with a service ID retrieved from the cluster (not the user Bearer token):</p><pre>PUT {host}/v2/asset_files?catalog_id={catalog_id}<br><br>Authorization: Basic &lt;service_id&gt;<br>Content-Type: application/json<br><br>{}</pre><p>The service ID is a cluster-internal credential stored in the wdp-service-id OpenShift secret, base64-encoded:</p><pre>oc get secret wdp-service-id \<br>  --output=jsonpath=&#39;{.data.service-id-credentials}&#39; | base64 --decode</pre><blockquote>This step is only required for catalogs created via the REST API on CPD on-premises. Catalogs created through the CPD UI initialize the root directory automatically. On IBM Cloud or AWS (COS/S3 buckets), this step is not needed — the cloud storage backend handles initialization.</blockquote><ul><li><strong>IBM Cloud Object Storage (COS) — IBM Cloud SaaS</strong></li></ul><p>On IBM Cloud, catalogs are backed by IBM Cloud Object Storage (COS) bucket. You need to create or reuse a COS bucket beforehand and supply its credentials in three access tiers: viewer, editor and admin. Each tier uses both an IAM API key and HMAC access keys.</p><pre>{<br>  &quot;name&quot;: &quot;My Catalog&quot;,<br>  &quot;generator&quot;: &quot;catalog-automation@ibm.com&quot;,<br>  &quot;bss_account_id&quot;: &quot;&lt;your_account_id&gt;&quot;,<br>  &quot;bucket&quot;: {<br>    &quot;bucket_type&quot;: &quot;bluemix_cos&quot;,<br>    &quot;bucket_name&quot;: &quot;my-cos-bucket&quot;,<br>    &quot;resource_instance_id&quot;: &quot;crn:v1:bluemix:public:cloud-object-storage:global:a/&lt;account&gt;:&lt;instance_id&gt;::&quot;,<br>    &quot;bluemix_cos_credentials&quot;: {<br>      &quot;viewer&quot;: {<br>        &quot;service_id&quot;: &quot;ServiceId-...&quot;,<br>        &quot;api_key&quot;: &quot;&lt;iam_api_key&gt;&quot;,<br>        &quot;access_key_id&quot;: &quot;&lt;hmac_access_key&gt;&quot;,<br>        &quot;secret_access_key&quot;: &quot;&lt;hmac_secret_key&gt;&quot;<br>      },<br>      &quot;editor&quot;: { /* same fields */ },<br>      &quot;admin&quot;:  { /* same fields */ }<br>    },<br>    &quot;credentials_rw&quot;: {<br>      &quot;access_key_id&quot;: &quot;&lt;hmac_access_key&gt;&quot;,<br>      &quot;secret_access_key&quot;: &quot;&lt;hmac_secret_key&gt;&quot;<br>    }<br>  }<br>}</pre><blockquote><strong>Note on bss_account_id:</strong> On IBM Cloud, the bss_account_id must match the account embedded in your Bearer token. A mismatch results in a 503 with the message <em>&quot;Account specified in query parameters does not match account from token&quot;</em>.</blockquote><ul><li><strong>Amazon S3 — AWS Cloud SaaS</strong></li></ul><p>On AWS deployments, catalogs are backed by an S3 bucket. Instead of credential keys, access is granted via an IAM Role ARN. You can choose between a dedicated bucket (created specifically for this catalog) or a shared bucket (used across multiple catalogs).</p><pre>{<br>  &quot;name&quot;: &quot;My Catalog&quot;,<br>  &quot;generator&quot;: &quot;catalog-automation@ibm.com&quot;,<br>  &quot;bss_account_id&quot;: &quot;&lt;your_account_id&gt;&quot;,<br>  &quot;is_governed&quot;: false,<br>  &quot;configurations&quot;: {<br>    &quot;duplicate_action&quot;: &quot;IGNORE&quot;<br>  },<br>  &quot;bucket&quot;: {<br>    &quot;bucket_type&quot;: &quot;aws_s3&quot;,<br>    &quot;bucket_name&quot;: &quot;ibm-wx-c-my-bucket-abc123&quot;,<br>    &quot;role_arn&quot;: &quot;arn:aws:iam::&lt;account_id&gt;:role/ibm-cpdaas-integration-...&quot;,<br>    &quot;shared&quot;: false<br>  }<br>}</pre><blockquote><strong>S3 bucket naming:</strong> IBM watsonx.data Intelligence on AWS follows a strict naming convention for buckets — dedicated catalog buckets are prefixed ibm-wx-c-, projects use ibm-wx-p-, and spaces use ibm-wx-s-. The bucket must exist in the same AWS region as your IBM watsonx.data Intelligence deployment before the catalog is created.</blockquote><p><strong>Side-by-Side comparison</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*tmeNydZjefoaVpoKS713cw.jpeg" /></figure><p><strong>Deleting a catalog along with bucket</strong></p><p>Catalog deletion is a DELETE /v2/catalogs/{catalog_id} call. On cloud environments (COS and S3), you can control whether the underlying bucket is also removed:</p><pre>DELETE {host}/v2/catalogs/{catalog_id}?delete_bucket=true</pre><ul><li>delete_bucket=true — deletes the catalog and the underlying storage bucket</li><li>delete_bucket=false — deletes the catalog record only, preserves the bucket</li></ul><p>On CPD on premises with assetfiles, this parameter has no effect — the internal storage is managed automatically.</p><p><strong>Summary</strong></p><p>The POST /v2/catalogs endpoint is uniform across all IBM watsonx.data Intelligence deployments, but the payload varies significantly:</p><ul><li><strong>CPD on-premises:</strong> Use assetfiles — no bucket setup, simplest payload</li><li><strong>IBM Cloud SaaS:</strong> Use bluemix_cos — requires a pre-created COS bucket with HMAC and IAM credentials per access tier</li><li><strong>AWS SaaS:</strong> Use aws_s3 — requires a pre-created S3 bucket, IAM Role ARN, and correct region handling</li></ul><p>Understanding these differences upfront saves significant debugging time. The POST /v2/catalogs endpoint abstracts away the underlying storage complexity, but that complexity still exists and must be accounted for before the first API call is made. Choosing the wrong bucket_type or supplying mismatched credentials on cloud will all result in failures that are not always obvious from the error message alone. Getting the bucket configuration right from the start is the most reliable path to a working catalog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f9b6715018a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>