Introduction
IBM® watsonx.data is a data management solution for collecting, storing, querying, and analyzing all your enterprise data (structured, semi-structured, and unstructured) with a single unified data platform. It provides a flexible and reliable platform that is optimized to work on open data formats.
The api are in beta state and expected to change.
Endpoint URLs
The Watsonx.data API endpoint URL is based on your IBM Cloud Pak deployment URL. When you call the API, add the path for each method to form the complete API endpoint for your request. For example, if your instance is deployed at https://www.example.com:31843
, you can access the APIs at https://www.example.com:31843/lakehouse/api/v1/{instance_id}/{method}
.
Authentication
Required Purpose: To work with the API, you must use an IBM Cloud Pak for Data API key (platform API key or instance API key), or IBM Cloud Pak for Data authorization token (platform token or instance token). The API key or token is used to determine the actions that a user or service ID has access to when they use the API.
You can generate an API key or authorization token for an authenticated user by using the Cloud Pak for Data APIs. For more information, see Generating an authorization token or API key.
To use the API, add a valid API key or token to the HTTP Authorization request header. For token, -H 'Authorization: Bearer {TOKEN}'
.
For API key, you need to firstly encode username together with API key: echo "<username>:<api_key>" | base64
.
Then, you can use the ZenApiKey header to authenticate to an endpoint: -H "Authorization: ZenApiKey <encoded value>"
.
To retrieve your access token:
For most Cloud Pak for Data endpoints, you can use the generated API key in the authorization header of subsequent API calls.
curl -H "Authorization: ZenApiKey <token>" "https://<cpd_instance_route>/<endpoint>"
If the ZenApiKey token is not supported, use a generated Bearer token in the authorization header of subsequent API calls.
curl -H "Authorization: Bearer <token>" "https://<cpd_instance_route>/<endpoint>"
Auditing
Required if applicable Purpose: Describes that the API generates auditing events that can be consumed by the Activity Tracker service, and links to your related product docs for more information. Required only if any of the API's methods is enabled to generate auditing events.
Example:
You can monitor API activity within your account by using the IBM Cloud Activity Tracker service. Whenever an API method is called, an event is generated that you can then track and audit from within Activity Tracker. The specific event type is listed for each individual method.
For more information about how to track Certificate Manager activity, see Auditing events for Certificate Manager.
Error handling
This API uses standard HTTP response codes to indicate whether a method completed successfully. A 200
response indicates success. A 400
type response indicates a failure, and a 500
type response indicates an internal system error.
HTTP Error Code | Description | Recovery |
---|---|---|
200 |
Success | The request was successful. |
201 |
Created | The requested resource successfully created in a synchronous manner. |
204 |
No Content | The server successfully processed the request and is not returning any content. |
400 |
Bad Request | The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all required parameters in your request. |
401 |
Unauthorized | You are not authorized to make this request. Log in to IBM Cloud and try again. If this error persists, contact the account owner to check your permissions. |
403 |
Forbidden | The supplied authentication is not authorized to access '{namespace}'. |
404 |
Not Found | The requested resource could not be found. |
409 |
Conflict | The entity is already in the requested state. |
500 |
Internal Server Error | Your request could not be processed. Wait a few minutes and try again. |
Pagination
Some API requests might return many results. To avoid performance issues, these results are returned one page at a time, with a limited number of results on each page. GET requests for the following resources use pagination:
/v1/statement
For the request that uses pagination, the response does include following urls to make subsequent requests :
infoUri
: The URL for requesting the first page of results.nextUri
: The URL for requesting the next page of results.
Methods
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/bucket_registrations"
Response
List bucket registrations
Buckets
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "bucket_registrations": [ { "actions": [ "browse", "view", "modify", "create", "grant", "revoke", "update", "remove", "activate", "register" ], "associated_catalog": { "catalog_name": "iceberg_catalog", "catalog_tags": [] }, "bucket_details": { "bucket_name": "iceberg-bucket", "endpoint": "http://xyz-minio-svc:9000" }, "bucket_display_name": "hive-bucket", "bucket_id": "iceberg-bucket", "bucket_type": "minio", "created_by": "user", "created_on": "1699457595", "description": "default bucket", "managed_by": "ibm", "region": "us-south", "state": "active", "tags": [ "tag1", "tag2" ] }, { "actions": [ "browse", "view", "modify", "create", "grant", "revoke", "update", "remove", "activate", "register" ], "associated_catalog": { "catalog_name": "hive_data", "catalog_tags": [] }, "bucket_details": { "bucket_name": "hive-bucket", "endpoint": "http://xyz-minio-svc:9000" }, "bucket_display_name": "hive-bucket", "bucket_id": "hive-bucket", "bucket_type": "minio", "created_by": "user", "created_on": "1699457595", "description": "default bucket", "managed_by": "ibm", "region": "us-south", "state": "active", "tags": [ "tag1", "tag2" ] } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Request body
bucket details
bucket type
Allowable values: [
aws_s3
,minio
,ibm_cos
,ibm_ceph
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
ibm_cos
bucket description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
COS bucket for customer data
managed by
Allowable values: [
ibm
,customer
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
ibm
bucket catalog
Examples:{ "catalog_name": "iceberg_catalog", "catalog_type": "iceberg" }
bucket display name
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
sample-bucket-displayname
region where the bucket is located
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
us-south
tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1024, Value must match regular expression
^.*$
Examples:[ "bucket-tag1", "bucket-tag2" ]
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/json" -d '{ "bucket_details": { "access_key": "<access_key>", "bucket_name": "sample-bucket", "endpoint": "https://s3.{region}.cloud-object-storage.appdomain.cloud/", "secret_key": "secret_key" }, "bucket_display_name": "sample-bucket-displayname", "bucket_tags": [ "read customer data", "write customer data'" ], "bucket_type": "ibm_cos", "catalog_name": "sampleCatalog", "catalog_tags": [ "catalog_tag_1", "catalog_tag_2" ], "description": "COS bucket for customer data", "managed_by": "ibm", "region": "us-south", "state": "active", "table_type": "iceberg" }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/bucket_registrations"
Response
Bucket
bucket catalog
Examples:{ "catalog_name": "iceberg_catalog", "catalog_type": "iceberg" }
bucket type
Possible values: [
amazon_s3
,aws_s3
,minio
,ibm_cos
,ibm_ceph
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
ibm_cos
Username who created the bucket
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Creation date
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
1686120645
bucket description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
COS bucket for customer data
managed by
Possible values: [
ibm
,customer
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
ibm
mark bucket active or inactive
Possible values: [
active
,inactive
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
active
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "read", "update" ]
bucket details
bucket display name
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
sample-bucket-displayname
bucket ID auto generated during bucket registration
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
samplebucket123
Region where the bucket is located
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
us-south
tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1024, Value must match regular expression
^.*$
Examples:[ "testbucket", "write customer data'" ]
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "create", "update" ], "associated_catalog": { "catalog_name": "hive_data", "catalog_type": "hive" }, "bucket_display_name": "samplebucketdisplayname", "bucket_id": "samplebucketid", "bucket_name": "samplebucket", "bucket_type": "minio", "created_by": "username@domain.com", "created_on": "1699457595", "description": "default bucket", "endpoint": "https://s3.<region>.cloud-object-storage.appdomain.cloud/", "managed_by": "ibm", "region": "us-south", "state": "active", "tags": [ "tag1", "tag2" ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
bucket id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/bucket_registrations/{bucket_id}"
Response
Bucket
bucket catalog
Examples:{ "catalog_name": "iceberg_catalog", "catalog_type": "iceberg" }
bucket type
Possible values: [
amazon_s3
,aws_s3
,minio
,ibm_cos
,ibm_ceph
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
ibm_cos
Username who created the bucket
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Creation date
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
1686120645
bucket description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
COS bucket for customer data
managed by
Possible values: [
ibm
,customer
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
ibm
mark bucket active or inactive
Possible values: [
active
,inactive
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
active
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "read", "update" ]
bucket details
bucket display name
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
sample-bucket-displayname
bucket ID auto generated during bucket registration
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
samplebucket123
Region where the bucket is located
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
us-south
tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1024, Value must match regular expression
^.*$
Examples:[ "testbucket", "write customer data'" ]
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "create", "update" ], "associated_catalog": { "catalog_name": "hive_data", "catalog_type": "hive" }, "bucket_display_name": "samplebucketdisplayname", "bucket_id": "samplebucketid", "bucket_name": "samplebucket", "bucket_type": "minio", "created_by": "username@domain.com", "created_on": "1699457595", "description": "default bucket", "endpoint": "https://s3.<region>.cloud-object-storage.appdomain.cloud/", "managed_by": "ibm", "region": "us-south", "state": "active", "tags": [ "tag1", "tag2" ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
bucket id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X DELETE -H "accept: */*" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/bucket_registrations/{bucket_id}"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
bucket id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
{
"bucket_display_name": "samplebucketdisplayname",
"bucket_id": "samplebucketid",
"created_by": "username@domain.com",
"description": "default bucket",
"tags": [
"tag1",
"tag2"
]
}
bucket details
bucket display name
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
sample-bucket-displayname
modified description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
COS bucket for customer data
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1024, Value must match regular expression
^.*$
Examples:[ "testbucket", "userbucket" ]
curl -X PATCH -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/json" -d '{ "access_key": "<access_key>", "bucket_display_name": "sample-bucket-displayname", "description": "COS bucket for customer data", "secret_key": "<secret_key>", "tags": [ "testbucket", "userbucket" ] }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/bucket_registrations/{bucket_id}"
Response
Bucket
bucket catalog
Examples:{ "catalog_name": "iceberg_catalog", "catalog_type": "iceberg" }
bucket type
Possible values: [
amazon_s3
,aws_s3
,minio
,ibm_cos
,ibm_ceph
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
ibm_cos
Username who created the bucket
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Creation date
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
1686120645
bucket description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
COS bucket for customer data
managed by
Possible values: [
ibm
,customer
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
ibm
mark bucket active or inactive
Possible values: [
active
,inactive
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
active
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "read", "update" ]
bucket details
bucket display name
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
sample-bucket-displayname
bucket ID auto generated during bucket registration
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
samplebucket123
Region where the bucket is located
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
us-south
tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1024, Value must match regular expression
^.*$
Examples:[ "testbucket", "write customer data'" ]
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "create", "update" ], "associated_catalog": { "catalog_name": "hive_data", "catalog_type": "hive" }, "bucket_display_name": "samplebucketdisplayname", "bucket_id": "samplebucketid", "bucket_name": "samplebucket", "bucket_type": "minio", "created_by": "username@domain.com", "created_on": "1699457595", "description": "default bucket", "endpoint": "https://s3.<region>.cloud-object-storage.appdomain.cloud/", "managed_by": "ibm", "region": "us-south", "state": "active", "tags": [ "tag1", "tag2" ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
bucket id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -d "" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/bucket_registrations/{bucket_id}/activate"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
bucket id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X DELETE -H "accept: */*" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/bucket_registrations/{bucket_id}/deactivate"
List bucket objects
Fetch all objects from a given bucket
GET /bucket_registrations/{bucket_id}/objects
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
bucket id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/bucket_registrations/{bucket_id}/objects"
Response
List bucket objects
bucket object
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-/]+
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "objects": [ "/path/file1.json", "/path/file2.txt", "/path/file3.csv", "/path/file4.parquet" ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/database_registrations"
Response
list database registrations
Database body
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "database_registrations": [ { "actions": [ "update", "delete" ], "associated_catalog": { "catalog_name": "hive_data", "catalog_tags": [ "catalog_tag_1", "catalog_tag_2" ], "catalog_type": "hive" }, "created_by": "user1@bim.com", "created_on": "1686792721", "database_details": { "database_name": "new_database", "hostname": "netezza://ps.fyre.com", "password": "samplepassword", "port": 4353, "ssl": true, "tables": "netezza_table_name", "username": "sampleuser" }, "database_display_name": "new_database", "database_id": "new_database_id", "database_type": "netezza", "description": "Description of the external Database", "tags": [ "testdatabase", "userdatabase" ] } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Request body
Database display name
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
new_database
Connector type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
db2
database catalog
Examples:{ "catalog_name": "iceberg_catalog", "catalog_type": "iceberg" }
Created on
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1686792721
database details
This will hold all the properties for a custom database
Possible values: 0 ≤ number of items ≤ 10000
Examples:[ { "encrypt": true, "key": "abc", "value": "xyz" } ]
Database description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
db2 extenal database description
tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "testdatabase", "userdatabase" ]
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/json" -d '{ "catalog_name": "sampleCatalog", "created_on": 0, "database_details": { "certificate": "contents of a pem/crt file", "certificate_extension": "pem/crt", "database_name": "new_database", "hostname": "db2@<hostname>.com", "hosts": "abc.com:1234,xyz.com:4321", "password": "samplepassword", "port": 4553, "sasl": true, "ssl": true, "tables": "kafka_table_name", "username": "sampleuser" }, "database_display_name": "new_database", "database_properties": [ { "encrypt": true, "key": "abc", "value": "xyz" } ], "database_type": "db2", "description": "db2 extenal database description", "tags": [ "tag_1", "tag_2" ] }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/database_registrations"
Response
database registration object
database details
Database display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new_database
Connector type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
netezza
actions
Possible values: 0 ≤ number of items ≤ 10000
Examples:[ "update", "delete" ]
database catalog
Examples:{ "catalog_name": "iceberg_catalog", "catalog_type": "iceberg" }
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Created by
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
user1@bim.com
Created on
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1686792721
Database ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new_database_id
This will hold all the properties for a custom database
Possible values: 0 ≤ number of items ≤ 10000
Examples:[ { "encrypt": true, "key": "abc", "value": "xyz" } ]
Database description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Description of the external Database
tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "testdatabase", "userdatabase" ]
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "update", "delete" ], "associated_catalog": { "catalog_name": "iceberg_data", "catalog_type": "iceberg" }, "created_by": "user1@bim.com", "created_on": "1686792721", "database_details": { "database_name": "new_database", "hostname": "netezza://abc.efg.com", "password": "samplepassword", "port": 4353, "ssl": true, "tables": "netezza_table_name", "username": "sampleuser" }, "database_display_name": "new_database", "database_id": "new_database_id", "database_type": "netezza", "description": "Description of the database", "tags": [ "testdatabase", "userdatabase" ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
database id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/database_registrations/{database_id}"
Response
database registration object
database details
Database display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new_database
Connector type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
netezza
actions
Possible values: 0 ≤ number of items ≤ 10000
Examples:[ "update", "delete" ]
database catalog
Examples:{ "catalog_name": "iceberg_catalog", "catalog_type": "iceberg" }
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Created by
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
user1@bim.com
Created on
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1686792721
Database ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new_database_id
This will hold all the properties for a custom database
Possible values: 0 ≤ number of items ≤ 10000
Examples:[ { "encrypt": true, "key": "abc", "value": "xyz" } ]
Database description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Description of the external Database
tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "testdatabase", "userdatabase" ]
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "update", "delete" ], "associated_catalog": { "catalog_name": "iceberg_data", "catalog_type": "iceberg" }, "created_by": "user1@bim.com", "created_on": "1686792721", "database_details": { "database_name": "new_database", "hostname": "netezza://abc.efg.com", "password": "samplepassword", "port": 4353, "ssl": true, "tables": "netezza_table_name", "username": "sampleuser" }, "database_display_name": "new_database", "database_id": "new_database_id", "database_type": "netezza", "description": "Description of the database", "tags": [ "testdatabase", "userdatabase" ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
database id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X DELETE -H "accept: */*" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/database_registrations/{database_id}"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
database id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
New database details
New database display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
new_database
New database description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
External database description
New tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Examples:[ "testdatabase", "userdatabase" ]
curl -X PATCH -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/merge-patch+json" -d '{ "database_details": { "password": "samplepassword", "username": "sampleuser" }, "database_display_name": "new_database", "description": "External database description", "tags": [ "testdatabase", "userdatabase" ] }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/database_registrations/{database_id}"
Response
database registration object
database details
Database display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new_database
Connector type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
netezza
actions
Possible values: 0 ≤ number of items ≤ 10000
Examples:[ "update", "delete" ]
database catalog
Examples:{ "catalog_name": "iceberg_catalog", "catalog_type": "iceberg" }
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Created by
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
user1@bim.com
Created on
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1686792721
Database ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new_database_id
This will hold all the properties for a custom database
Possible values: 0 ≤ number of items ≤ 10000
Examples:[ { "encrypt": true, "key": "abc", "value": "xyz" } ]
Database description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Description of the external Database
tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "testdatabase", "userdatabase" ]
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "update", "delete" ], "associated_catalog": { "catalog_name": "iceberg_data", "catalog_type": "iceberg" }, "created_by": "user1@bim.com", "created_on": "1686792721", "database_details": { "database_name": "new_database", "hostname": "netezza://abc.efg.com", "password": "samplepassword", "port": 4353, "ssl": true, "tables": "netezza_table_name", "username": "sampleuser" }, "database_display_name": "new_database", "database_id": "new_database_id", "database_type": "netezza", "description": "Description of the database", "tags": [ "testdatabase", "userdatabase" ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "content-type: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/other_engines"
Response
list other engines
list other engines
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "other_engines": [ { "created_by": "<username>@<domain>.com", "created_on": 163788384993, "description": "other engine for running queries", "engine_details": { "connection_string": "https://other-connection-string-sample.com", "engine_type": "netezza" }, "engine_display_name": "sampleEngine", "engine_id": "sampleEngine123", "origin": "external", "status": "registered", "type": "other" } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Create other Engine Body
External engine details
engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine01
engine description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
external engine description
Origin - created or registered
Allowable values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
external
other engine tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
netezza
curl -X POST -H "content-type: application/json" -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -d '{ "description": "external engine description", "engine_details": { "connection_string": "1.2.3.4", "engine_type": "netezza", "metastore_host": "1.2.3.4" }, "engine_display_name": "sampleEngine01", "tags": [ "tag1", "tag2" ] }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/other_engines"
Response
external engine details
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
created time in epoch format
engine description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
xyz-netezza-01-netezza-svc
origin
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Engine port
engine status
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
registered
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Type like presto, netezza, external,..
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
external
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "OtherEngine": { "created_by": "<username>@<domain>.com", "created_on": 163788384993, "description": "other engine for running sql queries", "engine_display_name": "sampleEngine", "engine_id": "sampleEngine123", "origin": "external", "status": "registered", "type": "other" } }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X DELETE -H "accept: */*" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/other_engines/{engine_id}"
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
API Authentication service token
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Query Parameters
service_type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
state
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {token}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/integrations"
Response
list all existing integrations
Database body
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "integrations": [ { "enable_data_policy_within_wxd": true, "integration_id": "ranger952", "modified_at": 1234567890, "modified_by": "admin", "password": "pasword_encrypted", "resource": "resource_name", "service_type": "ranger", "state": "active", "url": "http://abcd.efgh.com:9876/", "username": "username" }, { "apikey": "apikey_encrypted", "config_properties": "ikc-env.password=apikey_encrypted\nikc-env.url=https://abcd.efgh.com\nikc-username=test\nikc-enabled-catalogs=storage_catalog_1,storage_catalog_2\nlh-unique-identifier=1234567890123456\nlh-crn=0123456789012345", "governance_properties": "query-governance.name=external", "integration_id": "ikc806", "modified_at": 1234567890, "modified_by": "admin", "service_type": "ikc", "state": "active", "storage_catalogs": [ "storage_catalog_1", "storage_catalog_2" ], "url": "https://abcd.efgh.com", "username": "username" } ] }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Integration registration parameters
{
"url": "http://abcd.efgh.com:9876/",
"service_type": "ranger",
"username": "username",
"password": "password",
"resource": "resource_name",
"enable_data_policy_within_wxd": false
}
{
"url": "https://abcd.efgh.com",
"service_type": "ikc",
"apikey": "apikey",
"storage_catalogs": [
"storage_catalog_1",
"storage_catalog_2"
],
"username": "username"
}
{
"url": "https://abcd.efgh.com",
"service_type": "databand",
"access_token": "accessToken"
}
{
"apikey": "apikey",
"username": "username",
"service_type": "manta",
"url": "https://abcd.efgh.com"
}
Token for databand
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
accessToken
Integration apikey for IKC and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
apikey
Data policy enabler with wxd for ranger
Ranger password
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
password
Resouce for ranger
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
presto01
Integration type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
ranger
Comma separated list of bucket catalogs which have ikc enabled
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
Integration Connection URL for IKC, Ranger, Databand and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-:/_.@=?]+$
Example:
http://abcd.efgh.com:9876/
Username for Ranger and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
username@email.com
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {token}" -H "Content-Type: application/json" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/integrations" -d '{ "url": "http://lh-ranger-test1.fyre.ibm.com:6080", "service_type": "ranger", "username": "admin", "password": "Rangeradmin1", "resource": "default_policy_donot_change", "enable_data_policy_within_wxd": false}'
curl -X POST \-H "accept: application/json" \ -H "AuthInstanceId: {token}" \ -H "Content-Type: application/json" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/integrations" \ -d '{ "url": "https://cpd-wkc.apps.wkcwxd.cp.fyre.ibm.com", "service_type": "ikc", "apikey": "YWRtaW46VmpSb3JOV2ZvRFE1TGdLWUpiNGd5YmRNaW1Gc25CN0tjdGtlSmZXbwo=", "storage_catalogs": "iceberg_data,wxd_system_data", "username": "test"}'
Response
Integration
Token for databand
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
accessToken
Integration apikey for IKC and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
apikey
Properties
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ikc-env.password=ibm-abcefghijklmno==\nikc-env.url=ikc\nikc-enabled-catalogs=\nikc-username=\nlh-unique-identifier=1711796957622126\nlh-crn=1711796957622126
data policy enabler with wxd for ranger
Properties of ikc
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
query-governance.name=external
resouce for ranger
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
ikc123
For manta, specific to saas
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
https://abcd.com/gov_lineage/v2/lineage_events/openlineage
modified time in epoch format
Example:
1234567890
modified user name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
username@email.com
Ranger password
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
password
Resouce for ranger
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
presto01
Integration type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
ikc
Current status of the integration
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
active
Comma separated list of storage catalogs for which ikc needs to be enabled
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
Integration Connection URL for IKC, Ranger, Databand and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-:/_.@=?]+
Example:
http://abcd.efgh.com:9876/
Username for Ranger and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
username@email.com
Integration Zen API key for Manta
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
zen_apikey
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "integration_id": "ranger952", "modified_by": "admin", "password": "password_encrypted", "resource": "resource_name", "service_type": "ranger", "state": "active", "url": "http://abcd.efgh.com:9876/", "username": "username" }
{ "apikey": "apikey_encrypted", "integration_id": "ikc806", "modified_by": "admin", "service_type": "ikc", "state": "active", "storage_catalogs": [ "storage_catalog_1", "storage_catalog_2" ], "url": "https://abcd.efgh.com", "username": "username" }
{ "access_token": "accessToken", "integration_id": "databand123", "modified_by": "username@domain.com", "service_type": "databand", "url": "https://abcd.efgh.com" }
{ "apikey": "apikey", "username": "username", "integration_id": "manta123", "modified_by": "username@domain.com", "service_type": "manta", "url": "https://abc.def.ibm.com" }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
API Authentication service token
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Path Parameters
integration_id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {token}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/integrations/{service_type}"
Response
Integration
Token for databand
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
accessToken
Integration apikey for IKC and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
apikey
Properties
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ikc-env.password=ibm-abcefghijklmno==\nikc-env.url=ikc\nikc-enabled-catalogs=\nikc-username=\nlh-unique-identifier=1711796957622126\nlh-crn=1711796957622126
data policy enabler with wxd for ranger
Properties of ikc
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
query-governance.name=external
resouce for ranger
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
ikc123
For manta, specific to saas
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
https://abcd.com/gov_lineage/v2/lineage_events/openlineage
modified time in epoch format
Example:
1234567890
modified user name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
username@email.com
Ranger password
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
password
Resouce for ranger
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
presto01
Integration type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
ikc
Current status of the integration
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
active
Comma separated list of storage catalogs for which ikc needs to be enabled
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
Integration Connection URL for IKC, Ranger, Databand and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-:/_.@=?]+
Example:
http://abcd.efgh.com:9876/
Username for Ranger and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
username@email.com
Integration Zen API key for Manta
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
zen_apikey
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "enable_data_policy_within_wxd": true, "integration_id": "ranger952", "modified_at": 1234567890, "modified_by": "admin", "password": "pasword_encrypted", "resource": "resource_name", "service_type": "ranger", "state": "active", "url": "http://abcd.efgh.com:9876/", "username": "username" }
{ "apikey": "apikey_encrypted", "config_properties": "ikc-env.password=apikey_encrypted\nikc-env.url=https://abcd.efgh.com\nikc-username=test\nikc-enabled-catalogs=storage_catalog_1,storage_catalog_2\nlh-unique-identifier=1234567890123456\nlh-crn=0123456789012345", "governance_properties": "query-governance.name=external", "integration_id": "ikc806", "modified_at": 1234567890, "modified_by": "admin", "service_type": "ikc", "state": "active", "storage_catalogs": [ "storage_catalog_1", "storage_catalog_2" ], "url": "https://abcd.efgh.com", "username": "username" }
{ "access_token": "accessToken", "integration_id": "databand123", "modified_at": 1234567890, "modified_by": "username@domain.com", "service_type": "databand", "state": "inactive", "url": "https://abcd.efgh.com" }
{ "apikey": "apikey", "integration_id": "manta123", "manta_url": "https://api.abc.def.ibm.com/gov_lineage/v2/lineage_events/openlineage", "modified_at": 1234567890, "modified_by": "username@domain.com", "service_type": "manta", "state": "inactive", "url": "https://abc.def.ibm.com", "username": "username", "zen_apikey": "zenApikeyEncrypted" }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
integration_id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
curl -X DELETE -H "accept: application/json" -H "AuthInstanceId: {token}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/integrations/{service_type}"
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
integration_id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Integration update parameters
{
"url": "http://abcd.efgh.com:9876/",
"username": "username",
"resource": "resource_name",
"enable_data_policy_within_wxd": true
}
{
"url": "https://abcd.efgh.com",
"apikey": "apikey",
"storage_catalogs": [
"storage_catalog_1"
],
"username": "username"
}
{
"url": "https://abcd.efgh.com",
"access_token": "accessToken"
}
{
"username": "username",
"url": "https://abcd.efgh.com",
"apikey": "apikey"
}
Token for databand
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
uiOO90kklop
Integration apikey for IKC and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
apikey
Data policy enabler with wxd for ranger
Ranger password
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
password
Resouce for ranger
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
presto01
Current status of the integration
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
active
Comma separated list of bucket catalogs which have ikc enabled
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
Integration Connection URL for IKC, Ranger, Databand and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-?:_/=@]+
Example:
http://abcd.efgh.com:9876/
Username for Ranger and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
username@email.com
curl -X PATCH -H "accept: application/json" -H "AuthInstanceId: {token}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/integrations/{integration_id}" -d '{ "url": "http://lh-ranger-test1.fyre.ibm.com:6080/", "username": "admin2" "resource": "default_policy_donot_change", "enable_data_policy_within_wxd": true,}'
curl -X PATCH \-H "accept: application/json" -H "AuthInstanceId: {token}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/integrations/{integration_id}" -d '{ "url": "https://cpd-wkc.apps.wkcwxd.cp.fyre.ibm.com", "apikey": "YWRtaW46VmpSb3JOV2ZvRFE1TGdLWUpiNGd5YmRNaW1Gc25CN0tjdGtlSmZXbwo=", "storage_catalogs": "iceberg_data", "username": "test"}'
Response
Integration
Token for databand
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
accessToken
Integration apikey for IKC and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
apikey
Properties
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ikc-env.password=ibm-abcefghijklmno==\nikc-env.url=ikc\nikc-enabled-catalogs=\nikc-username=\nlh-unique-identifier=1711796957622126\nlh-crn=1711796957622126
data policy enabler with wxd for ranger
Properties of ikc
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
query-governance.name=external
resouce for ranger
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
ikc123
For manta, specific to saas
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
https://abcd.com/gov_lineage/v2/lineage_events/openlineage
modified time in epoch format
Example:
1234567890
modified user name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
username@email.com
Ranger password
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
password
Resouce for ranger
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
presto01
Integration type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
ikc
Current status of the integration
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
active
Comma separated list of storage catalogs for which ikc needs to be enabled
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
Integration Connection URL for IKC, Ranger, Databand and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-:/_.@=?]+
Example:
http://abcd.efgh.com:9876/
Username for Ranger and Manta
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
username@email.com
Integration Zen API key for Manta
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
zen_apikey
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "enable_data_policy_within_wxd": true, "integration_id": "ranger952", "modified_at": 1234567890, "modified_by": "admin", "password": "pasword_encrypted", "resource": "resource_name", "service_type": "ranger", "state": "active", "url": "http://abcd.efgh.com:9876/", "username": "username" }
{ "apikey": "apikey_encrypted", "config_properties": "ikc-env.password=apikey_encrypted\nikc-env.url=https://abcd.efgh.com\nikc-username=test\nikc-enabled-catalogs=storage_catalog_1,storage_catalog_2\nlh-unique-identifier=1234567890123456\nlh-crn=0123456789012345", "governance_properties": "query-governance.name=external", "integration_id": "ikc806", "modified_at": 1234567890, "modified_by": "admin", "service_type": "ikc", "state": "active", "storage_catalogs": [ "storage_catalog_1" ], "url": "https://abcd.efgh.com", "username": "username" }
{ "access_token": "accessToken", "integration_id": "databand123", "modified_at": 1234567890, "modified_by": "username@domain.com", "service_type": "databand", "state": "inactive", "url": "https://abcd.efgh.com" }
{ "apikey": "apikey", "integration_id": "manta123", "manta_url": "https://api.abc.def.ibm.com/gov_lineage/v2/lineage_events/openlineage", "modified_at": 1234567890, "modified_by": "username@domain.com", "service_type": "manta", "state": "inactive", "url": "https://abc.def.ibm.com", "username": "username", "zen_apikey": "zenApikeyEncrypted" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "content-type: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/db2_engines"
Response
list db2 engines
list db2 engines
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "db2_engines": [ { "created_by": "user@test.com", "created_on": 1700322436, "description": "db2 engine for running sql queries", "engine_details": { "connection_string": "jdbc:db2://<hostname>:<port>/<database>", "metastore_host": "thrift://mh-connection-string-sample.com" }, "engine_display_name": "db2", "engine_id": "db2505", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "db2" } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Create db2 engine body
Origin - created or registered
Allowable values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
external
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
db2 engine description
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/json" -d '{ "description": "db2 engine description", "engine_details": { "connection_string": "1.2.3.4" }, "engine_display_name": "sampleEngine", "origin": "external", "tags": [ "tag1", "tag2" ] }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/db2_engines"
Response
Db2 engine details
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
watsonx.data build version
Example:
1.0.3.0.0
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
db2 engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
xyz-db2-01-db2-svc
Origin - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Engine port
Engine status
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
REGISTERED
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
db2
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "Db2Engine": null, "created_by": "user@test.com", "created_on": 1700322469, "description": "updated description for db2 engine.", "engine_details": { "connection_string\"": "jdbc:db2://localhost:5480/database", "metastore_host": "thrift://mh-connection-string-sample.com" }, "engine_display_name": "sample db2 Engine Display Name", "engine_id": "sample db2 Engine Name", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "db2" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X DELETE -H "accept: */*" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/db2_engines/{engine_id}"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Update Engine Body
Modified description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
db2 engine updated description
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
curl -X PATCH -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/merge-patch+json" -d '{ "description": "db2 engine updated description", "engine_display_name": "sampleEngine", "tags": [ "tag1", "tag2" ] }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/db2_engines/{engine_id}"
Response
Db2 engine details
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
watsonx.data build version
Example:
1.0.3.0.0
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
db2 engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
xyz-db2-01-db2-svc
Origin - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Engine port
Engine status
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
REGISTERED
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
db2
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "Db2Engine": null, "created_by": "user@test.com", "created_on": 1700322469, "description": "updated description for db2 engine.", "engine_details": { "connection_string\"": "jdbc:db2://localhost:5480/database", "metastore_host": "thrift://mh-connection-string-sample.com" }, "engine_display_name": "sample db2 Engine Display Name", "engine_id": "sample db2 Engine Name", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "db2" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/netezza_engines"
Response
list Netezza engines
list Netezza engines
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "netezza_engines": [ { "created_by": "user@test.com", "created_on": 1700322469, "description": "netezza engine for running sql queries", "engine_details": { "connection_string": "jdbc:netezza://localhost:5480/database", "metastore_host": "thrift://mh-connection-string-sample.com" }, "engine_display_name": "netezza", "engine_id": "netezza170", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "netezza" } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Create netezza engine body
Origin - created or registered
Allowable values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
external
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
netezza engine description
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/json" -d '{ "description": "netezza engine description", "engine_details": { "connection_string": "1.2.3.4" }, "engine_display_name": "sampleEngine", "origin": "external", "tags": [ "tag1", "tag2" ]}' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/netezza_engines"
Response
Netezza engine details
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
watsonx.data build version
Example:
1.0.3.0.0
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
netezza engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
xyz-netezza-01-netezza-svc
Origin - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Engine port
Engine status
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
REGISTERED
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
netezza
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "NetezzaEngine": null, "created_by": "user@test.com", "created_on": 1700322469, "description": "updated description for netezza engine.", "engine_details": { "connection_string\"": "jdbc:netezza://localhost:5480/database", "metastore_host": "thrift://mh-connection-string-sample.com" }, "engine_display_name": "sample Netezza Engine Display Name", "engine_id": "sample Netezza Engine Name", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "netezza" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X DELETE -H "accept: */* " -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/netezza_engines/{engine_id}"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Update Engine Body
Modified description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
netezza engine updated description
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "tag1", "tag2" ]
curl -X PATCH -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/merge-patch+json" -d '{ "description": "netezza engine updated description", "engine_display_name": "sampleEngine", "tags": [ "tag1", "tag2" ] }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/netezza_engines/{engine_id}"
Response
Netezza engine details
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
watsonx.data build version
Example:
1.0.3.0.0
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
netezza engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
xyz-netezza-01-netezza-svc
Origin - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Engine port
Engine status
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
REGISTERED
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
netezza
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "NetezzaEngine": null, "created_by": "user@test.com", "created_on": 1700322469, "description": "updated description for netezza engine.", "engine_details": { "connection_string\"": "jdbc:netezza://localhost:5480/database", "metastore_host": "thrift://mh-connection-string-sample.com" }, "engine_display_name": "sample Netezza Engine Display Name", "engine_id": "sample Netezza Engine Name", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "netezza" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Response
list Prestissimo Engines
list prestissimo engines
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "prestissimo_engines": [ { "actions": [ "view", "use", "update", "select", "access_ui", "associate", "disassociate", "restart", "pause", "resume", "grant", "revoke", "delete", "create", "scale" ], "associated_catalogs": [ "hive_data" ], "build_version": "1.1.0.0.0", "coordinator": { "node_type": "bx2.4x16", "quantity": 1 }, "engine_display_name": "starter", "engine_id": "prestissimo511", "external_host_name": "your-hostname.apps.your-domain.com", "group_id": "prestissimo511", "host_name": "1234-xyz456-abc4321.databases.appdomain.cloud", "port": 30156, "size_config": "starter", "status": "running", "status_code": 0, "tags": [ "tag1", "tag2" ], "type": "prestissimo", "version": "v0.282", "worker": { "node_type": "bx2.4x16", "quantity": 1 } } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Create Engine Body
Origin - created or registered
Allowable values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
native
Associated catalogs
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "hive_data" ]
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
prestissimo engine description
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Region (cloud)
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
us-south
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Version like 0.278 for prestissimo or else
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
1.2.3
Response
EngineDetail
Applicable only for OCP based clusters. This is typically servicename+route
Example:
your-hostname.apps.your-domain.com
Engine status code
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "update", "delete" ]
Associated catalog
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "hive_data" ]
watsonx.data build version
Example:
1.0.3.0.0
coordinator/worker property settings
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
prestissimo engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine123
Engine properties
Triggers engine restart if value is force
Possible values: [
force
,false
]Example:
force
Group ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
new_group_id
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
xyz-prestissimo-01-prestissimo-svc
Origin - place holder
Possible values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
native
Engine port
Region - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
us-south
RemoveEngine properties
Size config
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
starter
Engine status
Possible values: [
running
,pending
,stopped
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
running
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
prestissimo
Version of the engine
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
1.2.0
coordinator/worker property settings
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "update", "delete" ], "associated_catalogs": [ "hive_data" ], "coordinator": { "node_type": "worker", "quantity": 1 }, "created_by": "<username>@<domain>.com", "created_on": 163788384993, "description": "prestissimo engine for running sql queries", "engine_display_name": "sampleEngine", "engine_id": "sampleEngine123", "external_host_name": "your-hostname.apps.your-domain.com", "group_id": "new_group_id", "host_name": "your-hostname.apps.your-domain.com", "origin": "native", "region": "us-south", "size_config": "starter", "status": "running", "status_code": 0, "tags": [ "tag1", "tag2" ], "version": "1.2.0", "worker": { "node_type": "worker", "quantity": 1 } }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Response
EngineDetail
Applicable only for OCP based clusters. This is typically servicename+route
Example:
your-hostname.apps.your-domain.com
Engine status code
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "update", "delete" ]
Associated catalog
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "hive_data" ]
watsonx.data build version
Example:
1.0.3.0.0
coordinator/worker property settings
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
prestissimo engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine123
Engine properties
Triggers engine restart if value is force
Possible values: [
force
,false
]Example:
force
Group ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
new_group_id
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
xyz-prestissimo-01-prestissimo-svc
Origin - place holder
Possible values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
native
Engine port
Region - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
us-south
RemoveEngine properties
Size config
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
starter
Engine status
Possible values: [
running
,pending
,stopped
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
running
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
prestissimo
Version of the engine
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
1.2.0
coordinator/worker property settings
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "update", "delete" ], "associated_catalogs": [ "hive_data" ], "coordinator": { "node_type": "worker", "quantity": 1 }, "created_by": "<username>@<domain>.com", "created_on": 163788384993, "description": "prestissimo engine for running sql queries", "engine_display_name": "sampleEngine", "engine_id": "sampleEngine123", "external_host_name": "your-hostname.apps.your-domain.com", "group_id": "new_group_id", "host_name": "your-hostname.apps.your-domain.com", "origin": "native", "region": "us-south", "size_config": "starter", "status": "running", "status_code": 0, "tags": [ "tag1", "tag2" ], "version": "1.2.0", "worker": { "node_type": "worker", "quantity": 1 } }
Update prestissimo engine
Update details of prestissimo engine
PATCH /prestissimo_engines/{engine_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Update prestissimo engine body
Modified description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
updated description for prestissimo engine
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Engine properties
- engine_properties
Catalog settings
Configuration settings for the engine properties
velox settings
Triggers engine restart if value is force
Allowable values: [
force
,false
]Example:
force
RemoveEngine properties
- remove_engine_properties
Catalog settings
remove engine properties configuration
velox property
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
curl -X 'PATCH' 'https://{cpd host}/lakehouse/api/v2/prestissimo_engines/{engine_id}' -H 'accept: application/json' -H 'Content-Type: application/merge-patch+json' -H "AuthInstanceId: {instance id}" -d '{ "description": "updated description for prestissimo engine", "engine_display_name": "sampleEngine", "engine_properties": { "configuration": { "coordinator": { "property_1": "property_value", "property_2": "property_value" }, "worker": { "property_1": "property_value", "property_2": "property_value" } }, "catalog": { "<catalog_name>": { "coordinator": { "property1": "value1" }, "worker": { "property1": "value1" } } }, "velox": { "property_1": "property_value", "property_2": "property_value" } "global": { "enable-mixed-case-support": "true" } }, "engine_restart": "force", "remove_engine_properties": { "configuration": { "coordinator": [ "property1", "property2" ], "worker": [ "property1", "property2" ] }, "catalog": { "catalog_name": { "coordinator": [ ], "worker": [ ] } }, "velox": [ "property1", "property2" ] }, "tags": [ "tag1", "tag2" ]}'
Response
EngineDetail
Applicable only for OCP based clusters. This is typically servicename+route
Example:
your-hostname.apps.your-domain.com
Engine status code
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "update", "delete" ]
Associated catalog
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "hive_data" ]
watsonx.data build version
Example:
1.0.3.0.0
coordinator/worker property settings
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
prestissimo engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine123
Engine properties
Triggers engine restart if value is force
Possible values: [
force
,false
]Example:
force
Group ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
new_group_id
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
xyz-prestissimo-01-prestissimo-svc
Origin - place holder
Possible values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
native
Engine port
Region - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
us-south
RemoveEngine properties
Size config
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
starter
Engine status
Possible values: [
running
,pending
,stopped
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
running
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
prestissimo
Version of the engine
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
1.2.0
coordinator/worker property settings
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "update", "delete" ], "associated_catalogs": [ "hive_data" ], "coordinator": { "node_type": "worker", "quantity": 1 }, "created_by": "<username>@<domain>.com", "created_on": 163788384993, "description": "prestissimo engine for running sql queries", "engine_display_name": "sampleEngine", "engine_id": "sampleEngine123", "external_host_name": "your-hostname.apps.your-domain.com", "group_id": "new_group_id", "host_name": "your-hostname.apps.your-domain.com", "origin": "native", "region": "us-south", "size_config": "starter", "status": "running", "status_code": 0, "tags": [ "tag1", "tag2" ], "version": "1.2.0", "worker": { "node_type": "worker", "quantity": 1 } }
Get prestissimo engine catalogs
Get list of all catalogs attached a prestissimo engine
GET /prestissimo_engines/{engine_id}/catalogs
Associate catalogs to a prestissimo engine
Associate catalogs to a prestissimo engine
POST /prestissimo_engines/{engine_id}/catalogs
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
{
"catalog_names": "iceberg_data, catalog02"
}
catalog names
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_,]+$
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/prestissimo_engines/{engine_id}/catalogs' -H 'accept: application/json' -H "Content-Type: application/json" -d '{ "catalog_names": "catalog_name01,catalog_name02" }' -H "AuthInstanceId: {CRN}"
Response
Define the catalog details
list of allowed actions
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "update", "delete" ]
Associated buckets items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "bucket_1", "bucket_2" ]
Associated databases items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "database_1", "database_2" ]
Associated engines items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "engine_1", "engine_2" ]
Name for the catalog
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Table type
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
iceberg
Created by
Example:
<username>@<domain>.com
Created on
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Description
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Iceberg catalog description
IBM thrift uri hostname
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
s3a://samplehost.com
Last sync time
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Managed by
Possible values: [
ibm
,customer
]Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Catalog name
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
glue
IBM thrift uri port
Example:
3232
Catalog status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Sync description
Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Table registration was successful
Tables not sync because data is corrupted
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "table is corrupted", "table metadata not there" ]
Sync status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
SUCCESS
Tags
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "tag1", "tag2" ]
Customer thrift uri
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
thrift://samplehost-catalog:4354
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "view", "update", "delete" ], "associated_buckets": [ "ibm_cos_bucket" ], "associated_databases": [ "iceberg_data" ], "associated_engines": [ "presto367" ], "catalog_name": "iceberg_data", "catalog_type": "iceberg", "created_by": "user@domain.com", "created_on": "1700633239", "description": "catalog description", "hostname": "1234-xyz456-abc4321.lakehouse.dev.appdomain.cloud", "port": "31504", "sync_exception": [ "table is corrupted", "table metadata not there" ], "tags": [ "tag1", "tag2" ], "thrift_uri": "thrift://samplehost-catalog:4354" }
Disassociate catalogs from a prestissimo engine
Disassociate one or more catalogs from a prestissimo engine
DELETE /prestissimo_engines/{engine_id}/catalogs
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Query Parameters
Catalog id(s) to be stopped, comma separated
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-,_]+$
Get prestissimo engine catalog
Get catalog attached to a prestissimo engine
GET /prestissimo_engines/{engine_id}/catalogs/{catalog_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
catalog id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Response
Define the catalog details
list of allowed actions
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "update", "delete" ]
Associated buckets items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "bucket_1", "bucket_2" ]
Associated databases items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "database_1", "database_2" ]
Associated engines items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "engine_1", "engine_2" ]
Name for the catalog
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Table type
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
iceberg
Created by
Example:
<username>@<domain>.com
Created on
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Description
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Iceberg catalog description
IBM thrift uri hostname
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
s3a://samplehost.com
Last sync time
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Managed by
Possible values: [
ibm
,customer
]Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Catalog name
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
glue
IBM thrift uri port
Example:
3232
Catalog status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Sync description
Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Table registration was successful
Tables not sync because data is corrupted
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "table is corrupted", "table metadata not there" ]
Sync status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
SUCCESS
Tags
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "tag1", "tag2" ]
Customer thrift uri
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
thrift://samplehost-catalog:4354
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "view", "update", "delete" ], "associated_buckets": [ "ibm_cos_bucket" ], "associated_databases": [ "iceberg_data" ], "associated_engines": [ "presto367" ], "catalog_name": "iceberg_data", "catalog_type": "iceberg", "created_by": "user@domain.com", "created_on": "1700633239", "description": "catalog description", "hostname": "1234-xyz456-abc4321.lakehouse.dev.appdomain.cloud", "port": "31504", "sync_exception": [ "table is corrupted", "table metadata not there" ], "tags": [ "tag1", "tag2" ], "thrift_uri": "thrift://samplehost-catalog:4354" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
Presto query to determine explain plan
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
show schemas in catalog_name
Format
Allowable values: [
,
text
,graphviz
,json
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
json
Type
Allowable values: [
,
logical
,distributed
,validate
,io
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
io
Explain analyze
Return query metrics after query is complete
POST /prestissimo_engines/{engine_id}/query_explain_analyze
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
Presto query to show explain analyze
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
show schemas in catalog_name
Verbose
Example:
true
Restart a prestissimo engine
Restart an existing prestissimo engine
POST /prestissimo_engines/{engine_id}/restart
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "content-type: application/json" -H "AuthInstanceId: {instance id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines"
Response
List Presto engines
Presto engine
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "presto_engines": [ { "actions": [ "view", "use", "update", "select", "access_ui", "associate", "disassociate", "restart", "pause", "resume", "grant", "revoke", "delete", "create", "scale" ], "associated_catalogs": [ "iceberg_data", "hive_data" ], "build_version": "1.1.0.0.0", "coordinator": { "node_type": "bx2.4x16", "quantity": 1 }, "engine_display_name": "starter", "engine_id": "presto511", "external_host_name": "your-hostname.apps.your-domain.com", "group_id": "presto511", "host_name": "1234-xyz456-abc4321.databases.appdomain.cloud", "origin": "native", "port": 30156, "size_config": "starter", "status": "running", "status_code": 0, "tags": [ "tag1", "tag2" ], "type": "presto", "version": "v0.282", "worker": { "node_type": "bx2.4x16", "quantity": 1 } } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Create Engine Body
Origin - created or registered
Allowable values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
native
Associated catalogs
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "iceberg_data", "hive_data" ]
Engine description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
presto engine for running sql queries
Node details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Region (cloud)
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
us-south
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Version like 0.278 for presto or else
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1.2.3
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{ "associated_catalogs": [ "iceberg_data", "hive_data" ], "description": "presto engine description", "engine_details": { "api_key": "<api_key>", "connection_string": "1.2.3.4", "coordinator": { "node_type": "worker", "quantity": 0 }, "instance_id": "instance_id", "managed_by": "fully/self", "size_config": "starter", "worker": { "node_type": "worker", "quantity": 0 } }, "engine_display_name": "sampleEngine", "first_time_use": true, "origin": "native", "region": "us-south", "tags": [ "tag1", "tag2" ], "version": "1.2.3"}'
Response
EngineDetail
Applicable only for OCP based clusters. This is typically servicename+route
Example:
your-hostname.apps.your-domain.com
Engine status code
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
Associated catalogs
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
watsonx.data build version
Example:
1.0.3.0.0
NodeDescription
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
presto engine for running sql queries
Driver details
Possible values: 0 ≤ number of items ≤ 10000
Node details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Engine properties
Triggers engine restart if value is force
Possible values: [
force
,false
]Example:
force
Group ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new_group_id
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 1024, Value must match regular expression
^[a-zA-Z0-9\-:/_.?=@]+
Example:
ibm-lh-lakehouse-presto-01-presto-svc
Origin - created or registered
Possible values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
native
Engine port
Region (cloud)
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
us-south
RemoveEngine properties
Size config
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
starter
Engine status
Possible values: [
running
,pending
,stopped
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type presto
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
presto
Version of the engine
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1.2.0
NodeDescription
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "view", "use", "update", "select", "access_ui", "associate", "disassociate", "restart", "pause", "resume", "grant", "revoke", "delete", "create", "scale" ], "associated_catalogs": [ "iceberg_data", "hive_data" ], "build_version": "1.1.0.0.0", "coordinator": { "node_type": "bx2.4x16", "quantity": 1 }, "engine_display_name": "starter", "engine_id": "presto511", "external_host_name": "your-hostname.apps.your-domain.com", "group_id": "presto511", "host_name": "1234-xyz456-abc4321.databases.appdomain.cloud", "origin": "native", "port": 30156, "size_config": "starter", "status": "running", "status_code": 0, "tags": [ "tag1", "tag2" ], "type": "presto", "version": "v0.282", "worker": { "node_type": "bx2.4x16", "quantity": 1 } }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines/{engine_id}' -H 'accept: application/json' -H "AuthInstanceId: {instance id}"
Response
EngineDetail
Applicable only for OCP based clusters. This is typically servicename+route
Example:
your-hostname.apps.your-domain.com
Engine status code
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
Associated catalogs
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
watsonx.data build version
Example:
1.0.3.0.0
NodeDescription
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
presto engine for running sql queries
Driver details
Possible values: 0 ≤ number of items ≤ 10000
Node details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Engine properties
Triggers engine restart if value is force
Possible values: [
force
,false
]Example:
force
Group ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new_group_id
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 1024, Value must match regular expression
^[a-zA-Z0-9\-:/_.?=@]+
Example:
ibm-lh-lakehouse-presto-01-presto-svc
Origin - created or registered
Possible values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
native
Engine port
Region (cloud)
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
us-south
RemoveEngine properties
Size config
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
starter
Engine status
Possible values: [
running
,pending
,stopped
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type presto
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
presto
Version of the engine
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1.2.0
NodeDescription
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "view", "use", "update", "select", "access_ui", "associate", "disassociate", "restart", "pause", "resume", "grant", "revoke", "delete", "create", "scale" ], "associated_catalogs": [ "iceberg_data", "hive_data" ], "build_version": "1.1.0.0.0", "coordinator": { "node_type": "bx2.4x16", "quantity": 1 }, "engine_display_name": "starter", "engine_id": "presto511", "external_host_name": "your-hostname.apps.your-domain.com", "group_id": "presto511", "host_name": "1234-xyz456-abc4321.databases.appdomain.cloud", "origin": "native", "port": 30156, "size_config": "starter", "status": "running", "status_code": 0, "tags": [ "tag1", "tag2" ], "type": "presto", "version": "v0.282", "worker": { "node_type": "bx2.4x16", "quantity": 1 } }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'DELETE' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines/{engine_id}' -H 'accept: */*' -H "AuthInstanceId: {instance id}"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Update Engine Body
Modified description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
updated description for presto engine
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Engine properties
- engine_properties
Catalog configuration settings
Configuration settings
Event Listener settings
Global session is to accomodate all the custom properties that can be applicable for both coordinator and worker
JMX Exporter config settings
JVM settings
Log Configuration settings
Triggers engine restart if value is force
Allowable values: [
force
,false
]Example:
force
RemoveEngine properties
- remove_engine_properties
Configuration settings for removing engine properties
JVM properties
Catalog configuration settings
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
JVM properties
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
curl -X 'PATCH' 'https://{cpd host}/lakehouse/api/v2/presto_engines/{engine_id}' -H 'accept: application/json' -H 'Content-Type: application/merge-patch+json' -H "AuthInstanceId: {CRN}" -d '{ "description": "updated description for presto engine", "engine_display_name": "sampleEngine", "engine_properties": { "configuration": { "coordinator": { "property1": "value1" }, "worker": { "property1": "value1" } }, "jvm": { "coordinator": { "property1": "value1" }, "worker": { "property1": "value1" } }, "catalog": { "<catalog_name>": { "coordinator": { "property1": "value1" }, "worker": { "property1": "value1" } } }, "jmx_exporter_config": { "property1": "value1" } "event_listener": { "property1": "value1" }, "log_config": { "coordinator": { "property1": "value1" }, "worker": { "property1": "value1" } }, "global": { "enable-mixed-case-support": "true" } }, "engine_restart": "force", "remove_engine_properties": { "configuration": { "coordinator": [ ], "worker": [ ] }, "jvm": { "coordinator": [ ], "worker": [ ] }, "jmx_exporter_config": [ ], "log_config": { "coordinator": [ ], "worker": [ ] }, "event_listener": [ ], "global": [ ], "catalog": { } }, "tags": [ "tag1", "tag2" ]}'
Response
EngineDetail
Applicable only for OCP based clusters. This is typically servicename+route
Example:
your-hostname.apps.your-domain.com
Engine status code
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
Associated catalogs
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
watsonx.data build version
Example:
1.0.3.0.0
NodeDescription
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 1 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
presto engine for running sql queries
Driver details
Possible values: 0 ≤ number of items ≤ 10000
Node details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Engine properties
Triggers engine restart if value is force
Possible values: [
force
,false
]Example:
force
Group ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new_group_id
Engine host name. In case of OCP based clusters, this is internal hostname
Possible values: 1 ≤ length ≤ 1024, Value must match regular expression
^[a-zA-Z0-9\-:/_.?=@]+
Example:
ibm-lh-lakehouse-presto-01-presto-svc
Origin - created or registered
Possible values: [
native
,external
,discover
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
native
Engine port
Region (cloud)
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
us-south
RemoveEngine properties
Size config
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
starter
Engine status
Possible values: [
running
,pending
,stopped
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Engine type presto
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
presto
Version of the engine
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1.2.0
NodeDescription
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "view", "use", "update", "select", "access_ui", "associate", "disassociate", "restart", "pause", "resume", "grant", "revoke", "delete", "create", "scale" ], "associated_catalogs": [ "iceberg_data", "hive_data" ], "build_version": "1.1.0.0.0", "coordinator": { "node_type": "bx2.4x16", "quantity": 1 }, "engine_display_name": "starter", "engine_id": "presto511", "external_host_name": "your-hostname.apps.your-domain.com", "group_id": "presto511", "host_name": "1234-xyz456-abc4321.databases.appdomain.cloud", "origin": "native", "port": 30156, "size_config": "starter", "status": "running", "status_code": 0, "tags": [ "tag1", "tag2" ], "type": "presto", "version": "v0.282", "worker": { "node_type": "bx2.4x16", "quantity": 1 } }
Get presto engine catalogs
Get list of all catalogs attached to a presto engine
GET /presto_engines/{engine_id}/catalogs
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines/{engine_id}/catalogs' -H 'accept: application/json' -H "AuthInstanceId: {instance id}"
Associate catalogs to presto engine
Associate one or more catalogs to a presto engine
POST /presto_engines/{engine_id}/catalogs
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
{
"catalog_names": "iceberg_data, catalog02"
}
catalog names
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_,]+$
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines/{engine_id}/catalogs' -H 'accept: application/json' -H "Content-Type: application/json" -d '{ "catalog_names": "catalog_name01,catalog_name02" }' -H "AuthInstanceId: {CRN}"
Response
Define the catalog details
list of allowed actions
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "update", "delete" ]
Associated buckets items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "bucket_1", "bucket_2" ]
Associated databases items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "database_1", "database_2" ]
Associated engines items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "engine_1", "engine_2" ]
Name for the catalog
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Table type
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
iceberg
Created by
Example:
<username>@<domain>.com
Created on
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Description
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Iceberg catalog description
IBM thrift uri hostname
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
s3a://samplehost.com
Last sync time
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Managed by
Possible values: [
ibm
,customer
]Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Catalog name
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
glue
IBM thrift uri port
Example:
3232
Catalog status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Sync description
Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Table registration was successful
Tables not sync because data is corrupted
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "table is corrupted", "table metadata not there" ]
Sync status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
SUCCESS
Tags
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "tag1", "tag2" ]
Customer thrift uri
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
thrift://samplehost-catalog:4354
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "view", "update", "delete" ], "associated_buckets": [ "ibm_cos_bucket" ], "associated_databases": [ "iceberg_data" ], "associated_engines": [ "presto367" ], "catalog_name": "iceberg_data", "catalog_type": "iceberg", "created_by": "user@domain.com", "created_on": "1700633239", "description": "catalog description", "hostname": "1234-xyz456-abc4321.lakehouse.dev.appdomain.cloud", "port": "31504", "sync_exception": [ "table is corrupted", "table metadata not there" ], "tags": [ "tag1", "tag2" ], "thrift_uri": "thrift://samplehost-catalog:4354" }
Disassociate catalogs from a presto engine
Disassociate one or more catalogs from a presto engine
DELETE /presto_engines/{engine_id}/catalogs
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Query Parameters
Catalog id(s) to be stopped, comma separated
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_,]+$
curl -X 'DELETE' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines/{engine_id}/catalogs?catalog_names=catalog_name1' -H 'accept: */*' -H "AuthInstanceId: {instance id}"
Get presto engine catalog
Get catalog attached to presto engine
GET /presto_engines/{engine_id}/catalogs/{catalog_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
catalog id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines/{engine_id}/catalogs/{catalog_id}' -H 'accept: application/json' -H "AuthInstanceId: {instance id}"
Response
Define the catalog details
list of allowed actions
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "update", "delete" ]
Associated buckets items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "bucket_1", "bucket_2" ]
Associated databases items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "database_1", "database_2" ]
Associated engines items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "engine_1", "engine_2" ]
Name for the catalog
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Table type
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
iceberg
Created by
Example:
<username>@<domain>.com
Created on
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Description
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Iceberg catalog description
IBM thrift uri hostname
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
s3a://samplehost.com
Last sync time
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Managed by
Possible values: [
ibm
,customer
]Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Catalog name
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
glue
IBM thrift uri port
Example:
3232
Catalog status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Sync description
Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Table registration was successful
Tables not sync because data is corrupted
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "table is corrupted", "table metadata not there" ]
Sync status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
SUCCESS
Tags
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "tag1", "tag2" ]
Customer thrift uri
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
thrift://samplehost-catalog:4354
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "view", "update", "delete" ], "associated_buckets": [ "ibm_cos_bucket" ], "associated_databases": [ "iceberg_data" ], "associated_engines": [ "presto367" ], "catalog_name": "iceberg_data", "catalog_type": "iceberg", "created_by": "user@domain.com", "created_on": "1700633239", "description": "catalog description", "hostname": "1234-xyz456-abc4321.lakehouse.dev.appdomain.cloud", "port": "31504", "sync_exception": [ "table is corrupted", "table metadata not there" ], "tags": [ "tag1", "tag2" ], "thrift_uri": "thrift://samplehost-catalog:4354" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
Presto query to determine explain plan
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
show schemas in catalog_name
Format
Allowable values: [
,
text
,graphviz
,json
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
json
Type
Allowable values: [
,
logical
,distributed
,validate
,io
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
io
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines/{engine_id}/query_explain' -H 'accept: application/json' -H 'Content-Type: application/json' -H "AuthInstanceId: {instance id}" -d '{ "format": "json", "statement": "show schemas in catalog_name", "type": "io"}'
Response
ExplainStatement OK
Response of success
Examples:{ "message": "Successful message", "message_code": "success" }
Result
Possible values: 0 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-z0-9\-]+
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "response": { "message": "explain statement", "message_code": "success" }, "result": "explain statement" }
Explain presto analyze
Return query metrics after query is complete
POST /presto_engines/{engine_id}/query_explain_analyze
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
Presto query to show explain analyze
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^.*$
Example:
show schemas in catalog_name
Verbose
Example:
true
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines/{engine_id}/query_explain_analyze' -H 'accept: application/json' -H 'Content-Type: application/json' -H "AuthInstanceId: {instance id}" -d '{ "statement": "show schemas in catalog_name", "verbose": true}'
Response
explainAnalyzeStatement OK
Response of success
Examples:{ "message": "Successful message", "message_code": "success" }
explainAnalyzeStatement result
Possible values: 0 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-z0-9\-]+
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "response": { "message": "explain presto analyze", "message_code": "success" }, "result": "explain statement" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/presto_engines/{engine_id}/restart' -H 'accept: application/json' -H "AuthInstanceId: {instance id}" -d ''
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "content-type: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines"
Response
List spark engines
List spark engines
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "spark_engines": [ { "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "history_server_endpoint": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_api/v1", "spark_access_endpoint": "https://console.example.com/analytics-engine/details/spark-1717414394213457", "spark_jobs_v4_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/spark_applications", "spark_kernel_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/jkg/api/kernels", "view_history_server": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_ui", "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/abcd-efgh-ijkl-mnop/spark_engines/spark119/applications" }, "engine_display_name": "sample-external-spark-co-located", "engine_id": "spark456", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "spark" }, { "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [ "iceberg_data", "hudi_catalog", "delta_lake" ], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "default_config": { "config1": "value1", "config2": "value2" }, "default_version": "3.3", "endpoints": { "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/spark_engines/spark123/applications", "wxd_engine_endpoint": "https://example.com/lakehouse/api/v2/spark_engines/spark123", "wxd_history_server_endpoint": "https://example.com/lakehouse/api/v2/spark_engines/spark123/history_server", "wxd_history_server_ui_endpoint": "https://example.com/lakehouse/api/v2/1234567890123456/spark_engines/spark123/history_server/ui" }, "engine_home_volume": "cpd-instance::volume-name" }, "engine_display_name": "sample-native-spark", "engine_id": "spark123", "origin": "native", "status": "running", "tags": [], "type": "spark" } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Create spark engine Body
{
"description": "",
"engine_details": {
"default_version": "3.3",
"engine_home_bucket_name": "4fec0f8b-888a-4c16-8f38-250c8499e6ce-customer"
},
"engine_display_name": "sample-native-spark-existing-volume",
"associated_catalogs": [
"iceberg_data"
],
"origin": "native"
}
{
"description": "",
"engine_details": {
"default_version": "3.3",
"engine_home_volume_storage_size": "5Gi",
"engine_home_volume_name": "volume-name",
"engine_home_volume_storage_class": "nfs-client"
},
"engine_display_name": "sample-native-spark-new-volume",
"associated_catalogs": [
"iceberg_data",
"hive_data"
],
"origin": "native"
}
{
"description": "",
"engine_details": {
"instance_id": "1716437041193635"
},
"engine_display_name": "sample-external-spark-co-located",
"origin": "discover"
}
{
"description": "",
"engine_details": {
"connection_string": "https://<host>/<version>/analytics_engines/<instance_id>",
"api_key": "api_Key",
"managed_by": "fully"
},
"engine_display_name": "sample-external-spark-fully-managed",
"origin": "external"
}
{
"description": "",
"engine_details": {
"connection_string": "hhttps://<host>/<version>/analytics_engines/<instance_id>",
"api_key": "zen_api_Key",
"managed_by": "self"
},
"engine_display_name": "sample-external-spark-self-managed",
"origin": "external"
}
Origin - created or registered
Allowable values: [
external
,discover
,native
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
external
Associated catalogs
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "iceberg_data", "hive_data" ]
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
spark engine description
Node details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Engine status
Possible values: 1 ≤ length ≤ 25, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
provisioning
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
curl -X POST -H "content-type: application/json" -H "accept: application/json" -d '{ "description": "","engine_details": {"default_version": "3.3","engine_home_bucket_name": "4fec0f8b-888a-4c16-8f38-250c8499e6ce-customer"},"engine_display_name": "sample-native-spark-existing-volume","associated_catalogs": ["iceberg_data"],"origin": "native"}' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines"
curl -X POST -H "content-type: application/json" -H "accept: application/json" -d '{"description": "","engine_details": {"default_version": "3.3","engine_home_volume_storage_size": "5Gi","engine_home_volume_name": "volume-name","engine_home_volume_storage_class": "nfs-client"},"engine_display_name": "sample-native-spark-new-volume","associated_catalogs": ["iceberg_data","hive_data"],"origin": "native"}' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines"
curl -X POST -H "content-type: application/json" -H "accept: application/json" -d '{"description": "","engine_details": {"instance_id": "1716437041193635"},"engine_display_name": "sample-external-spark-co-located","origin": "discover"}' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines"
curl -X POST -H "content-type: application/json" -H "accept: application/json" -d '{"description": "","engine_details": {"connection_string": "https://<host>/<version>/analytics_engines/<instance_id>","api_key": "api_Key","managed_by": "fully"},"engine_display_name": "sample-external-spark-fully-managed","origin": "external"}' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines"
curl -X POST -H "content-type: application/json" -H "accept: application/json" -d '{"description": "","engine_details": {"connection_string": "hhttps://<host>/<version>/analytics_engines/<instance_id>","api_key": "zen_api_Key","managed_by": "self"},"engine_display_name": "sample-external-spark-self-managed","origin": "external"}' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines"
Response
EngineDetail
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
Associated catalogs
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
watsonx.data build version
Example:
1.0.3.0.0
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
spark engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Origin - created or registered
Possible values: [
external
,discover
,native
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
external
Engine status
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
Registered
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Type like spark, netezza,..
Possible values: [
spark
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
spark
Status Code
Accepted
Error
Unauthorized
Not found
Internal server error
{ "actions": [], "associated_catalogs": [ "iceberg_data" ], "engine_id": "spark123", "origin": "native", "status": "runnung", "tags": [ "tag1", "tag2" ] }
{ "actions": [], "associated_catalogs": [], "engine_id": "spark530", "origin": "discover", "status": "registered", "tags": [ "tag1", "tag2" ] }
{ "actions": [], "associated_catalogs": [], "engine_id": "spark810", "origin": "external", "status": "", "tags": [ "tag1", "tag2" ] }
{ "actions": [], "associated_catalogs": [], "engine_id": "spark728", "origin": "external", "status": "registered", "tags": [ "tag1", "tag2" ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: */*" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}"
Response
EngineDetail
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
Associated catalogs
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
watsonx.data build version
Example:
1.0.3.0.0
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
spark engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Origin - created or registered
Possible values: [
external
,discover
,native
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
external
Engine status
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
Registered
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Type like spark, netezza,..
Possible values: [
spark
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
spark
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [ "iceberg_data", "hudi_catalog", "delta_lake" ], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "default_config": { "config1": "value1", "config2": "value2" }, "default_version": "3.3", "endpoints": { "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/spark_engines/spark123/applications", "wxd_engine_endpoint": "https://example.com/lakehouse/api/v2/spark_engines/spark123", "wxd_history_server_endpoint": "https://example.com/lakehouse/api/v2/spark_engines/spark123/history_server", "wxd_history_server_ui_endpoint": "https://example.com/lakehouse/api/v2/1234567890123456/spark_engines/spark123/history_server/ui" }, "engine_home_volume": "cpd-instance::volume-name" }, "engine_display_name": "sample-narive-spark", "engine_id": "spark123", "origin": "native", "status": "running", "tags": [], "type": "spark" }
{ "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "history_server_endpoint": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_api/v1", "spark_access_endpoint": "https://console.example.com/analytics-engine/details/spark-1234567890123456", "spark_jobs_v4_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/spark_applications", "spark_kernel_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/jkg/api/kernels", "view_history_server": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_ui", "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/abcd-efgh-ijkl-mnop/spark_engines/spark119/applications" }, "engine_display_name": "sample-external-spark-co-located", "engine_id": "spark456", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "spark" }
{ "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "applications_api": "https://api.example.com/v3/analytics_engines/abcd-efgh-ijkl-mnop/applications", "history_server_endpoint": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_api/v1", "view_history_server": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_ui", "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/abcd-efgh-ijkl-mnop/spark_engines/spark119/applications" }, "engine_display_name": "sample-external-spark-fully-managed", "engine_id": "spark456", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "spark" }
{ "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "connection_string": "https://api.example.com/v3/analytics_engines/abcd-efgh-ijkl-mnop", "endpoints": { "history_server_endpoint": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_api/v1", "spark_access_endpoint": "https://console.example.com/analytics-engine/details/spark-1234567890123456", "spark_jobs_v4_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/spark_applications", "spark_kernel_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/jkg/api/kernels", "view_history_server": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_ui", "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/abcd-efgh-ijkl-mnop/spark_engines/spark119/applications" } }, "engine_display_name": "sample-external-spark-self-managed", "engine_id": "spark456", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "spark" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X DELETE -H "accept: */*" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Update Engine Body
{
"engine_display_name": "Updated Display Name",
"description": "Updated Description",
"tags": [
"tag1",
"tag2"
],
"engine_details": {
"default_config": {
"config1": "value1",
"config2": "value2"
},
"default_version": "3.4",
"resource_limits": {
"cores": "No. of CPU limit",
"memory": "Amount of memory limit in GBs"
},
"resource_limit_enabled": true
}
}
{
"engine_display_name": "Updated Display Name",
"description": "Updated description ",
"tags": [
"tag1"
]
}
Modified description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
updated description for spark engine
Engine details
- engine_details
Dynamic dict
- default_config
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
The default spark version for the native engine
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
^[a-zA-Z0-9\-\.]+
Example:
4.8.3
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
sampleEngine
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
curl -X PATCH -H "content-type: application/json" -H "accept: application/json" -d '{ "description": "Updated Description", "engine_details": { "default_config": { "config1": "value1", "config2": "value2" }, "default_version": "3.4" }, "engine_display_name": "Updated Display Name", "tags": [ "tag1", "tag2" ] }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}"
curl -X PATCH -H "content-type: application/json" -H "accept: application/json" -d '{ "description": "Updated description", "engine_display_name": "Updated Display Name", "tags": [ "tag1" ] }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}"
Response
EngineDetail
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
Associated catalogs
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "iceberg_data", "hive_data" ]
watsonx.data build version
Example:
1.0.3.0.0
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Engine description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
spark engine for running sql queries
External engine details
Engine display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine
Engine programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleEngine123
Origin - created or registered
Possible values: [
external
,discover
,native
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
external
Engine status
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
Registered
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
Type like spark, netezza,..
Possible values: [
spark
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
spark
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [ "iceberg_data", "hudi_catalog", "delta_lake" ], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "default_config": { "config1": "value1", "config2": "value2" }, "default_version": "3.3", "endpoints": { "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/spark_engines/spark123/applications", "wxd_engine_endpoint": "https://example.com/lakehouse/api/v2/spark_engines/spark123", "wxd_history_server_endpoint": "https://example.com/lakehouse/api/v2/spark_engines/spark123/history_server", "wxd_history_server_ui_endpoint": "https://example.com/lakehouse/api/v2/1234567890123456/spark_engines/spark123/history_server/ui" }, "engine_home_volume": "cpd-instance::volume-name" }, "engine_display_name": "sample-narive-spark", "engine_id": "spark123", "origin": "native", "status": "running", "tags": [], "type": "spark" }
{ "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "history_server_endpoint": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_api/v1", "spark_access_endpoint": "https://console.example.com/analytics-engine/details/spark-1234567890123456", "spark_jobs_v4_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/spark_applications", "spark_kernel_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/jkg/api/kernels", "view_history_server": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_ui", "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/abcd-efgh-ijkl-mnop/spark_engines/spark119/applications" }, "engine_display_name": "sample-external-spark-co-located", "engine_id": "spark456", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "spark" }
{ "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "applications_api": "https://api.example.com/v3/analytics_engines/abcd-efgh-ijkl-mnop/applications", "history_server_endpoint": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_api/v1", "view_history_server": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_ui", "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/abcd-efgh-ijkl-mnop/spark_engines/spark119/applications" }, "engine_display_name": "sample-external-spark-fully-managed", "engine_id": "spark456", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "spark" }
{ "actions": [ "action1", "action2", "action3" ], "associated_catalogs": [], "created_by": "user@example.com", "created_on": 1234567890, "description": "Sample Description", "engine_details": { "connection_string": "https://api.example.com/v3/analytics_engines/abcd-efgh-ijkl-mnop", "endpoints": { "history_server_endpoint": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_api/v1", "spark_access_endpoint": "https://console.example.com/analytics-engine/details/spark-1234567890123456", "spark_jobs_v4_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/spark_applications", "spark_kernel_endpoint": "https://console.example.com/v4/analytics_engines/abcd-efgh-ijkl-mnop/jkg/api/kernels", "view_history_server": "https://console.example.com/v3/analytic_engines/abcd-efgh-ijkl-mnop/spark_history_ui", "wxd_application_endpoint": "https://example.com/lakehouse/api/v2/abcd-efgh-ijkl-mnop/spark_engines/spark119/applications" } }, "engine_display_name": "sample-external-spark-self-managed", "engine_id": "spark456", "origin": "external", "status": "REGISTERED", "tags": [ "tag1", "tag2" ], "type": "spark" }
List all applications in a spark engine
List all applications in a spark engine
GET /spark_engines/{engine_id}/applications
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Query Parameters
state
Possible values: 0 ≤ number of items ≤ 100, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
curl -X GET -H "content-type: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/applications"
Response
Engine Application Detail
Application body
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "applications": [ { "application_id": "93b1a765-e3bc-4972-acc4-5b3d1a0f5d62", "auto_termination_time": "2024-05-15T18:11:54.615Z", "id": "93b1a765-e3bc-4972-acc4-5b3d1a0f5d62", "spark_application_id": "app-20240415181154-0000", "spark_application_name": "auto-scale-test", "spark_version": "3.4", "start_time": "2024-04-15T18:11:54.615Z", "state": "running", "submission_time": "2024-04-15T18:11:21.458Z" }, { "application_id": "b2d3f4g5-h6i7-j8k9-l0m1-n2o3p4q5r6s7", "auto_termination_time": "2025-06-16T19:12:55.716Z", "id": "b2d3f4g5-h6i7-j8k9-l0m1-n2o3p4q5r6s7", "spark_application_id": "app-20250516191255-0001", "spark_application_name": "data-processing-test", "spark_version": "3.3", "start_time": "2025-05-16T19:12:55.716Z", "state": "finished", "submission_time": "2025-05-16T19:12:22.559Z" } ] }
{ "applications": [ { "application_id": "abcd-efgh-5806ab96-a5ba-4488-871b-162e13f6bf90", "id": "abcd-efgh-5806ab96-a5ba-4488-871b-162e13f6bf90", "runtime": { "spark_version": "3.3" }, "state": "accepted", "submission_time": "2024-04-15T18:13:17.507Z" }, { "application_id": "abcd-efgh-0969c82b-2980-48f4-8896-800e311a4696", "auto_termination_time": "2024-03-25T15:57:06.762Z", "end_time": "2024-03-22T15:57:24.703Z", "finish_time": "2024-03-22T15:57:24.703Z", "id": "abcd-efgh-0969c82b-2980-48f4-8896-800e311a4696", "runtime": { "spark_version": "3.3" }, "spark_application_id": "app-20240322155706-0000", "spark_application_name": "PythonWordCount", "start_time": "2024-03-22T15:57:06.762Z", "state": "finished", "submission_time": "2024-03-22T15:56:41.400Z" } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Query Parameters
state
Possible values: 0 ≤ number of items ≤ 100, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Create spark application parameters
{
"application_details": {
"application": "/opt/ibm/spark/examples/src/main/python/wordcount.py",
"arguments": [
"/opt/ibm/spark/examples/src/main/resources/people.txt"
]
}
}
Application details
Job endpoint
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^.+$
Example:
<host>/v4/analytics_engines/c7b3fccf-badb-46b0-b1ef-9b3154424021/engine_applications
Service Instance ID for POST
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Engine Type
Allowable values: [
iae
,emr
]Example:
iae
Spark application volumes to mount
Possible values: 0 ≤ number of items ≤ 100
curl -X POST -H "content-type: application/json" -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -d '{ "application_details": { "application": "s3://mybucket/wordcount.py", "arguments": [ "people.txt" ], "conf": { "additionalProp1": "key:value", "additionalProp2": "key:value", "additionalProp3": "key:value" }, "env": { "additionalProp1": "key:value", "additionalProp2": "key:value", "additionalProp3": "key:value" }, "name": "SparkApplicaton1" }, "job_endpoint": "<host>/v4/analytics_engines/c7b3fccf-badb-46b0-b1ef-9b3154424021/engine_applications", "service_instance_id": "3FGeNUZqcdu6rOFbaHhGBoNdCHj98UoHd6nUFqkfsKhgacYD8ImM6iSA_F-TjHUdEZuVsoQTmOn", "type": "iae" }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/applications"
Response
Engine Application Status
Application details
Application ID
Example:
cd7cbf1f-8893-4c51-aa3d-d92729f05e99
Auto Termination Time
Example:
2020-12-08T10:00:00.000Z
Creation time
Example:
Saturday 28 October 2023 07:17:06.856+0000
Deployment mode
Example:
stand-alone
End Time
Example:
2020-12-08T10:00:00.000Z
Failed time
Finish time
Example:
Saturday 28 October 2023 07:17:38.966+0000
Application ID
Example:
cd7cbf1f-8893-4c51-aa3d-d92729f05e99
Job endpoint
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^.+$
Example:
<host>/v4/analytics_engines/c7b3fccf-badb-46b0-b1ef-9b3154424021/engine_applications
Return code
Example:
0
application run time
Service Instance ID for POST
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Spark application ID
Example:
app-20231028071726-0000
Spark application name
Example:
PythonWordCount
Spark Version
Possible values: 1 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-\.]+
Example:
3.3
Start time
Example:
Saturday 28 October 2023 07:17:26.649+0000
Application state
Example:
FINISHED
Application state details
Possible values: 0 ≤ number of items ≤ 10000
Application submission time
Example:
2023-11-01T11:18:49.758Z
Template ID
Example:
spark-3.3-jaas-v2-cp4d-template
Engine Type
Possible values: [
iae
,emr
]Example:
iae
Spark application volumes to mount
Possible values: 0 ≤ number of items ≤ 100
Wxd history_server endpoint
Example:
$HOST/v1/1698311655308796/engines/spark817/applications/c7b3fccf-badb-46b0-b1ef-9b3154424021/ui
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "id": "2ad2af4b-9747-4652-8e6e-d0a91599f9a2", "state": "accepted" }
Stop Spark Applications
Stop a running spark application
DELETE /spark_engines/{engine_id}/applications
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Query Parameters
Application id(s) to be stopped, comma separated
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
state
Possible values: 0 ≤ number of items ≤ 100, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
curl -X DELETE -H "accept: */*" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/applications?application_id={application_id}"
Get spark application
Get status of spark application
GET /spark_engines/{engine_id}/applications/{application_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Application id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "content-type: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/applications/{application_id}"
Response
Engine Application Status
Application details
Application ID
Example:
cd7cbf1f-8893-4c51-aa3d-d92729f05e99
Auto Termination Time
Example:
2020-12-08T10:00:00.000Z
Creation time
Example:
Saturday 28 October 2023 07:17:06.856+0000
Deployment mode
Example:
stand-alone
End Time
Example:
2020-12-08T10:00:00.000Z
Failed time
Finish time
Example:
Saturday 28 October 2023 07:17:38.966+0000
Application ID
Example:
cd7cbf1f-8893-4c51-aa3d-d92729f05e99
Job endpoint
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^.+$
Example:
<host>/v4/analytics_engines/c7b3fccf-badb-46b0-b1ef-9b3154424021/engine_applications
Return code
Example:
0
application run time
Service Instance ID for POST
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Spark application ID
Example:
app-20231028071726-0000
Spark application name
Example:
PythonWordCount
Spark Version
Possible values: 1 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-\.]+
Example:
3.3
Start time
Example:
Saturday 28 October 2023 07:17:26.649+0000
Application state
Example:
FINISHED
Application state details
Possible values: 0 ≤ number of items ≤ 10000
Application submission time
Example:
2023-11-01T11:18:49.758Z
Template ID
Example:
spark-3.3-jaas-v2-cp4d-template
Engine Type
Possible values: [
iae
,emr
]Example:
iae
Spark application volumes to mount
Possible values: 0 ≤ number of items ≤ 100
Wxd history_server endpoint
Example:
$HOST/v1/1698311655308796/engines/spark817/applications/c7b3fccf-badb-46b0-b1ef-9b3154424021/ui
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "application_details": { "application": "/opt/ibm/spark/examples/src/main/python/wordcount.py", "conf": { "ae.spark.executor.count": "1", "spark.app.name": "MyJob", "spark.driver.cores": "1", "spark.driver.memory": "4G", "spark.eventLog.enabled": "true", "spark.executor.cores": "1", "spark.executor.memory": "4G" }, "env": { "SAMPLE_ENV_KEY": "SAMPLE_VALUE" }, "spark_version": "3.3" }, "application_id": "ff053468-9d89-468e-a5af-bd96b88c5bf5", "auto_termination_time": "2024-05-16T06:56:51.469Z", "end_time": "2024-04-16T06:57:19.912Z", "finish_time": "2024-04-16T06:57:19.912Z", "id": "ff053468-9d89-468e-a5af-bd96b88c5bf5", "return_code": "0", "spark_application_id": "app-20240416065651-0000", "spark_application_name": "PythonWordCount", "spark_version": "3.3", "start_time": "2024-04-16T06:56:51.469Z", "state": "finished", "submission_time": "2024-04-16T06:56:22.909Z" }
Get spark engine catalogs
Get list of all catalogs attached to a spark engine
GET /spark_engines/{engine_id}/catalogs
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/catalogs' -H 'accept: application/json' -H "AuthInstanceId: {instance id}"
Response
GetCatalogs OK
Catalogs
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "catalogs": [ { "actions": [ "action1", "action2" ], "associated_buckets": [], "associated_databases": [], "associated_engines": [], "catalog_name": "iceberg_data", "sync_exception": [], "tags": [ "tag1", "tag2" ] }, { "actions": [ "action3", "action4" ], "associated_buckets": [], "associated_databases": [], "associated_engines": [], "catalog_name": "hudi", "sync_exception": [], "tags": [ "tag3", "tag4" ] }, { "actions": [ "action5", "action6" ], "associated_buckets": [], "associated_databases": [], "associated_engines": [], "catalog_name": "delta_lake", "sync_exception": [], "tags": [ "tag5", "tag6" ] } ] }
Associate catalogs to spark engine
Associate one or more catalogs to a spark engine
POST /spark_engines/{engine_id}/catalogs
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
{
"catalog_names": "iceberg_data, catalog02"
}
catalog names
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_,]+$
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/catalogs' -H 'accept: application/json' -d '{ "catalog_names": "catalog_name01,catalog_name02" }' -H "AuthInstanceId: {CRN}"
Response
Define the catalog details
list of allowed actions
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "update", "delete" ]
Associated buckets items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "bucket_1", "bucket_2" ]
Associated databases items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "database_1", "database_2" ]
Associated engines items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "engine_1", "engine_2" ]
Name for the catalog
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Table type
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
iceberg
Created by
Example:
<username>@<domain>.com
Created on
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Description
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Iceberg catalog description
IBM thrift uri hostname
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
s3a://samplehost.com
Last sync time
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Managed by
Possible values: [
ibm
,customer
]Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Catalog name
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
glue
IBM thrift uri port
Example:
3232
Catalog status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Sync description
Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Table registration was successful
Tables not sync because data is corrupted
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "table is corrupted", "table metadata not there" ]
Sync status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
SUCCESS
Tags
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "tag1", "tag2" ]
Customer thrift uri
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
thrift://samplehost-catalog:4354
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "catalogs": [ { "actions": [ "action1", "action2" ], "catalog_name": "iceberg_data", "sync_exception": [], "tags": [ "tag1", "tag2" ] } ] }
Disassociate catalogs from a spark engine
Disassociate one or more catalogs from a spark engine
DELETE /spark_engines/{engine_id}/catalogs
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Query Parameters
Catalog id(s) to be stopped, comma separated
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_,]+$
curl -X 'DELETE' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/catalogs?catalog_names=catalog_name1' -H 'accept: */*' -H "AuthInstanceId: {instance id}"
Get spark engine catalog
Get catalog attached to spark engine
GET /spark_engines/{engine_id}/catalogs/{catalog_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
catalog id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/catalogs/{catalog_id}' -H 'accept: application/json' -H "AuthInstanceId: {instance id}"
Response
Define the catalog details
list of allowed actions
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "update", "delete" ]
Associated buckets items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "bucket_1", "bucket_2" ]
Associated databases items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "database_1", "database_2" ]
Associated engines items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "engine_1", "engine_2" ]
Name for the catalog
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Table type
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
iceberg
Created by
Example:
<username>@<domain>.com
Created on
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Description
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Iceberg catalog description
IBM thrift uri hostname
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
s3a://samplehost.com
Last sync time
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Managed by
Possible values: [
ibm
,customer
]Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Catalog name
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
glue
IBM thrift uri port
Example:
3232
Catalog status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Sync description
Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Table registration was successful
Tables not sync because data is corrupted
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "table is corrupted", "table metadata not there" ]
Sync status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
SUCCESS
Tags
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "tag1", "tag2" ]
Customer thrift uri
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
thrift://samplehost-catalog:4354
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [], "associated_buckets": [ "d501dc2b-05db-4d93-9aed-edf93c7bb0f6-customer" ], "associated_databases": [], "associated_engines": [ "presto459", "spark422" ], "catalog_name": "iceberg_data", "catalog_type": "iceberg", "created_by": "user@example.com", "created_on": "1713155437", "description": "icebarg_data", "hostname": "hostname", "port": "<port>", "sync_exception": [], "tags": [], "thrift_uri": "thrift://<hostname>:<port>" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "content-type: application/json" -H "AuthInstanceId: {instance id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/history_server"
Response
Native spark history server
History server start time
Possible values: 1 ≤ length ≤ 25, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
2022-02-24T07:37:47Z
History server cores
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1
History server memory
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
4G
History server start time
Possible values: 1 ≤ length ≤ 25, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
2022-02-21T07:37:47Z
History server state
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
started
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "auto_termination_time": "2022-02-24T07:37:47Z", "cores": "1", "memory": "4G", "start_time": "2022-02-21T07:37:47Z", "state": "started" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Start history server parameter
CPU count
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
^\d+$
Example:
1
Memory in GiB
Possible values: 2 ≤ length ≤ 10, Value must match regular expression
^[0-9]+G$
Example:
4G
curl -X POST -H "content-type: application/json" -H "AuthInstanceId: {instance id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/history_server"
Response
Native spark history server
History server start time
Possible values: 1 ≤ length ≤ 25, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
2022-02-24T07:37:47Z
History server cores
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1
History server memory
Possible values: 1 ≤ length ≤ 10, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
4G
History server start time
Possible values: 1 ≤ length ≤ 25, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
2022-02-21T07:37:47Z
History server state
Possible values: 1 ≤ length ≤ 20, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
started
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "auto_termination_time": "2022-02-24T07:37:47Z", "cores": "1", "memory": "4G", "start_time": "2022-02-21T07:37:47Z", "state": "started" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
engine id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X DELETE -H "content-type: application/json" -H "AuthInstanceId: {instance id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/spark_engines/{engine_id}/history_server"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Response
List spark version
Response of success
Examples:{ "message": "Successful message", "message_code": "success" }
Spark versions list
Possible values: 1 ≤ number of items ≤ 100
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "response": { "message": "List spark versions", "message_code": "success" }, "spark_versions": [ { "display_name": "3.3" } ] }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Engine name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Execute query description
query to be executed
Possible values: 1 ≤ length ≤ 65535, Value must match regular expression
^.*$
Example:
select expenses from expenditure
Name of the catalog
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Schema name
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
SampleSchema1
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/queries/execute/{engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}' -H 'Content-Type: application/json' -d '{ "sql_string": "show catalogs", "catalog_name": "sampleCatalogh", "schema_name": "SampleSchema1" }'
Request
Custom Headers
CRN
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "content-type: application/json" -H "AuthInstanceId: {instance id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/instance_details"
Response
List all Instance Details
Engines and Services
Possible values: 0 ≤ number of items ≤ 10000
Watsonx Instance Details
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "engines_services": [ { "details": [ { "SSL_certificate": "presto-java1-ssl-certificate", "external": { "hostname": "presto-java1-external-hostname", "port": 443 }, "id": "presto-java1-id", "internal": { "hostname": "presto-java1-internal-hostname", "port": 8443 }, "name": "PrestoJava1", "version": "Java" }, { "SSL_certificate": "presto-java2-ssl-certificate", "external": { "hostname": "presto-java2-external-hostname", "port": 443 }, "id": "presto-java2-id", "internal": { "hostname": "presto-java2-internal-hostname", "port": 8443 }, "name": "PrestoJava2", "version": "Java" }, { "SSL_certificate": "presto-cpp1-ssl-certificate", "external": { "hostname": "presto-cpp1-external-hostname", "port": 443 }, "id": "presto-cpp1-id", "internal": { "hostname": "presto-cpp1-internal-hostname", "port": 8443 }, "name": "PrestoCpp1", "version": "C++" }, { "SSL_certificate": "presto-cpp2-ssl-certificate", "external": { "hostname": "presto-cpp2-external-hostname", "port": 443 }, "id": "presto-cpp2-id", "internal": { "hostname": "presto-cpp2-internal-hostname", "port": 8443 }, "name": "PrestoCpp2", "version": "C++" } ], "type": "Presto" }, { "details": [ { "SSL_certificate": "spark1-ssl-certificate", "default_configs": { "config1": "value1", "config2": "value2" }, "id": "spark1-id", "name": "Spark1", "port": 443, "spark_engine_endpoint": "spark1-engine-endpoint", "watsonx_data_application_endpoint": "spark1-watsonx-data-app-endpoint" }, { "SSL_certificate": "spark2-ssl-certificate", "default_configs": { "config1": "value1", "config2": "value2" }, "id": "spark2-id", "name": "Spark2", "port": 443, "spark_engine_endpoint": "spark2-engine-endpoint", "watsonx_data_application_endpoint": "spark2-watsonx-data-app-endpoint" } ], "type": "Spark" }, { "details": [ { "SSL_certificate": "milvus1-ssl-certificate", "grpc-api-endpoint": { "hostname": "milvus1-grpc-hostname", "port": 19530 }, "id": "milvus1-id", "name": "Milvus1", "rest-api-endpoint": { "hostname": "milvus1-rest-hostname", "port": 443 } }, { "SSL_certificate": "milvus2-ssl-certificate", "grpc-api-endpoint": { "hostname": "milvus2-grpc-hostname", "port": 19530 }, "id": "milvus2-id", "name": "Milvus2", "rest-api-endpoint": { "hostname": "milvus2-rest-hostname", "port": 443 } } ], "type": "Milvus" }, { "details": [ { "SSL_certificate": "cas-ssl-certificate", "hostname": "cas-hostname", "id": "cas-id", "port": 443 } ], "type": "Content_Awareness_Storage" }, { "details": [ { "SSL_certificate": "cpg-ssl-certificate", "hostname": "cpg-hostname", "id": "cpg-id", "port": 443 } ], "type": "Common_Policy_Gateway" } ], "Watsonx_data_instance": { "hostname": "your-instance-hostname", "instance_CRN": "your-instance-crn", "instance_ID": "your-instance-id", "port": 1234, "ssl_certificate": "your-ssl-certificate" } }
Get engines and services detail
Get engines and services detail
GET /instance_details/engines_services
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
Target type (e.g., 'cpd', 'generic')
Possible values: 1 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Internal host
Default:
false
Get services details
Get services details for a given engine or service type.
GET /instance_details/engines_services/{engine_or_service_type}
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Type of engine or service (e.g., 'milvus', 'presto')
Possible values: 1 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Query Parameters
Target type (e.g., 'cpd', 'generic')
Possible values: 1 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Internal host
Default:
false
Get Milvus service detail
Get Milvus service detail
GET /instance_details/engines_services/{engine_or_service_type}/id/{id}
Request
Custom Headers
CRN
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Type of engine or service (e.g., 'milvus', 'presto')
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Service ID
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Query Parameters
Target type (e.g., 'cpd', 'generic')
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Database name in milvus
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Internal host
Default:
false
Response
Get Milvus Service Detail for target type = cpd
The name of the connection, typically engine_id or service_id
Example:
presto-01
Watsonx Instance Details
Service connection properties
Type of the service
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
presto
Status Code
Success
Error
Unauthorized
Forbidden
Not found
Internal server error
No Sample Response
Get catalog properties by catalog_id
Get catalog properties of a catalog identified by catalog_id
GET /catalogs/{catalog_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog ID
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
Define the catalog details
list of allowed actions
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "update", "delete" ]
Associated buckets items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "bucket_1", "bucket_2" ]
Associated databases items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "database_1", "database_2" ]
Associated engines items
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "engine_1", "engine_2" ]
Name for the catalog
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sampleCatalog
Table type
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
iceberg
Created by
Example:
<username>@<domain>.com
Created on
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Description
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Iceberg catalog description
IBM thrift uri hostname
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
s3a://samplehost.com
Last sync time
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
1602839833
Managed by
Possible values: [
ibm
,customer
]Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
ibm
Catalog name
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
glue
IBM thrift uri port
Example:
3232
Catalog status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Sync description
Possible values: 0 ≤ length ≤ 100, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
Table registration was successful
Tables not sync because data is corrupted
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Examples:[ "table is corrupted", "table metadata not there" ]
Sync status
Possible values: 0 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
SUCCESS
Tags
Possible values: 0 ≤ number of items ≤ 1000
Examples:[ "tag1", "tag2" ]
Customer thrift uri
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
thrift://samplehost-catalog:4354
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "view", "update", "delete" ], "associated_buckets": [ "ibm_cos_bucket" ], "associated_databases": [ "iceberg_data" ], "associated_engines": [ "presto367" ], "catalog_name": "iceberg_data", "catalog_type": "iceberg", "created_by": "user@domain.com", "created_on": "1700633239", "description": "catalog description", "hostname": "1234-xyz456-abc4321.lakehouse.dev.appdomain.cloud", "port": "31504", "sync_exception": [ "table is corrupted", "table metadata not there" ], "tags": [ "tag1", "tag2" ], "thrift_uri": "thrift://samplehost-catalog:4354" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Query Parameters
Engine name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas?engine_id={engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
GetSchemas OK
Response of success
Examples:{ "message": "Successful message", "message_code": "success" }
Schemas
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "response": { "message": "create schema", "message_code": "success" }, "schemas": [ "schema1", "schema2" ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Query Parameters
Engine name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
Path associated with bucket
Possible values: 0 ≤ length ≤ 2000, Value must match regular expression
^.*$
Example:
sample-path
Schema name
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
SampleSchema1
Bucket associated to metastore where schema will be added
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
sample-bucket
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas?engine_id={engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}' -H 'Content-Type: application/json' -d '{ "bucket_name": "sample-bucket", "custom_path": "sample-path", "schema_name": "SampleSchema1" }'
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
URL encoded Schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Query Parameters
Engine name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'DELETE' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}?engine_id={engine_id}' -H 'accept: */*' -H 'AuthInstanceId: {instance_id}'
List all tables
List all tables in a schema in a catalog for a given engine
GET /catalogs/{catalog_id}/schemas/{schema_id}/tables
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
Query Parameters
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables?engine_id={engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
tables list
List of the tables present in the schema
Possible values: 0 ≤ number of items ≤ 1000000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "tables": [ "customer_data", "user_data" ] }
Get table details
Get details of a given table in a catalog and schema
GET /catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
URL encoded table name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Query Parameters
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}?engine_id={engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
GetColumns OK
Columns
Possible values: 0 ≤ number of items ≤ 1000000
Table name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "columns": [ { "column_name": "expenses", "comment": "", "extra": "", "precision": "1234567890", "type": "varchar" }, { "column_name": "amount", "comment": "", "extra": "", "scale": "10", "precision": "1234567890", "type": "integer" } ], "table_name": "newtable" }
Delete table
Delete table for a given schema and catalog
DELETE /catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
URL encoded table name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Query Parameters
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'DELETE' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}?engine_id={engine_id}' -H 'accept: */*' -H 'AuthInstanceId: {instance_id}'
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
URL encoded table name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Query Parameters
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
New table name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
updated_table_name
curl -X 'PATCH' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}?engine_id={engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}' -H 'Content-Type: application/merge-patch+json' -d '{ "table_name": "updated_table_name", }'
Response
GetColumns OK
Columns
Possible values: 0 ≤ number of items ≤ 1000000
Table name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "columns": [ { "column_name": "expenses", "comment": "", "extra": "", "precision": "1234567890", "type": "varchar" }, { "column_name": "amount", "comment": "", "extra": "", "scale": "10", "precision": "1234567890", "type": "integer" } ], "table_name": "newtable" }
List all columns of a table
List all columns of a table in a given a schema for a given catalog
GET /catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/columns
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
Query Parameters
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/columns?engine_id={engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
list of columns in a table
List of the columns present in the table
Possible values: 0 ≤ number of items ≤ 1000000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "columns": [ { "column_name": "expenses", "comment": "expenses", "extra": "", "precision": "1234567890", "type": "varchar" }, { "column_name": "amount", "comment": "amount", "extra": "", "scale": "10", "type": "integer" } ] }
Add column(s)
Add one or multiple columns to a table in a schema for a given catalog
POST /catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/columns
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
Query Parameters
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
{
"columns": [
{
"column_name": "expenses",
"type": "varchar"
}
]
}
List of the tables present in the schema
Possible values: 0 ≤ number of items ≤ 1000000
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/columns?engine_id={engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}' -H 'Content-Type: application/json' -d '{ "bucket_name": "sample-bucket", "custom_path": "sample-path", "schema_name": "SampleSchema1" }'
Response
list of columns in a table
List of the columns present in the table
Possible values: 0 ≤ number of items ≤ 1000000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "columns": [ { "column_name": "expenses", "comment": "expenses", "extra": "", "precision": "1234567890", "type": "varchar" }, { "column_name": "amount", "comment": "amount", "extra": "", "scale": "10", "type": "integer" } ] }
Delete column
Delete column in a table for a given schema and catalog
DELETE /catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/columns/{column_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
Query Parameters
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'DELETE' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}?engine_id={engine_id}' -H 'accept: */*' -H 'AuthInstanceId: {instance_id}'
Alter column
Update the given column - rename column
PATCH /catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/columns/{column_id}
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
URL encoded schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-%]+$
Query Parameters
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
{
"column_name": "expenses"
}
Column name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
expenses
curl -X 'PATCH' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}?engine_id={engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {CRN}' -H 'Content-Type: application/merge-patch+json' -d '{ "column_name": "updated_column_name", }'
Response
Column
Column name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
expenses
Comment
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
expenses column
Extra
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
varchar
length
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
30
scale
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
2
precision
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^.*$
Example:
10
Data type
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
varchar
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "column_name": "expenses,", "comment": "expenses column", "extra": "varchar,", "precision": "1234567890", "type": "varchar," }
Get table snapshots
List all table snapshots
GET /catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/snapshots
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Catalog ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Schema ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Table ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Query Parameters
Engine name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/snapshots?engine_id={engine_id}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Rollback table to snapshot
Rollback table to a snapshot
POST /catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/rollback
Request
Custom Headers
CRN
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Catalog ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Schema ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Table ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Query Parameters
Engine name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
Snapshot Id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/rollback?engine_id={engine_id}' -H 'accept: application/json' -H "Content-Type: application/json" -d '{ "snapshot_id": "snapshot_id", }' -H 'AuthInstanceId: {instance_id}'
External Iceberg table registration
Synchronize the external Iceberg table registration for a catalog identified by catalog_id.
PATCH /catalogs/{catalog_id}/sync
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
catalog ID
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Request body
Auto add new table
Example:
true
Sync iceberg metadata
Example:
true
curl -X 'PATCH' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/catalogs/{catalog_id}/sync' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}' -H 'Content-Type: application/merge-patch+json' -d '{ "auto_add_new_tables": true, "sync_iceberg_md": true }'
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations"
Response
Sal Integration object
category UUID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
10e64285-bf37-4d5d-b759-bc6a46589234
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
presto-01
errors
Possible values: 0 ≤ number of items ≤ 10000
governance scope UUID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
10e64285-bf37-4d5d-b759-bc6a46589234
governance scope type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
category
instance_id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
18b49d7a-9519-4539-8db5-ff080623c226
status of the integration
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
provisioning
COS resource CRN
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
crn:v1:staging:public:cloud-object-storage:global:a/04e9bc47612523rr19ac22759cb69bebd:asd23df-6ada-45ff-bfe8-4343222
COS storage type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
bmcos_object_storage
sal integration creation timestamp
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
1715056266
whether the integration is trial plan
user name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
xyz@abc.com
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "category_id": "10e64285-bf37-4d5d-b759-bc6a46589234", "engine_id": "presto-01", "governance_scope_id": "10e64285-bf37-4d5d-b759-bc6a46589234", "governance_scope_type": "category", "instance_id": "18b49d7a-9519-4539-8db5-ff080623c226", "status": "active", "storage_resource_crn": "crn:v1:staging:public:cloud-object-storage:global:a/04e9bc47612523rr19ac22759cb69bebd:asd23df-6ada-45ff-bfe8-4343222", "storage_type": "bmcos_object_storage", "timestamp": "1715056266", "trial_plan": false, "username": "xyz@abc.com" }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Request body
IAM apikey
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
12efd3raq
engine ID
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
presto-01
COS storage resource crn
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
crn:v1:staging:public:cloud-object-storage:global:a/a7026b374f39f570d20984c1ac6ecf63:5778e94f-c8c7-46a8-9878-d5eeadb51161
COS storage type
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
bmcos_object_storage
COS storage type
Example:
true
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/json" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations" -d '{ "apikey": "{apikey}" "engine_id": "presto-01" "storage_resource_crn": "{storage_resource_crn}" "storage_type": "bmcos_object_storage" "trial_plan": false }'
Response
Sal Integration object
category UUID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
10e64285-bf37-4d5d-b759-bc6a46589234
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
presto-01
errors
Possible values: 0 ≤ number of items ≤ 10000
governance scope UUID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
10e64285-bf37-4d5d-b759-bc6a46589234
governance scope type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
category
instance_id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
18b49d7a-9519-4539-8db5-ff080623c226
status of the integration
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
provisioning
COS resource CRN
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
crn:v1:staging:public:cloud-object-storage:global:a/04e9bc47612523rr19ac22759cb69bebd:asd23df-6ada-45ff-bfe8-4343222
COS storage type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
bmcos_object_storage
sal integration creation timestamp
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
1715056266
whether the integration is trial plan
user name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
xyz@abc.com
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "category_id": "10e64285-bf37-4d5d-b759-bc6a46589234", "engine_id": "presto-01", "governance_scope_id": "10e64285-bf37-4d5d-b759-bc6a46589234", "governance_scope_type": "category", "instance_id": "18b49d7a-9519-4539-8db5-ff080623c226", "status": "active", "storage_resource_crn": "crn:v1:staging:public:cloud-object-storage:global:a/04e9bc47612523rr19ac22759cb69bebd:asd23df-6ada-45ff-bfe8-4343222", "storage_type": "bmcos_object_storage", "timestamp": "1715056266", "trial_plan": false, "username": "xyz@abc.com" }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Request body
op
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
add
path
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
storage
path
Possible values: 1 ≤ length ≤ 1000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
new-apikey
curl -X PATCH -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations" -d '{ "apikey": "{apikey}" }'
Response
Sal Integration object
category UUID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
10e64285-bf37-4d5d-b759-bc6a46589234
engine id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
presto-01
errors
Possible values: 0 ≤ number of items ≤ 10000
governance scope UUID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
10e64285-bf37-4d5d-b759-bc6a46589234
governance scope type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
category
instance_id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
18b49d7a-9519-4539-8db5-ff080623c226
status of the integration
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
provisioning
COS resource CRN
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
crn:v1:staging:public:cloud-object-storage:global:a/04e9bc47612523rr19ac22759cb69bebd:asd23df-6ada-45ff-bfe8-4343222
COS storage type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
bmcos_object_storage
sal integration creation timestamp
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Example:
1715056266
whether the integration is trial plan
user name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
xyz@abc.com
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "category_id": "10e64285-bf37-4d5d-b759-bc6a46589234", "engine_id": "presto-01", "governance_scope_id": "10e64285-bf37-4d5d-b759-bc6a46589234", "governance_scope_type": "category", "instance_id": "18b49d7a-9519-4539-8db5-ff080623c226", "status": "active", "storage_resource_crn": "crn:v1:staging:public:cloud-object-storage:global:a/04e9bc47612523rr19ac22759cb69bebd:asd23df-6ada-45ff-bfe8-4343222", "storage_type": "bmcos_object_storage", "timestamp": "1715056266", "trial_plan": false, "username": "xyz@abc.com" }
Trigger enrichment jobs on schemas and tables
Trigger enrichment jobs on schemas and tables
POST /sal_integrations/enrichment
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Request body
{
"enrichment_prototype": {
"catalog": "iceberg_data",
"operation": "create",
"schema": "schema1",
"tables": [
"table1",
"table2",
"table3"
]
}
}
Encrichment api object
Examples:{ "catalog": "iceberg_data", "operation": "create", "schema": "schema1", "tables": [ "table1", "table2", "table3" ] }
curl -X POST -H "accept: application/json" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/enrichment" -d '{ "changes": [{ "catalog": "iceberg_data", "operation": "create", "schema": "schema1", "tables": [ "string" ] }] }'
Get semantic enrichment assets associated with the schema
Get semantic enrichment job runs associated with the schema
GET /sal_integrations/enrichment_assets
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
enrichment project id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/enrichment_assets"
Response
sal integration enrichment assets
Encrichment asset
Examples:{ "asset_attributes": [ "attribute1", "attribute2", "attribute3" ], "asset_id": "ee0383b9-dcab-4c1a-b03d-bf521837b6ed", "asset_name": "newtable", "resource_key": "0000:0000:0000:0000:0000:FFFF:9EB0:04E2|31134|:/iceberg_data/new_schema/sampletable", "schema_name": "sampleschema" }
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "enrichment_asset": { "asset_attributes": [ "attribute1", "attribute2", "attribute3" ], "asset_id": "ee0383b9-dcab-4c1a-b03d-bf521837b6ed", "asset_name": "newtable", "resource_key": "0000:0000:0000:0000:0000:FFFF:9EB0:04E2|31134|:/iceberg_data/new_schema/sampletable", "schema_name": "sampleschema" } }
Get semantic enrichment data asset associated with the table
Get semantic enrichment data asset associated with the table
GET /sal_integrations/enrichment_data_asset
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
enrichment project id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
enrichment data asset id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/enrichment_data_asset"
Get semantic enrichment job run logs associated with the job run
Get semantic enrichment job run logs associated with the job run
GET /sal_integrations/enrichment_job_run_logs
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
enrichment job id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
enrichment job run id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
enrichment project id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/enrichment_job_run_logs"
Get semantic enrichment job runs associated with the schema
Get semantic enrichment job runs associated with the schema
GET /sal_integrations/enrichment_job_runs
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
enrichment job id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
enrichment project id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/enrichment_job_runs"
Get semantic enrichment jobs associated with the schema
Get semantic enrichment jobs associated with the schema
GET /sal_integrations/enrichment_jobs
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
ikc project id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/enrichment_jobs"
Response
Sal Integration Mappings object
catalog name
Examples:{ "results": [ { "entity": { "job": { "asset_ref": "8688a3b6-a946-499e-a93c-b7d099db80dd", "asset_ref_type": "metadata_enrichment_area", "configuration": { "env_type": "", "env_variables": [] }, "enable_notifications": false, "future_scheduled_runs": [], "last_run_initiator": "deprecated field", "last_run_status": "deprecated field", "last_run_status_timestamp": 0, "last_run_time": "deprecated field", "project_name": "SAL Mapping /iceberg_data/new_schema 9aae5be3-87cf-4c31-b17d-9256ab42c14e", "schedule_creator_id": "", "schedule_id": "", "schedule_info": {}, "task_credentials_support": { "account_id": "04e9bc4761254b719ac22759cb69bebd", "task_credentials_enabled": true, "user_id": "IBMid-55000832RK" } } }, "metadata": { "asset_id": "ea73ce44-8aa0-4c75-bd69-6ca7074a1030", "name": "SAL_MDE job", "owner_id": "IBMid-55000832RK", "version": 0 } } ], "total_rows": 1 }
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "jobs": { "results": [ { "entity": { "job": { "asset_ref": "8688a3b6-a946-499e-a93c-b7d099db80dd", "asset_ref_type": "metadata_enrichment_area", "configuration": { "env_type": "", "env_variables": [] }, "enable_notifications": false, "future_scheduled_runs": [], "last_run_initiator": "deprecated field", "last_run_status": "deprecated field", "last_run_status_timestamp": 0, "last_run_time": "deprecated field", "project_name": "SAL Mapping /iceberg_data/new_schema 9aae5be3-87cf-4c31-b17d-9256ab42c14e", "schedule_creator_id": "", "schedule_id": "", "schedule_info": {}, "task_credentials_support": { "account_id": "04e9bc4761254b719ac22759cb69bebd", "task_credentials_enabled": true, "user_id": "IBMid-55000832RK" } } }, "metadata": { "asset_id": "ea73ce44-8aa0-4c75-bd69-6ca7074a1030", "name": "SAL_MDE job", "owner_id": "IBMid-55000832RK", "version": 0 } } ], "total_rows": 1 } }
Get list of uploaded glossary terms
Get list of uploaded glossary terms
GET /sal_integrations/glossary_terms
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/glossary_terms"
Get wkc catalog and project mapped to the schema
Get wkc catalog and project mapped to the schema
GET /sal_integrations/mappings
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
catalog name
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
schema name
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/mappings?catalog_name={catalog_name}&schema_name={schema_name}"
Response
Sal Integration Mappings object
catalog name
Example:
iceberg_data
operation type
Example:
create
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "wkc_catalog_id": "18b49d7a-9519-4539-8db5-ff080623c226", "wkc_project_id": "9519bd7a-9519-8db5-4539-ff080623c226" }
Get metadata enrichment global settings
Get metadata enrichment global settings
GET /sal_integrations/metadata_enrichment_global_settings
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/metadata_enrichment_global_settings"
Response
Sal Integration Enrichment Settings objects
semantic expansion
Examples:{ "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }
semantic expansion
Examples:{ "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 }
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "semantic_expansion": { "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }, "term_assignment": { "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 } }
Add metadata enrichment global settings
Add metadata enrichment global settings
POST /sal_integrations/metadata_enrichment_global_settings
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Request body
{
"semantic_expansion": {
"description_generation": true,
"description_generation_configuration": {
"assignment_threshold": 0.14,
"suggestion_threshold": 0.9
},
"name_expansion": true,
"name_expansion_configuration": {
"assignment_threshold": 0.1,
"suggestion_threshold": 0.1
}
},
"term_assignment": {
"class_based_assignments": false,
"evaluate_negative_assignments": false,
"llm_based_assignments": false,
"ml_based_assignments_custom": false,
"ml_based_assignments_default": false,
"name_matching": false,
"term_assignment_threshold": 0.3,
"term_suggestion_threshold": 0.4
}
}
semantic expansion
Examples:{ "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }
semantic expansion
Examples:{ "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 }
curl -X POST -H "accept: application/json" -H "Content-Type: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/metadata_enrichment_global_settings" -d '{ "semantic_expansion": { "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }, "term_assignment": { "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 } }'
Response
Sal Integration Enrichment Settings objects
semantic expansion
Examples:{ "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }
semantic expansion
Examples:{ "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 }
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "semantic_expansion": { "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }, "term_assignment": { "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 } }
get metadata enrichment settings for a project
get metadata enrichment settings for a project
GET /sal_integrations/metadata_enrichment_settings
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
wkc project id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/metadata_enrichment_settings"
Response
Sal Integration Enrichment Settings objects
semantic expansion
Examples:{ "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }
semantic expansion
Examples:{ "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 }
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "semantic_expansion": { "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }, "term_assignment": { "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 } }
Add metadata enrichment settings for a project
Add metadata enrichment settings for a project
POST /sal_integrations/metadata_enrichment_settings
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
wkc project id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Request body
{
"semantic_expansion": {
"description_generation": true,
"description_generation_configuration": {
"assignment_threshold": 0.14,
"suggestion_threshold": 0.9
},
"name_expansion": true,
"name_expansion_configuration": {
"assignment_threshold": 0.1,
"suggestion_threshold": 0.1
}
},
"term_assignment": {
"class_based_assignments": false,
"evaluate_negative_assignments": false,
"llm_based_assignments": false,
"ml_based_assignments_custom": false,
"ml_based_assignments_default": false,
"name_matching": false,
"term_assignment_threshold": 0.3,
"term_suggestion_threshold": 0.4
}
}
semantic expansion
Examples:{ "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }
semantic expansion
Examples:{ "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 }
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/metadata_enrichment_settings" -d '{ "semantic_expansion": { "description_generation": true, "description_generation_configuration": { "assignment_threshold": 0.14, "suggestion_threshold": 0.9 }, "name_expansion": true, "name_expansion_configuration": { "assignment_threshold": 0.1, "suggestion_threshold": 0.1 } }, "term_assignment": { "class_based_assignments": false, "evaluate_negative_assignments": false, "llm_based_assignments": false, "ml_based_assignments_custom": false, "ml_based_assignments_default": false, "name_matching": false, "term_assignment_threshold": 0.3, "term_suggestion_threshold": 0.4 } }'
Upload semantic enrichment business terms glossary
Upload semantic enrichment business terms glossary
POST /sal_integrations/upload_glossary
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Form Parameters
glossary upload replace option
Allowable values: [
all
,specified
,empty
]Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_]+$
Glossary CSV file
Possible values: 1 ≤ length ≤ 104857600
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H 'Content-Type: multipart/form-data' -F 'glossary_csv=@{glossary_file_name}.csv;type=text/csv' -F 'replace_option=all' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/upload_glossary"
Get status of upload glossary job
Get status of upload glossary job
GET /sal_integrations/upload_glossary_status
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
upload process id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/sal_integrations/upload_glossary_status"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
curl -X GET -H "content-type: application/json" -H "AuthInstanceId: {instance id}" https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/milvus_services"
Response
List milvus services
milvus service body
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "milvus_services": [ { "actions": [ "update", "delete" ], "bucket_name": "wxd-milvus", "created_by": "username@domain.com", "created_on": 1700201877, "description": "description", "grpc_host": "<formation_id>.<kubernetes_cluster>.databases.appdomain.cloud", "grpc_port": 443, "https_host": "<formation_id>.<kubernetes_cluster>.databases.appdomain.cloud", "https_port": 443, "origin": "native", "service_display_name": "test-milvus", "service_id": "milvus76", "status": "running", "status_code": 0, "tags": [], "tshirt_size": "Starter", "type": "milvus" } ] }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Create milvus service
Origin - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
native
Service description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
milvus service for running sql queries
Service display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleService
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
curl -X 'POST' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/milvus_services' -H 'accept: application/json' -H "AuthInstanceId: {instance id}" -H 'Content-Type: application/json' -d '{ "bucket_name": "Sample bucket name", "bucket_type": "Sample bucket type", "description": "milvus service for running sql queries", "origin": "native", "root_path": "Sample path", "service_display_name": "sampleService", "tags": [ "tag1", "tag2" ], "tshirt_size": "small", }'
Response
milvus service details
milvus status code
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Service description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
milvus service for running sql queries
milvus grpc_host
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
example.grpc.host
milvus port
milvus display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
sampleMilvus
milvus https_host
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
example.https.host
milvus port
Origin - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
native
Service display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleService
Service programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleService123
milvus status
Possible values: [
running
,pending
,stopped
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
service type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
milvus
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "update", "delete" ], "bucket_name": "wxd-milvus", "created_by": "username@domain.com", "created_on": 1700201877, "description": "description", "grpc_host": "<formation_id>.<kubernetes_cluster>.databases.appdomain.cloud", "grpc_port": 443, "https_host": "<formation_id>.<kubernetes_cluster>.databases.appdomain.cloud", "https_port": 443, "origin": "native", "service_display_name": "test-milvus", "service_id": "milvus76", "status": "running", "status_code": 0, "tags": [], "tshirt_size": "Starter", "type": "milvus" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
service id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/milvus_services/{service_id}' -H 'accept: application/json' -H "AuthInstanceId: {instance id}"
Response
milvus service details
milvus status code
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Service description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
milvus service for running sql queries
milvus grpc_host
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
example.grpc.host
milvus port
milvus display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
sampleMilvus
milvus https_host
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
example.https.host
milvus port
Origin - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
native
Service display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleService
Service programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleService123
milvus status
Possible values: [
running
,pending
,stopped
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
service type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
milvus
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "update", "delete" ], "bucket_name": "wxd-milvus", "created_by": "username@domain.com", "created_on": 1700201877, "description": "description", "grpc_host": "<formation_id>.<kubernetes_cluster>.databases.appdomain.cloud", "grpc_port": 443, "https_host": "<formation_id>.<kubernetes_cluster>.databases.appdomain.cloud", "https_port": 443, "origin": "native", "service_display_name": "test-milvus", "service_id": "milvus76", "status": "running", "status_code": 0, "tags": [], "tshirt_size": "Starter", "type": "milvus" }
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
service id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
curl -X 'DELETE' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/milvus_services/{service_id}' -H 'accept: application/json' -H "AuthInstanceId: {instance id}"
Request
Custom Headers
Instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
service id
Possible values: 1 ≤ length ≤ 10000, Value must match regular expression
^[a-zA-Z0-9\-]+$
Update milvus service
Modified description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
updated description for milvus service
Service display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleService
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
curl -X 'PATCH' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/milvus_services/{service_id}' -H 'accept: application/json' -H 'Content-Type: application/merge-patch+json' -H "AuthInstanceId: {instance id}" -d '{ "description": "updated description for milvus service", "engine_display_name": "sampleService", "tags": [ "tag1", "tag2" ]}'
Response
milvus service details
milvus status code
Actions
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "update", "delete" ]
Created user name
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
<username>@<domain>.com
Created time in epoch format
Service description
Possible values: 0 ≤ length ≤ 50, Value must match regular expression
^.*$
Example:
milvus service for running sql queries
milvus grpc_host
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
example.grpc.host
milvus port
milvus display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
sampleMilvus
milvus https_host
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9.@<>\-]+
Example:
example.https.host
milvus port
Origin - place holder
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
native
Service display name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleService
Service programmatic name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sampleService123
milvus status
Possible values: [
running
,pending
,stopped
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Tags
Possible values: 0 ≤ number of items ≤ 10000, 1 ≤ length ≤ 128, Value must match regular expression
^.*$
Examples:[ "tag1", "tag2" ]
service type
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
milvus
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "actions": [ "update", "delete" ], "bucket_name": "wxd-milvus", "created_by": "username@domain.com", "created_on": 1700201877, "description": "description", "grpc_host": "<formation_id>.<kubernetes_cluster>.databases.appdomain.cloud", "grpc_port": 443, "https_host": "<formation_id>.<kubernetes_cluster>.databases.appdomain.cloud", "https_port": 443, "origin": "native", "service_display_name": "test-milvus", "service_id": "milvus76", "status": "running", "status_code": 0, "tags": [], "tshirt_size": "Starter", "type": "milvus" }
Get CPG and DAS endpoints
Get Common policy gateway (CPG) and Data Access Service(DAS) endpoints
GET /endpoints
Request
Custom Headers
CRN
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Response
List endpoints
List of the endpoints CPG and DAS
Possible values: 0 ≤ number of items ≤ 20
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "endpoints": [ { "external_host": "https://cpg-svc.your-hostname.apps.your-domain.com", "service_type": "cpg" }, { "external_host": "https://cas-svc.your-hostname.apps.your-domain.com", "service_type": "cas" } ] }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
Page number of requested ingestion jobs.
Possible values: 1 ≤ length ≤ 512, Value must match regular expression
^[0-9]*$
Default:
1
Number of requested ingestion jobs.
Possible values: 1 ≤ value ≤ 100
Default:
1
curl -X GET -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/ingestion_jobs'
Response
List ingestion jobs
Ingestion jobs
Possible values: 0 ≤ number of items ≤ 10000
A page in a pagination collection.
A page in a pagination collection.
Status Code
Success
Error
Unauthorized
Not found
Internal Server Error
{ "ingestion_jobs": [ { "create_if_not_exist": false, "csv_property": { "encoding": "utf-8", "escape_character": "|", "field_delimiter": ",", "header": true, "line_delimiter": "\n" }, "details": "Path does not exist 'demobucket/data/yellow_tripdata_2022-01.parquet'. Detail: [errno 2] No such file or directory", "end_timestamp": "1685088775", "engine_id": "spark123", "engine_name": "sparkdemo", "execute_config": { "driver_cores": 1, "driver_memory": "2G", "executor_cores": 1, "executor_memory": "2G", "num_executors": 1 }, "instance_id": "1684432229673971", "job_id": "ingestion-1699459946935", "partition_by": "col1, col2", "schema": "{\"type\":\"struct\",\"schema-id\":0,\"fields\":[{\"id\":1,\"name\":\"ID\",\"required\":true,\"type\":\"int\"},{\"id\":2,\"name\":\"Name\",\"required\":true,\"type\":\"string\"}]}", "source_data_files": "s3://demobucket/data/yellow_tripdata_2022-01.parquet", "source_file_type": "csv", "start_timestamp": "1685084455", "status": "running", "target_table": "demodb.test.targettable", "username": "ibmlhadmin", "valdiate_csv_header": false }, { "create_if_not_exist": false, "csv_property": { "encoding": "utf-8", "escape_character": "|", "field_delimiter": ",", "header": true, "line_delimiter": "\n" }, "details": "Path does not exist 'demobucket/data/yellow_tripdata_2022-01.parquet'. Detail: [errno 2] No such file or directory", "end_timestamp": "1685088798", "engine_id": "spark123", "engine_name": "sparkdemo", "execute_config": { "driver_cores": 1, "driver_memory": "2G", "executor_cores": 1, "executor_memory": "2G", "num_executors": 1 }, "instance_id": "1684432229673972", "job_id": "ingestion-1699459946936", "partition_by": "col1, col2", "schema": "{\"type\":\"struct\",\"schema-id\":0,\"fields\":[{\"id\":1,\"name\":\"ID\",\"required\":true,\"type\":\"int\"},{\"id\":2,\"name\":\"Name\",\"required\":true,\"type\":\"string\"}]}", "source_data_files": "s3://demobucket/data/yellow_tripdata_2022-01.parquet", "source_file_type": "csv", "start_timestamp": "1685084467", "status": "finished", "target_table": "demodb.test.targettable", "username": "ibmlhadmin", "validate_csv_header": false } ] }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Request body for submitting ingestion job
Job ID of the job
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_\.]+$
Example:
ingestion-1699459946935
Comma separated source file or directory path
Possible values: 1 ≤ length ≤ 2048, Value must match regular expression
^.*$
Example:
s3://demobucket/data/yellow_tripdata_2022-01.parquet
Target table name in format catalog.schema.table
Possible values: 1 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
demodb.test.targettable
User submitting ingestion job
Possible values: 1 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
user1
Create new target table (if True); Insert into pre-existing target table (if False)
Default:
false
Ingestion CSV properties
ID of the spark engine to be used for ingestion
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
spark123
Ingestion engine configuration
Partition by expression of the target table
Possible values: 0 ≤ length ≤ 4096, Value must match regular expression
^.*$
Example:
col1, col2
Schema definition of the source table
Possible values: 0 ≤ length ≤ 4096, Value must match regular expression
^.*$
Example:
{"type":"struct","schema-id":0,"fields":[{"id":1,"name":"ID","required":true,"type":"int"},{"id":2,"name":"Name","required":true,"type":"string"}]}
Source file types (parquet or csv or json)
Allowable values: [
csv
,parquet
,json
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z]+
Default:
csv
Example:
csv
Validate CSV header if the target table exist.
Default:
false
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/json" -d '{ "target_table": "demodb.test.targettable", "engine_id": "spark123", "execute_config": { "driver_memory": "2G", "driver_cores": 1, "executor_memory": "2G", "executor_cores": 1, "num_executors": 1 }, "source_data_files": "s3://demobucket/data/yellow_tripdata_2022-01.parquet", "source_file_type": "csv", "create_if_not_exist": false, "schema": "{"type":"struct","schema-id":0,"fields":[{"id":1,"name":"ID","required":true,"type":"int"},{"id":2,"name":"Name","required":true,"type":"string"}]}", "csv_property": { "field_delimiter": ",", "line_delimiter": " ", "escape_character": " ", "header": true, "encoding": "utf-8" }, "job_id": "ingestion-1699459946935", "username": "user1", }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/ingestion_jobs"
Response
Ingestion job
Create new target table (if True); Insert into pre-existing target table (if False)
Ingestion CSV properties
Error messages of failed ingestion job
Possible values: 0 ≤ length ≤ 7500, Value must match regular expression
^.*$
Example:
Path does not exist 'demobucket/data/yellow_tripdata_2022-01.parquet'. Detail: [errno 2] No such file or directory
Unix timestamp of ingestion job completing
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[0-9]+
Example:
1685088775
ID of the spark engine to be used for ingestion
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
spark123
Name of the spark engine to be used for ingestion
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sparkdemo
Ingestion engine configuration
Instance ID of the lakehouse where ingestion job is executed
Possible values: 0 ≤ length ≤ 2048, Value must match regular expression
^.*$
Example:
1684432229673971
Job ID of the ingestion job
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_\.]+$
Example:
ingestion-1699459946935
partition by expression of the target table
Possible values: 0 ≤ length ≤ 4096, Value must match regular expression
^.*$
Example:
col1, col2
Schema definition of the source table
Possible values: 0 ≤ length ≤ 4096, Value must match regular expression
^.*$
Example:
{"type":"struct","schema-id":0,"fields":[{"id":1,"name":"ID","required":true,"type":"int"},{"id":2,"name":"Name","required":true,"type":"string"}]}
Source data location of the ingestion job
Possible values: 0 ≤ length ≤ 2048, Value must match regular expression
^.*$
Example:
s3://demobucket/data/yellow_tripdata_2022-01.parquet
Source file types (parquet or csv)
Possible values: [
csv
,parquet
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z]+
Example:
csv
Unix timestamp of ingestion job starting
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[0-9]+
Example:
1685084455
Current state of ingestion job
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Target table name in format catalog.schema.table
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
demodb.test.targettable
Ingestion job user
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
ibmlhadmin
Validate CSV header if the target table exist.
Status Code
Accepted
Error
Unauthorized
Not found
Internal Server Error
{ "create_if_not_exist": false, "csv_property": { "encoding": "utf-8", "escape_character": "|", "field_delimiter": ",", "header": true, "line_delimiter": "\n" }, "details": "Path does not exist 'demobucket/data/yellow_tripdata_2022-01.parquet'. Detail: [errno 2] No such file or directory", "end_timestamp": "1685088775", "engine_id": "spark123", "engine_name": "sparkdemo", "execute_config": { "driver_cores": 1, "driver_memory": "2G", "executor_cores": 1, "executor_memory": "2G", "num_executors": 1 }, "instance_id": "1684432229673971", "job_id": "ingestion-1699459946935", "partition_by": "col1, col2", "schema": "{\"type\":\"struct\",\"schema-id\":0,\"fields\":[{\"id\":1,\"name\":\"ID\",\"required\":true,\"type\":\"int\"},{\"id\":2,\"name\":\"Name\",\"required\":true,\"type\":\"string\"}]}", "source_data_files": "s3://demobucket/data/yellow_tripdata_2022-01.parquet", "source_file_type": "csv", "start_timestamp": "1685084455", "status": "running", "target_table": "demodb.test.targettable", "username": "ibmlhadmin", "valdiate_csv_header": false }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
Create an ingestion job for user local files
Create an ingestion job for user local files
POST /ingestion_jobs_local_files
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Form Parameters
The user local file submitted for ingestion
Possible values: 0 ≤ length ≤ 524288000
Target table name in format catalog.schema.table
Possible values: 5 ≤ length ≤ 256, Value must match regular expression
^.*$
Job ID of the job
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-_\\.]+$
User submitting ingestion job
Possible values: 1 ≤ length ≤ 256, Value must match regular expression
^.*$
File format of source file
Allowable values: [
csv
,parquet
,json
]Possible values: 0 ≤ length ≤ 7, Value must match regular expression
^[a-zA-Z]+
Ingestion CSV properties (base64 encoding of a stringifed json).
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
^.*$
Create new target table (if true); Insert into pre-existing target table (if false)
Default:
false
Validate CSV header if the target table exist.
Default:
false
Ingestion engine configuration (base64 encoding of a stringifed json).
Possible values: 0 ≤ length ≤ 256, Value must match regular expression
^.*$
ID of the spark engine to be used for ingestion.
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: multipart/form-data" -F target_table=demodb.test.table -F create_if_not_exist=true -F job_id=ingestion-1699459946935 -F username=user1 -F source_data_file=@data.csv -F source_file_type=csv -F csv_property=eyJmaWVsZF9kZWxpbWl0ZXIiOiIsIiwibGluZV9kZWxpbWl0ZXIiOiJcbiIsImVzY2FwZV9jaGFyYWN0ZXIiOiJcXCIsImhlYWRlciI6dHJ1ZSwiZW5jb2RpbmciOiJVVEYtOCJ9 "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/ingestion_jobs_local_files"
Response
Ingestion job
Create new target table (if True); Insert into pre-existing target table (if False)
Ingestion CSV properties
Error messages of failed ingestion job
Possible values: 0 ≤ length ≤ 7500, Value must match regular expression
^.*$
Example:
Path does not exist 'demobucket/data/yellow_tripdata_2022-01.parquet'. Detail: [errno 2] No such file or directory
Unix timestamp of ingestion job completing
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[0-9]+
Example:
1685088775
ID of the spark engine to be used for ingestion
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
spark123
Name of the spark engine to be used for ingestion
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sparkdemo
Ingestion engine configuration
Instance ID of the lakehouse where ingestion job is executed
Possible values: 0 ≤ length ≤ 2048, Value must match regular expression
^.*$
Example:
1684432229673971
Job ID of the ingestion job
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_\.]+$
Example:
ingestion-1699459946935
partition by expression of the target table
Possible values: 0 ≤ length ≤ 4096, Value must match regular expression
^.*$
Example:
col1, col2
Schema definition of the source table
Possible values: 0 ≤ length ≤ 4096, Value must match regular expression
^.*$
Example:
{"type":"struct","schema-id":0,"fields":[{"id":1,"name":"ID","required":true,"type":"int"},{"id":2,"name":"Name","required":true,"type":"string"}]}
Source data location of the ingestion job
Possible values: 0 ≤ length ≤ 2048, Value must match regular expression
^.*$
Example:
s3://demobucket/data/yellow_tripdata_2022-01.parquet
Source file types (parquet or csv)
Possible values: [
csv
,parquet
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z]+
Example:
csv
Unix timestamp of ingestion job starting
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[0-9]+
Example:
1685084455
Current state of ingestion job
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Target table name in format catalog.schema.table
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
demodb.test.targettable
Ingestion job user
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
ibmlhadmin
Validate CSV header if the target table exist.
Status Code
Accepted
Error
Unauthorized
Not found
Internal Server Error
{ "create_if_not_exist": false, "csv_property": { "encoding": "utf-8", "escape_character": "|", "field_delimiter": ",", "header": true, "line_delimiter": "\n" }, "details": "Path does not exist 'demobucket/data/yellow_tripdata_2022-01.parquet'. Detail: [errno 2] No such file or directory", "end_timestamp": "1685088775", "engine_id": "spark123", "engine_name": "sparkdemo", "execute_config": { "driver_cores": 1, "driver_memory": "2G", "executor_cores": 1, "executor_memory": "2G", "num_executors": 1 }, "instance_id": "1684432229673971", "job_id": "ingestion-1699459946935", "partition_by": "col1, col2", "schema": "{\"type\":\"struct\",\"schema-id\":0,\"fields\":[{\"id\":1,\"name\":\"ID\",\"required\":true,\"type\":\"int\"},{\"id\":2,\"name\":\"Name\",\"required\":true,\"type\":\"string\"}]}", "source_data_files": "s3://demobucket/data/yellow_tripdata_2022-01.parquet", "source_file_type": "csv", "start_timestamp": "1685084455", "status": "running", "target_table": "demodb.test.targettable", "username": "ibmlhadmin", "valdiate_csv_header": false }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
ingestion job id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_\.]+$
curl -X GET -H "accept: application/json" -H "AuthInstanceId: {instance_id}" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/ingestion_jobs/{job_id}"
Response
Ingestion job
Create new target table (if True); Insert into pre-existing target table (if False)
Ingestion CSV properties
Error messages of failed ingestion job
Possible values: 0 ≤ length ≤ 7500, Value must match regular expression
^.*$
Example:
Path does not exist 'demobucket/data/yellow_tripdata_2022-01.parquet'. Detail: [errno 2] No such file or directory
Unix timestamp of ingestion job completing
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[0-9]+
Example:
1685088775
ID of the spark engine to be used for ingestion
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
spark123
Name of the spark engine to be used for ingestion
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
sparkdemo
Ingestion engine configuration
Instance ID of the lakehouse where ingestion job is executed
Possible values: 0 ≤ length ≤ 2048, Value must match regular expression
^.*$
Example:
1684432229673971
Job ID of the ingestion job
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_\.]+$
Example:
ingestion-1699459946935
partition by expression of the target table
Possible values: 0 ≤ length ≤ 4096, Value must match regular expression
^.*$
Example:
col1, col2
Schema definition of the source table
Possible values: 0 ≤ length ≤ 4096, Value must match regular expression
^.*$
Example:
{"type":"struct","schema-id":0,"fields":[{"id":1,"name":"ID","required":true,"type":"int"},{"id":2,"name":"Name","required":true,"type":"string"}]}
Source data location of the ingestion job
Possible values: 0 ≤ length ≤ 2048, Value must match regular expression
^.*$
Example:
s3://demobucket/data/yellow_tripdata_2022-01.parquet
Source file types (parquet or csv)
Possible values: [
csv
,parquet
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z]+
Example:
csv
Unix timestamp of ingestion job starting
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[0-9]+
Example:
1685084455
Current state of ingestion job
Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Example:
running
Target table name in format catalog.schema.table
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
demodb.test.targettable
Ingestion job user
Possible values: 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Example:
ibmlhadmin
Validate CSV header if the target table exist.
Status Code
Success
Error
Unauthorized
Not found
Internal Server Error
{ "create_if_not_exist": false, "csv_property": { "encoding": "utf-8", "escape_character": "|", "field_delimiter": ",", "header": true, "line_delimiter": "\n" }, "details": "Path does not exist 'demobucket/data/yellow_tripdata_2022-01.parquet'. Detail: [errno 2] No such file or directory", "end_timestamp": "1685088775", "engine_id": "spark123", "engine_name": "sparkdemo", "execute_config": { "driver_cores": 1, "driver_memory": "2G", "executor_cores": 1, "executor_memory": "2G", "num_executors": 1 }, "instance_id": "1684432229673971", "job_id": "ingestion-1699459946935", "partition_by": "col1, col2", "schema": "{\"type\":\"struct\",\"schema-id\":0,\"fields\":[{\"id\":1,\"name\":\"ID\",\"required\":true,\"type\":\"int\"},{\"id\":2,\"name\":\"Name\",\"required\":true,\"type\":\"string\"}]}", "source_data_files": "s3://demobucket/data/yellow_tripdata_2022-01.parquet", "source_file_type": "csv", "start_timestamp": "1685084455", "status": "running", "target_table": "demodb.test.targettable", "username": "ibmlhadmin", "valdiate_csv_header": false }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
ingestion job id
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-_\.]+$
curl -X DELETE -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/json" "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/ingestion_jobs"
Response
Status Code
No Content
Error
Unauthorized
Not found
Internal Server Error
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
Generate a preview of source file(s)
Generate a preview of source file(s)
POST /preview_ingestion_file
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Request body for previewing ingestion source file(s)
Comma separated source file or directory path
Possible values: 1 ≤ length ≤ 2048, Value must match regular expression
^.*$
Example:
s3://demobucket/data/yellow_tripdata_2022-01.parquet
CSV properties of source file(s)
File format of source file(s)
Allowable values: [
csv
,parquet
,json
]Possible values: 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z]+
Default:
csv
Example:
csv
curl -X POST -H "accept: application/json" -H "AuthInstanceId: {instance_id}" -H "Content-Type: application/json" -d '{ "source_data_files": "s3://demobucket/data/yellow_tripdata_2022-01.parquet", "source_file_type": "csv", "csv_property": { "field_delimiter": ",", "line_delimiter": " ", "escape_character": " ", "header": true, "encoding": "utf-8" }, }' "https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/preview_ingestion_file"
Response
Schema of the data in the source file
Array of column names of the table
Possible values: 0 ≤ number of items ≤ 200, 0 ≤ length ≤ 1024, Value must match regular expression
^.*$
Examples:[ "col1", "col2", "col3" ]
Array of column types of the table
Possible values: 0 ≤ number of items ≤ 1000, 0 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-]+$
Examples:[ "int", "string", "float" ]
Name of the file being previewed
Possible values: 0 ≤ length ≤ 2048, Value must match regular expression
^.*$
Example:
s3://demobucket/data/yellow_tripdata_2022-01.parquet
First 10 rows of the table
Examples:{ "rows": { "row_eight": [ "8", "Jane Doe", "63.00" ], "row_five": [ "5", "Jane Doe", "57.00" ], "row_four": [ "4", "Jane Doe", "55.00" ], "row_nine": [ "9", "Jane Doe", "65.00" ], "row_one": [ "1", "Jane Doe", "49.00" ], "row_seven": [ "7", "Jane Doe", "61.00" ], "row_six": [ "6", "Jane Doe", "59.00" ], "row_ten": [ "10", "Jane Doe", "67.00" ], "row_three": [ "3", "Jane Doe", "53.00" ], "row_two": [ "2", "Jane Doe", "51.00" ] } }
Status Code
Success
Error
Unauthorized
Not found
Internal Server Error
{ "column_names": [ "col1", "col2", "col3" ], "column_types": [ "int", "string", "float" ], "file_name": "s3://demobucket/data/yellow_tripdata_2022-01.parquet", "rows": { "row_eight": [ "8", "Jane Doe", "63.00" ], "row_five": [ "5", "Jane Doe", "57.00" ], "row_four": [ "4", "Jane Doe", "55.00" ], "row_nine": [ "9", "Jane Doe", "65.00" ], "row_one": [ "1", "Jane Doe", "49.00" ], "row_seven": [ "7", "Jane Doe", "61.00" ], "row_six": [ "6", "Jane Doe", "59.00" ], "row_ten": [ "10", "Jane Doe", "67.00" ], "row_three": [ "3", "Jane Doe", "53.00" ], "row_two": [ "2", "Jane Doe", "51.00" ] } }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
{ "errors": [ { "code": "bad_request", "message": "string", "more_info": "string" } ], "exception": "string", "message": "string", "message_code": "string", "more_info": "string", "status_code": 0, "trace": "cd05b1fc-bc10-4ba6-9a9f-b73c503dbd77" }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
Table name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
Schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/columns?catalog_name={catalog_name}&schema_name={schema_name}&table_name={table_name}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
Column details
A list of all tables with columns
Possible values: 0 ≤ number of items ≤ 1000000
Response message string
Message code string
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "columns": [ { "bucket": "iceberg-bucket", "catalog": "iceberg_data", "columns": [ { "column": "club_name", "type": "string" }, { "column": "location", "type": "string" }, { "column": "sl_no", "type": "int" }, { "column": "stadium", "type": "string" } ], "owner": "ibmlhadmin", "schema": "s3", "table": "clubs" } ], "message": "1 entries found", "message_code": "success" }
Get all schemas for a given catalog
List Schemas for a catalog with the given catalog_name
GET /schemas
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/schemas?catalog_name={catalog_name}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
Schema response for list all schemas
Response message string
Message code string
A list of all schemas
Possible values: 0 ≤ number of items ≤ 10000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "message": "1 entries found", "message_code": "success", "schemas": [ { "bucket": "iceberg-bucket", "catalog": "iceberg_data", "owner": "ibmlhadmin", "schema_name": "s3" } ] }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
Query Parameters
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/schemas/{schema_name}?catalog_name={catalog_name}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
Summary of the schema response
The bucket linked to the catalog
The catalog that this schema is associated to
Response message string
Message code string
Owner of the bucket
Summary of the schema response
Name of the schema
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "message": "1 entry found", "message_code": "success", "schema": { "bucket": "iceberg-bucket", "catalog": "iceberg_data", "owner": "ibmlhadmin", "schema_name": "s3" } }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Query Parameters
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
Schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/tables?catalog_name={catalog_name}&schema_name={schema_name}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
Table response collection
Response message string
Message code string
A list of all tables
Possible values: 0 ≤ number of items ≤ 1000000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "message": "1 entries found", "message_code": "success", "tables": [ { "bucket": "iceberg-bucket", "catalog": "iceberg_data", "owner": "ibmlhadmin", "schema": "s3", "table": "clubs" } ] }
Request
Custom Headers
watsonx.data instance ID
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\-\:/]+$
Path Parameters
Table name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
Query Parameters
Catalog name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
Schema name
Possible values: 1 ≤ length ≤ 128, Value must match regular expression
^[a-zA-Z0-9\\-]+$
curl -X 'GET' 'https://{region}.lakehouse.cloud.ibm.com/lakehouse/api/v2/tables/{table_name}?catalog_name={catalog_name}&schema_name={schema_name}' -H 'accept: application/json' -H 'AuthInstanceId: {instance_id}'
Response
Table response
Response message string
Message code string
A list of all tables
Possible values: 0 ≤ number of items ≤ 1000000
Status Code
Success
Error
Unauthorized
Not found
Internal server error
{ "message": "1 entries found", "message_code": "success", "tables": [ { "bucket": "iceberg-bucket", "catalog": "iceberg_data", "columns": [ { "column": "club_name", "type": "string" }, { "column": "sl_no", "type": "int" } ], "owner": "ibmlhadmin", "schema": "s3", "table": "clubs" } ] }