Archive the asset container

POST /v2/asset_containers/archive

Archive the assets database of the asset container.<br/><br/>Archiving the assets database of not used asset containers helps saving storage and computing resources of the database, therefore reduce the footprint of CAMS.The information stored in the archived asset containers will not be accessible until the asset containers are restored.

Request

Request Body

CatalogArchiveCatalogRequest

Archive request

comment

string

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

202 - Accepted

state

string

archive_comment

string

archive_file_path

string

archive_schedule_time

string

archive_schedule_time_ticks

integer

archive_stop_time

string

archive_stop_time_ticks

integer

restore_schedule_time

string

restore_schedule_time_ticks

integer

restore_stop_time

string

restore_stop_time_ticks

integer

failed_times

integer

The times that the archive/restore process failed for the asset container. Note that a successful archive/restore will reset this field.

archived_in_internal_bucket

boolean

Indicates whether the container was archived into the CAMS internal bucket, as opposed to the containers own bucket.

failure

CatalogErrorContainerModel

The details of the error.

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get archive information of the asset container

GET /v2/asset_containers/archive_info

Get archive information of the asset container.

Request

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

state

string

archive_comment

string

archive_file_path

string

archive_schedule_time

string

archive_schedule_time_ticks

integer

archive_stop_time

string

archive_stop_time_ticks

integer

restore_schedule_time

string

restore_schedule_time_ticks

integer

restore_stop_time

string

restore_stop_time_ticks

integer

failed_times

integer

The times that the archive/restore process failed for the asset container. Note that a successful archive/restore will reset this field.

archived_in_internal_bucket

boolean

Indicates whether the container was archived into the CAMS internal bucket, as opposed to the containers own bucket.

failure

CatalogErrorContainerModel

The details of the error.

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get configurations

GET /v2/asset_containers/configurations

Get the configurations of a catalog/project/space.

Request

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

duplicate_action

string

Action to take if duplicate assets are found for a given asset

default_duplicate_strategy

string

Default duplicate detection strategy for assets of types that do not have duplicate detection strategy defined

duplicate_strategies

array

Duplicate detection strategies of assets with specified asset types in this catalog/project/space

reporting_authorized

boolean

Authorize reporting in this catalog

default_purge_on_delete

boolean

Whether assets has to be purged on delete

default_purge_after_days

integer

Days after which assets has to be purged after soft delete

dcat_configuration

object

Dcat configuration

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

Replace or create configurations

PUT /v2/asset_containers/configurations

Replace the configurations of a catalog/project/space or create the configurations if they do not exist.

Request

Request Body

CatalogAssetContainerConfiguration

Configurations

duplicate_action

string

Action to take if duplicate assets are found for a given asset

default_duplicate_strategy

string

Default duplicate detection strategy for assets of types that do not have duplicate detection strategy defined

duplicate_strategies

array

Duplicate detection strategies of assets with specified asset types in this catalog/project/space

reporting_authorized

boolean

Authorize reporting in this catalog

default_purge_on_delete

boolean

Whether assets has to be purged on delete

default_purge_after_days

integer

Days after which assets has to be purged after soft delete

dcat_configuration

object

Dcat configuration

dcat_enabled

boolean

Determines if the catalog is dcat enabled

profiles

array

List of DCAT profiles

dcat_properties

object

Map of DCAT properties keyed by DcatProfile. Each key must correspond to a profile listed in the 'profiles' field, and the value is the list of property names associated with that profile.

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

duplicate_action

string

Action to take if duplicate assets are found for a given asset

default_duplicate_strategy

string

Default duplicate detection strategy for assets of types that do not have duplicate detection strategy defined

duplicate_strategies

array

Duplicate detection strategies of assets with specified asset types in this catalog/project/space

reporting_authorized

boolean

Authorize reporting in this catalog

default_purge_on_delete

boolean

Whether assets has to be purged on delete

default_purge_after_days

integer

Days after which assets has to be purged after soft delete

dcat_configuration

object

Dcat configuration

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Restore the asset container

POST /v2/asset_containers/restore

Restore the assets database of the archived asset container. Only successfully archived asset container can be restored.

Request

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

state

string

archive_comment

string

archive_file_path

string

archive_schedule_time

string

archive_schedule_time_ticks

integer

archive_stop_time

string

archive_stop_time_ticks

integer

restore_schedule_time

string

restore_schedule_time_ticks

integer

restore_stop_time

string

restore_stop_time_ticks

integer

failed_times

integer

The times that the archive/restore process failed for the asset container. Note that a successful archive/restore will reset this field.

archived_in_internal_bucket

boolean

Indicates whether the container was archived into the CAMS internal bucket, as opposed to the containers own bucket.

failure

CatalogErrorContainerModel

The details of the error.

202 - Accepted

state

string

archive_comment

string

archive_file_path

string

archive_schedule_time

string

archive_schedule_time_ticks

integer

archive_stop_time

string

archive_stop_time_ticks

integer

restore_schedule_time

string

restore_schedule_time_ticks

integer

restore_stop_time

string

restore_stop_time_ticks

integer

failed_times

integer

The times that the archive/restore process failed for the asset container. Note that a successful archive/restore will reset this field.

archived_in_internal_bucket

boolean

Indicates whether the container was archived into the CAMS internal bucket, as opposed to the containers own bucket.

failure

CatalogErrorContainerModel

The details of the error.

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

List all asset lists defined for an account

GET /v2/asset_lists

Retrieve a paginated list of asset lists defined for an account.

Request

Path Parameters

Query Parameters

query

string

Query to retrieve a paginated list of assetlist metadata and asset metadata of assetlists based on masking conditions, for which the request user has permission to view.<br/><br/>Search query in Common Expression Language, with special characters encoded. For example, & is %26.<br/><br/>Examples of query parameters:<br/>* id<br/>* type<br/>* state<br/>* access_control.owner<br/>* created_at<br/>* last_updated_at

start

string

Start token for pagination

limit

integer

Search result limit

sort

This parameter can be repeated to add additional sort fields. <br><br>Default: null

Examples of sort fields (these are case insensitive):

  • created_at
  • -created_at
  • last_updated_at
  • -last_updated_at

include_item_properties

boolean

Flag to control whether to include asset list item properties in the response

bss_account_id

string

bss_account_id. If set, the operation will run in the context of this account instead of the one from the user token

Response

200 - OK

limit

integer

The limit on the number of results returned.

total_count

integer

The total count on the number of results returned, accounting for filtering but not pagination.

first

CatalogBaseCollectionPage

A page in a pagination collection.

next

CatalogBaseCollectionNextPage

The next page in the collection.

asset_lists

array

Collection of asset list results.

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Create a new asset list

POST /v2/asset_lists

Use this API to creates a new asset list.<br/><br/>If the `state` is not specified, the asset list will be created in DEFAULT state.<br/>The list may be created with items, or without items.<br/>The list will be owned by the request user.

Request

Request Body

CatalogAssetListPrototype

The asset list for creation.

name

Required *

string

Asset list name. A name can contain letters, numbers, understores, dashes, spaces or periods. Names are mutable and reusable.

description

string

A description of the asset list.

type

Required *

string

The type of the asset list. Valid types are: ['order', 'cart', 'wishlist']

state

string

The state of the asset list. Valid states are: ['default_state', 'confirmed']. If not specified, the default value will be 'DEFAULT'.

message

string

A message used for communicating reasons for state changes.

properties

CatalogPropertiesObject

The properties of an asset list item.

archived

boolean

Parameter indicates whether the assetlist is archived or not.

asset

CatalogAssetReference

An asset from a container.

id

Required *

string

The unique identifier of the asset formatted as a UUID.

type

string

The type (primary attribute) of the asset

container

object

The container for the asset ('catalog', 'project' or 'space').

items

array

The items in the asset list.

Response

201 - Created

name

string

Asset list name. A name can contain letters, numbers, understores, dashes, spaces or periods. Names are mutable and reusable.

description

string

A description of the asset list.

type

string

The type of the asset list. Valid types are: ['order', 'cart', 'wishlist']

state

string

The state of the asset list. Valid states are: ['default_state', 'confirmed']. If not specified, the default value will be 'DEFAULT'.

message

string

A message used for communicating reasons for state changes.

properties

CatalogPropertiesObject

The properties of an asset list item.

archived

boolean

Parameter indicates whether the assetlist is archived or not.

id

string

The unique identifier of the asset list formatted either as a UUID or a special case such as cart_userID.

asset

CatalogAssetReference

An asset from a container.

access_control

CatalogAssetListAccessControl

Access control permissions for the asset list.

created_at

string

RFC 3339 timestamp when the asset list was created (system managed).

last_updated_at

string

RFC 3339 timestamp when the asset list was last updated (system managed).

last_updated_by

string

The user who last updated the asset list.

items

array

The items in the asset list.

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

409 - Conflict

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

429 - Too Many Requests

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Delete asset lists

DELETE /v2/asset_lists

Deletes asset lists based on a query in Common Expression Language format.

Request

Path Parameters

Query Parameters

query

string

Query to delete asset lists for which the request user has permission.<br/><br/>Search query in Common Expression Language, with special characters encoded. For example, & is %26.<br/><br/>Examples of query parameters:<br/>* id<br/>* type<br/>* state<br/>* access_control.owner<br/>* created_at<br/>* last_updated_at

bss_account_id

string

bss_account_id. If set, the operation will run in the context of this account instead of the one from the user token

Response

204 - No Content

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

404 - Not Found

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

429 - Too Many Requests

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Retrieve an asset list identified by ID

GET /v2/asset_lists/{asset_list_id}

Retrieves the metadata of an asset list of a given identified by ID.

Request

Path Parameters

Query Parameters

bss_account_id

string

bss_account_id. If set, the operation will run in the context of this account instead of the one from the user token

Response

200 - OK

name

string

Asset list name. A name can contain letters, numbers, understores, dashes, spaces or periods. Names are mutable and reusable.

description

string

A description of the asset list.

type

string

The type of the asset list. Valid types are: ['order', 'cart', 'wishlist']

state

string

The state of the asset list. Valid states are: ['default_state', 'confirmed']. If not specified, the default value will be 'DEFAULT'.

message

string

A message used for communicating reasons for state changes.

properties

CatalogPropertiesObject

The properties of an asset list item.

archived

boolean

Parameter indicates whether the assetlist is archived or not.

id

string

The unique identifier of the asset list formatted either as a UUID or a special case such as cart_userID.

asset

CatalogAssetReference

An asset from a container.

access_control

CatalogAssetListAccessControl

Access control permissions for the asset list.

created_at

string

RFC 3339 timestamp when the asset list was created (system managed).

last_updated_at

string

RFC 3339 timestamp when the asset list was last updated (system managed).

last_updated_by

string

The user who last updated the asset list.

items

array

The items in the asset list.

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

404 - Not Found

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Delete an asset list identified by ID

DELETE /v2/asset_lists/{asset_list_id}

Deletes an asset list identified by ID. The user must have permission to perform this action.

Request

Path Parameters

Query Parameters

bss_account_id

string

bss_account_id. If set, the operation will run in the context of this account instead of the one from the user token

Response

204 - No Content

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

404 - Not Found

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

409 - Conflict

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

429 - Too Many Requests

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Update the metadata of an asset list

PATCH /v2/asset_lists/{asset_list_id}

Use this API to update the asset list metadata. Specify patch operations using http://jsonpatch.com/ syntax.

Fields that can be patched:

  • /name
  • /description
  • /type
  • /state (Approvers and Functional users only)
  • /message (Approvers and Functional users only)
  • /properties (Functional users)
  • /archived (Functional users and Asset Owner only)

Note: The ownership cannot be modified after creation.

Request

Request Body

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info.

Path Parameters

Query Parameters

bss_account_id

string

bss_account_id. If set, the operation will run in the context of this account instead of the one from the user token

Response

200 - OK

name

string

Asset list name. A name can contain letters, numbers, understores, dashes, spaces or periods. Names are mutable and reusable.

description

string

A description of the asset list.

type

string

The type of the asset list. Valid types are: ['order', 'cart', 'wishlist']

state

string

The state of the asset list. Valid states are: ['default_state', 'confirmed']. If not specified, the default value will be 'DEFAULT'.

message

string

A message used for communicating reasons for state changes.

properties

CatalogPropertiesObject

The properties of an asset list item.

archived

boolean

Parameter indicates whether the assetlist is archived or not.

id

string

The unique identifier of the asset list formatted either as a UUID or a special case such as cart_userID.

asset

CatalogAssetReference

An asset from a container.

access_control

CatalogAssetListAccessControl

Access control permissions for the asset list.

created_at

string

RFC 3339 timestamp when the asset list was created (system managed).

last_updated_at

string

RFC 3339 timestamp when the asset list was last updated (system managed).

last_updated_by

string

The user who last updated the asset list.

items

array

The items in the asset list.

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

409 - Conflict

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

415 - Unsupported Media Type

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

List the items of an asset list identified by ID

GET /v2/asset_lists/{asset_list_id}/items

Retrieves the list items of an asset list identified by ID.

Request

Path Parameters

asset_list_id

Required *

string

Asset list id (GUID, 'cart', or [type]_[userId])

Query Parameters

query

string

Query to retrieve a paginated list of asset list items for which the request user has permission to view.<br/><br/>Search query in Common Expression Language, with special characters encoded. For example, & is %26.<br/><br/>

start

string

Start token for pagination

limit

integer

Search result limit

sort

This parameter can be repeated to add additional sort fields. <br><br>Default: null

Examples of sort fields (these are case insensitive):

  • created_at
  • -created_at
  • last_update_time
  • -last_update_time

bss_account_id

string

bss_account_id. If set, the operation will run in the context of this account instead of the one from the user token

Response

200 - OK

limit

integer

The limit on the number of results returned.

total_count

integer

The total count on the number of results returned, accounting for filtering but not pagination.

first

CatalogBaseCollectionPage

A page in a pagination collection.

next

CatalogBaseCollectionNextPage

The next page in the collection.

items

array

Collection of asset list item results.

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

404 - Not Found

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Retrieve an item in an asset list

GET /v2/asset_lists/{asset_list_id}/items/{asset_list_item_id}

Retrieves an item identified by ID of an asset list identified by ID.

Request

Path Parameters

Query Parameters

bss_account_id

string

bss_account_id. If set, the operation will run in the context of this account instead of the one from the user token

Response

200 - OK

asset

CatalogAssetReference

An asset from a container.

properties

CatalogPropertiesObject

The properties of an asset list item.

id

string

The unique identifier of the asset list item formatted as a UUID.

access_control

CatalogAssetListAccessControl

Access control permissions for the asset list.

created_at

string

RFC 3339 timestamp when the asset list item was created (system managed).

last_updated_at

string

RFC 3339 timestamp when the asset list item was last updated (system managed).

last_updated_by

string

The user who last updated the asset list item.

asset_list

object

The reference to the asset list to which the item belongs.

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

404 - Not Found

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Update an asset list item

PATCH /v2/asset_lists/{asset_list_id}/items/{asset_list_item_id}

Use this API to update an asset list item. Specify patch operations using http://jsonpatch.com/ syntax.

Fields that can be patched:

  • /properties

Request

Request Body

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info.

Path Parameters

Query Parameters

bss_account_id

string

bss_account_id. If set, the operation will run in the context of this account instead of the one from the user token

Response

200 - OK

asset

CatalogAssetReference

An asset from a container.

properties

CatalogPropertiesObject

The properties of an asset list item.

id

string

The unique identifier of the asset list item formatted as a UUID.

access_control

CatalogAssetListAccessControl

Access control permissions for the asset list.

created_at

string

RFC 3339 timestamp when the asset list item was created (system managed).

last_updated_at

string

RFC 3339 timestamp when the asset list item was last updated (system managed).

last_updated_by

string

The user who last updated the asset list item.

asset_list

object

The reference to the asset list to which the item belongs.

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

415 - Unsupported Media Type

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Searches for relationship types

GET /v2/asset_relationship_types

Searches for relationship types using various criteria. The query parameters here provide filters for the relationship types that are returned in the result. If no query parameters are provided, the result will include all relationship types that are visible to your bss account. If an asset container is specified, the results are limited to relationship types where at least one end can be used with the specified asset container. This is the case if the relationship end either has no declared asset container (for example because the end references a global asset type or is untyped) or if the end has an asset container that is the same as the asset container specified. If a `relname` filter is specified, the results are limited to relationship types where at least one end has a relationship name in the list. In order to see relationship types where at least one end is in the container asset type(s), you must either belong to the container's BSS account or have at least editor permission on the container. All users have permission to see global relationship types.

Limit the relationship types based on the item types:

  • If the `asset_type` is specified, the results are limited to relationship types where at least one end is either untyped or is in the specified asset type list.
  • If both `asset_type` and `related_asset_type` are specified, the results are limited to relationship types where both ends are untyped, or where one end is in the specified asset type list and the other end has the specified asset type list.
  • If the `artifact_type` is specified, the results are limited to relationship types where at least one end is either untyped or is in the specified artifact type list.
  • If both `artifact_type` and `related_asset_type` are specified, the results are limited to relationship types where both ends are untyped, or where one end is in the specified artifact type list and the other end has the specified asset type list.
  • If the `asset_type` or `related_asset_type` is set to `*#_column`, the results are limited to relationship types where one end can be used with any supported column type (currently limited to `data_asset` columns)
  • If the item type is set to `*`, the results are limited to relationship types where one end can be used with any asset type or any artifact type.

Note: In CP4D environments there is just one global bss account, so all relationship types are always visible to all users.

This API returns relationship types from the effective BSS account, which is determined in the following order of precedence:<br/>

  1. The `bss_account_id` query parameter (if provided)<br/>
  2. The BSS account of the container specified by `container_id` (if provided)<br/>
  3. The BSS account from the impersonation header (for service IDs only)<br/>
  4. The BSS account from the bearer token<br/><br/> The results include global relationship types (accessible to all users) and relationship types scoped to the effective BSS account.<br/><br/> <b>Important</b>: Relationship types scoped to other BSS accounts that you have access to will not be included in the results. To see relationship types from a specific BSS account, explicitly set the `bss_account_id` query parameter or specify a `container_id` from that BSS account.

Request

Path Parameters

Query Parameters

container_type

string

Required when container_id is specified and the container is not a catalog. Specifies the type of the container (CATALOG/PROJECT/SPACE). Defaults to CATALOG.

container_id

string

Container ID. This limits results to relationship types that have an endpoint with the specified ID of a catalog, project, or space. If the container is a project or space, the container_type parameter must be also specified, otherwise container_id is treated as a catalog ID. This parameter is required when querying for relationship types associated with a catalog, project, or space. If this parameter is omitted, relationships types are not filtered by their container. Note that any type with an endpoint that has no container ID will also be included the result.

type_name

string

The parameter `type_name` is deprecated, please use `asset_type` instead

asset_type

array

Asset Type Name(s). This limits the results to only relationship types that have an endpoint in the specified asset type list, or have an endpoint that is untyped.

artifact_type

array

Artifact Type Name(s). This limits the results to only relationship types that have an endpoint in the specified artifact type list, or have an endpoint that is untyped.

array

Related Asset Type Name(s). This parameter can only be set when either asset_type or artifact_type is also set.

When asset_type is set, this limits the results to only relationship types that have an endpoint with the specified asset type and the other endpoint with this specified asset type.

When artifact_type is set, this limits the results to only relationship types that have an endpoint with the specified artifact type and the other endpoint with this specified asset type.

limit

integer

limit to use when finding relationship types

bookmark

string

Optional bookmark to use when finding relationship types.

relname

array

Relationship name(s). This limits the results to relationship types that have an endpoint with the specified name. The parameter should be repeated for each allowed relationship name.

default_display_name

array

Default display name(s). This limits the results to relationship types that have an endpoint with the specified name. The parameter should be repeated for each allowed relationship name.

scope

string

Specifies the scope of the relationship types which can be (GLOBAL/BSS_ACCOUNT). If GLOBAL - it returns all types scoped to Global.If BSS_ACCOUNT - it returns all types scoped to BSS_ACCOUNT.If query parameter is omitted, it returns all.

bss_account_id

string

If specified, the results are limited to relationship types that can be accessed by the specified BSS account. If `container_id` is also specified, the catalog's BSS account must be the same as the BSS account specified here.

If `bss_account_id` is not specified, the result includes global relationship types and account-scoped relationship types for the effective BSS account (determined automatically as described in the main endpoint description).

Response

200 - Success

resources

array

relationship types that match the search criteria

total_rows

integer

total number of rows in the search result

next

object

URL to fetch the next page of search results

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

429 - Too Many Requests

Specifying the Type

The combination of `container_type`, `container_id`, and `containing_asset_type(s)` control what asset types can be used at each end of the relationship. The asset type can be a global asset type, an account-level asset type, a container-scoped asset type, or any asset type.

Global Asset Type

To define a relationship end for a global asset type, the `containing_asset_type(s)` field must be set to the name of the asset type and the `container_id` must be omitted. In this case, the relationship end can only be used with the specified global asset type. If the `container_type` field is set when using a global asset type, it is ignored.

Account Level Asset Type

To define a relationship end for an account-level asset type, the `containing_asset_type(s)` field must be set to the name of the asset type and the `container_id` must be omitted. In addition, the `bss_account_id` query parameter must be set to the bss account that owns the account-level asset type. In this case, the relationship end can only be used with the specified account-level asset type. If the `container_type` field is set when using an account-level asset type, it is ignored.

Container-Scoped Asset Type

The relationship mechanism allows relationship ends to be restricted to an asset type defined in a specific catalog, project, or space. To do this, the `containing_asset_type(s)`, `container_type`, and `container_id` fields must all be set.

Artifact Type

To define a relationship end for an governance artifact type, the `containing_artifact_type(s)` field must be set to the name of the artifact type and the `container_id` must be omitted. The on_delete field can only set to IGNORE on both ends

Column Type

To define a relationship end for a column type, the `containing_asset_type(s)` field must be set in the format of `<asset_type>#_column`. When `*#_column` is specified, the relationship end can be used with any supported column type. Currently, only `data_asset` columns are supported. The `on_delete` field can only set to `IGNORE` on both ends

Any Type

To allow a relationship end to be used with any asset type, the `containing_artifact_type(s)`, `containing_asset_type(s)` and `container_id` fields for the relationship end must be omitted. In this case, the relationship end can be used with any asset type, any artifact type, and any supported column type in any container. If the `container_type` field is set, it will be ignored.

Note: Cannot have `containing_artifact_type(s)` specified in both ends

Specifying the Relationship Type Scope

A relationship type can either be global or be scoped to a BSS account.

A relationship type can be explicitly scoped to a specific bss account using the `bss_account_id` query parameter. When a relationship type is scoped to a bss account, all specified asset containers and account-level asset types must belong to that bss account. If either endpoint for the relationship type has a specific asset container, the relationship type is automatically scoped to the bss account for the asset container. Account scoped relationship types can only be created if the user either belongs to the same bss account or is an administrator of all asset containers in the relationship type definition.

By default, if neither end of the relationship type specifies an asset container, the relationship type is created in the global scope and is accessible to all users. Only service ids with permission to create global asset types are allowed to create globally scoped relationship types. It is possible to scope a relationship type where neither end has an asset container to a specific BSS account. To do this, you must set the `bss_account_id` query parameter when creating the relationship type. The bss account must be set to a bss account that you have access to. In that case, the relationship type will be created, but its use will be restricted to asset containers associated with that bss account.

By default, on_delete is set to `IGNORE` if it is not specified

Note that in CP4D environments, there is only one bss account (`999`). As a result, in that context relationship types scoped to a specific BSS account are effectively global.

Cascading clone/publish/promote to Referenced Assets

The following flags control how related assets are processed when an asset is copied using the `deepcopy` endpoint

Option Allowed Value Default Description
on_clone CASCADE/IGNORE IGNORE If CASCADE, deepcopy from a catalog to a project causes the referenced assets to be copied as well
on_publish CASCADE/IGNORE IGNORE If CASCADE, deepcopy from project to a catalog causes the referenced assets to be copied as well
on_promote CASCADE/IGNORE IGNORE If CASCADE, deepcopy from a project to a space causes the referenced assets to be coped as well

">

Creates an asset relationship type

POST /v2/asset_relationship_types

Use this API to create an asset relationship type. The type definition consists of two endpoints which specify the two ends of a bidirectional relationship. The endpoints define the name of the relationship at each end, and the qualified asset type or the qualified artifact type that contains the relationship endpoint. The names of the relationships that can be used with any given asset type or artifact type are required to be unique. If the qualified asset type and the qualified artifact type are omitted, that end can be used with any asset type and any artifact type in any container.

Specifying the Type

The combination of `container_type`, `container_id`, and `containing_asset_type(s)` control what asset types can be used at each end of the relationship. The asset type can be a global asset type, an account-level asset type, a container-scoped asset type, or any asset type.

Global Asset Type

To define a relationship end for a global asset type, the `containing_asset_type(s)` field must be set to the name of the asset type and the `container_id` must be omitted. In this case, the relationship end can only be used with the specified global asset type. If the `container_type` field is set when using a global asset type, it is ignored.

Account Level Asset Type

To define a relationship end for an account-level asset type, the `containing_asset_type(s)` field must be set to the name of the asset type and the `container_id` must be omitted. In addition, the `bss_account_id` query parameter must be set to the bss account that owns the account-level asset type. In this case, the relationship end can only be used with the specified account-level asset type. If the `container_type` field is set when using an account-level asset type, it is ignored.

Container-Scoped Asset Type

The relationship mechanism allows relationship ends to be restricted to an asset type defined in a specific catalog, project, or space. To do this, the `containing_asset_type(s)`, `container_type`, and `container_id` fields must all be set.

Artifact Type

To define a relationship end for an governance artifact type, the `containing_artifact_type(s)` field must be set to the name of the artifact type and the `container_id` must be omitted. The on_delete field can only set to IGNORE on both ends

Column Type

To define a relationship end for a column type, the `containing_asset_type(s)` field must be set in the format of `<asset_type>#_column`. When `*#_column` is specified, the relationship end can be used with any supported column type. Currently, only `data_asset` columns are supported. The `on_delete` field can only set to `IGNORE` on both ends

Any Type

To allow a relationship end to be used with any asset type, the `containing_artifact_type(s)`, `containing_asset_type(s)` and `container_id` fields for the relationship end must be omitted. In this case, the relationship end can be used with any asset type, any artifact type, and any supported column type in any container. If the `container_type` field is set, it will be ignored.

Note: Cannot have `containing_artifact_type(s)` specified in both ends

Specifying the Relationship Type Scope

A relationship type can either be global or be scoped to a BSS account.

A relationship type can be explicitly scoped to a specific bss account using the `bss_account_id` query parameter. When a relationship type is scoped to a bss account, all specified asset containers and account-level asset types must belong to that bss account. If either endpoint for the relationship type has a specific asset container, the relationship type is automatically scoped to the bss account for the asset container. Account scoped relationship types can only be created if the user either belongs to the same bss account or is an administrator of all asset containers in the relationship type definition.

By default, if neither end of the relationship type specifies an asset container, the relationship type is created in the global scope and is accessible to all users. Only service ids with permission to create global asset types are allowed to create globally scoped relationship types. It is possible to scope a relationship type where neither end has an asset container to a specific BSS account. To do this, you must set the `bss_account_id` query parameter when creating the relationship type. The bss account must be set to a bss account that you have access to. In that case, the relationship type will be created, but its use will be restricted to asset containers associated with that bss account.

By default, on_delete is set to `IGNORE` if it is not specified

Note that in CP4D environments, there is only one bss account (`999`). As a result, in that context relationship types scoped to a specific BSS account are effectively global.

Cascading clone/publish/promote to Referenced Assets

The following flags control how related assets are processed when an asset is copied using the `deepcopy` endpoint

Option Allowed Value Default Description
on_clone CASCADE/IGNORE IGNORE If CASCADE, deepcopy from a catalog to a project causes the referenced assets to be copied as well
on_publish CASCADE/IGNORE IGNORE If CASCADE, deepcopy from project to a catalog causes the referenced assets to be copied as well
on_promote CASCADE/IGNORE IGNORE If CASCADE, deepcopy from a project to a space causes the referenced assets to be coped as well

Request

Request Body

CatalogRelationshipTypeEntity

Relationship Type request body

end1

Required *

object

First relationship type endpoint (order is not important)

default_display_name

Required *

string

Default display name for this end of the relationship. This is what will be shown in the UI.

localized_display_name

object

Map of localized display names, keyed on the ISO 639 language code (e.g. "zh")

relationship_name

Required *

string

Internal, non-translated, name for this end of the relationship. This becomes part of the path in the APIs for manipulating and querying relationship types.

relationship_shared

boolean

Determines whether instances of this relationship type should be shared across copies of this asset. For example, a primary key constraint that constrains a table.

containing_artifact_type

string

Optionally specifies the type of the artifact that contains this relationship. If omitted with containing_artifact_types, any artifact types are allowed.

containing_artifact_types

array

Optionally specify the types of the artifacts that contain this relationship. If omitted with containing_artifact_type, any artifact types are allowed.

container_id

string

Specifies the catalog, project, or space id that contains the asset type. This is only required if the asset type is scoped to a particular catalog, project, or space. It is not allowed for global asset types, for example data_asset.

container_type

string

Specifies the type of the container which contains the asset type. This field is required if the container_id is set. It is ignored if the container_id is unset. Allowed values: 'CATALOG', 'SPACE', 'PROJECT'

multiplicity

Required *

string

Multiplicity of this end of the relationship. This controls how many targets the relationship can point to.

displayInChild

boolean

Whether the relationship attribute is displayed in child asset.

on_delete

string

Determines processing of the relationship target when the source object is deleted. Allowed values: CASCADE - delete the referenced object, IGNORE - do not delete the referenced object. Default: IGNORE

on_clone

string

Determines processing of the relationship target when the source object is cloned. Allowed values: CASCADE - clone the referenced object, IGNORE - do not clone the referenced object. Default: IGNORE

on_catalog_clone

string

Determines processing of the relationship target when the source object is cloned to a target catalog. Allowed values: CASCADE - clone the referenced object, IGNORE - do not clone the referenced object. Default: IGNORE

on_publish

string

Determines processing of the relationship target when the source object is published. Allowed values: CASCADE - publish the referenced object, IGNORE - do not publish the referenced object. Default: IGNORE

on_promote

string

Determines processing of the relationship target when the source object is promoted. Allowed values: CASCADE - promote the referenced object, IGNORE - do not promote the referenced object. Default: IGNORE

option_overrides

array

Optionally specifies any override of cascade behavior on `delete, clone, promote and publish` based on specific asset type pairs Note: All duplicate elements will be ignored by the option_overrides `Set` when provided via create or patch REST API(s)

containing_asset_types

array

Optionally specify the types of the assets that contain this relationship. If omitted with containing_asset_type, any asset types are allowed.

containing_asset_type

string

Optionally specifies the type of the asset that contains this relationship. If omitted with containing_asset_types, any asset types are allowed.

end2

Required *

object

Second relationship type endpoint (order is not important)

default_display_name

Required *

string

Default display name for this end of the relationship. This is what will be shown in the UI.

localized_display_name

object

Map of localized display names, keyed on the ISO 639 language code (e.g. "zh")

relationship_name

Required *

string

Internal, non-translated, name for this end of the relationship. This becomes part of the path in the APIs for manipulating and querying relationship types.

relationship_shared

boolean

Determines whether instances of this relationship type should be shared across copies of this asset. For example, a primary key constraint that constrains a table.

containing_artifact_type

string

Optionally specifies the type of the artifact that contains this relationship. If omitted with containing_artifact_types, any artifact types are allowed.

containing_artifact_types

array

Optionally specify the types of the artifacts that contain this relationship. If omitted with containing_artifact_type, any artifact types are allowed.

container_id

string

Specifies the catalog, project, or space id that contains the asset type. This is only required if the asset type is scoped to a particular catalog, project, or space. It is not allowed for global asset types, for example data_asset.

container_type

string

Specifies the type of the container which contains the asset type. This field is required if the container_id is set. It is ignored if the container_id is unset. Allowed values: 'CATALOG', 'SPACE', 'PROJECT'

multiplicity

Required *

string

Multiplicity of this end of the relationship. This controls how many targets the relationship can point to.

displayInChild

boolean

Whether the relationship attribute is displayed in child asset.

on_delete

string

Determines processing of the relationship target when the source object is deleted. Allowed values: CASCADE - delete the referenced object, IGNORE - do not delete the referenced object. Default: IGNORE

on_clone

string

Determines processing of the relationship target when the source object is cloned. Allowed values: CASCADE - clone the referenced object, IGNORE - do not clone the referenced object. Default: IGNORE

on_catalog_clone

string

Determines processing of the relationship target when the source object is cloned to a target catalog. Allowed values: CASCADE - clone the referenced object, IGNORE - do not clone the referenced object. Default: IGNORE

on_publish

string

Determines processing of the relationship target when the source object is published. Allowed values: CASCADE - publish the referenced object, IGNORE - do not publish the referenced object. Default: IGNORE

on_promote

string

Determines processing of the relationship target when the source object is promoted. Allowed values: CASCADE - promote the referenced object, IGNORE - do not promote the referenced object. Default: IGNORE

option_overrides

array

Optionally specifies any override of cascade behavior on `delete, clone, promote and publish` based on specific asset type pairs Note: All duplicate elements will be ignored by the option_overrides `Set` when provided via create or patch REST API(s)

containing_asset_types

array

Optionally specify the types of the assets that contain this relationship. If omitted with containing_asset_type, any asset types are allowed.

containing_asset_type

string

Optionally specifies the type of the asset that contains this relationship. If omitted with containing_asset_types, any asset types are allowed.

flags

object

Set of flags. These flags determine the relationship type's behavior

description

string

Description of the relationship type

Path Parameters

Query Parameters

bss_account_id

string

This parameter forces the relationship type to be scoped to the specified bss account. It allows the creation of an account-scoped relationship type where both ends are either untyped, or are global asset types. It is required if the relationship type entity references any account-level asset types. An account-scoped relationship type is only visible to users in the BSS account for the relationship type. If the query parameter is unset, such relationships will be global in scope and can only be created if the user has permission to create a global asset type. Note: the BSS account can also be set via an impersonation header. If it is set in both places, the `bss_account_id` query parameter has precedence. This parameter is not required if either end of the relationship type has a catalog asset type. If it is set for a relationship type that has a catalog asset type, it must be the same as the BSS account for the catalog.

Response

201 - Created

metadata

object

relationship type metadata

entity

object

relationship type entity

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

429 - Too Many Request

For an asset type:
  • set `asset_type`. This parameter should be repeated for each allowed asset type
  • All asset types in the list must either be global/account level asset types or be scoped to the asset container specified by the `catalog_id`, `project_id`, or `space_id`.

For a column type:

  • set `asset_type` as `<asset_type>#_column`
  • if `asset_type` is specific to a container (catalog, space, or project), then set a container ID parameter as appropriate (`catalog_id`, `space_id`, `project_id`).

For a governance artifact type:

  • set `artifact_type`. This parameter should be repeated for each allowed artifact type

This API returns relationship type ends from the effective BSS account, which is determined in the following order of precedence:

  1. The `bss_account_id` query parameter (if provided)
  2. The BSS account of the catalog/project/space specified in the query parameters
  3. The BSS account from the impersonation header (for service IDs only)
  4. The BSS account from the bearer token

The results include global relationship types (accessible to all users) plus types scoped to the effective BSS account.

">

Searches for relationship type ends

POST /v2/asset_relationship_types/search_ends

Find relationship type ends that can be used with an asset type or artifact type. This API supports finding relationship type ends that use global or catalog asset types.

For an asset type:

  • set `asset_type`. This parameter should be repeated for each allowed asset type
  • All asset types in the list must either be global/account level asset types or be scoped to the asset container specified by the `catalog_id`, `project_id`, or `space_id`.

For a column type:

  • set `asset_type` as `<asset_type>#_column`
  • if `asset_type` is specific to a container (catalog, space, or project), then set a container ID parameter as appropriate (`catalog_id`, `space_id`, `project_id`).

For a governance artifact type:

  • set `artifact_type`. This parameter should be repeated for each allowed artifact type

This API returns relationship type ends from the effective BSS account, which is determined in the following order of precedence:

  1. The `bss_account_id` query parameter (if provided)
  2. The BSS account of the catalog/project/space specified in the query parameters
  3. The BSS account from the impersonation header (for service IDs only)
  4. The BSS account from the bearer token

The results include global relationship types (accessible to all users) plus types scoped to the effective BSS account.

Request

Path Parameters

Query Parameters

catalog_id

string

catalog_id. If no container parameters are set, any asset container the user has access to are allowed.

project_id

string

project_id. If no container parameters are set, any asset containers the user has access to are allowed.

space_id

string

space_id. If no container parameters are set, any asset containers the user has access to are allowed.

asset_type

array

asset_type(s). This specifies the asset type(s) whose relationship type ends should be found. This parameter should be repeated for each allowed asset type.

artifact_type

array

artifact_type(s). This specifies the artifact type(s) whose relationship type ends should be found. This parameter should be repeated for each allowed artifact type.

end_types

array

end_types. This filters the result to only include relationship type ends of the specified type(s) - valid filter values are {ASSET, ARTIFACT, COLUMN}. If this parameter is not specified, all relationship ends that match other criteria will be returned.

limit

integer

Optional limit to use when finding relationship type ends

bookmark

string

Optional bookmark to use when finding relationship type ends.

orderby

array

orderby. This parameter can be repeated to add additional sort fields. <br><br>Default: relationship_display_name_asc

Supported sort fields (these are case insensitive):

  • relationship_name_asc
  • relationship_name_desc
  • relationship_display_name_asc
  • relationship_display_name_desc
  • create_time_asc
  • create_time_desc

relationship_names

array

Limits results to only include the specified relationships. By default, all relationship type ends which match the other search criteria are included. Repeat the query parameter to specify multiple relationship names.

bss_account_id

string

If set, the operation will run in the context of this BSS account. If not set, the effective BSS account is determined automatically as described in the main endpoint description.

Response

200 - Success

options

object

array

array

array

resources

array

total_rows

integer

next

object

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

429 - Too Many Requests

Finds relationship types that are used by an asset, column or governance artifact

POST /v2/asset_relationship_types/search_used_ends

Finds relationship types that are used by an asset, column or a governance artifact. This API only returns the first page of results. It does not accept a bookmark. Any additional pages of results must be fetched using the next page url included in the response.<br/><br/> You can refer to the options in the response to get the full list of relationship names.

This API returns relationship types from the effective BSS account, which is determined in the following order of precedence:<br/>

  1. The `bss_account_id` query parameter (if provided)<br/>
  2. The BSS account of the asset's container (when `asset_id` and container are specified)<br/>
  3. The BSS account from the impersonation header (for service IDs only, when `artifact_id` is specified)<br/>
  4. The BSS account from the bearer token (when `artifact_id` is specified)<br/><br/> The results include global relationship types (accessible to all users) and relationship types scoped to the effective BSS account.<br/><br/> <b>Important</b>: Relationship types scoped to other BSS accounts that you have access to will not be included in the results.

Request

Path Parameters

Query Parameters

catalog_id

string

Catalog ID

project_id

string

Project ID

space_id

string

Space ID

asset_id

string

Asset ID

artifact_id

string

Artifact ID

artifact_type

string

Artifact Type

limit

integer

Optional limit to use when finding relationship types

boolean

Includes a list of the related asset types and artifact types in the result. This option adds overhead, so enable it only if the related type information is needed.

orderby

array

orderby. This parameter can be repeated to add additional sort fields. <br><br>Default: relationship_display_name_asc

Supported sort fields (these are case insensitive):

  • relationship_name_asc
  • relationship_name_desc
  • relationship_display_name_asc
  • relationship_display_name_desc
  • create_time_asc
  • create_time_desc

bss_account_id

string

If set, the operation will run in the context of this BSS account. If not set, the effective BSS account is determined automatically as described in the main endpoint description.

Response

200 - Success

options

object

array

array

array

resources

array

total_rows

integer

next

object

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

429 - Too Many Requests

DELETE /v2/asset_relationship_types/{relationship_type_id}

Deletes a relationship type.

Request

Path Parameters

relationship_type_id

Required *

string

Query Parameters

bss_account_id

string

If set, the operation will run in the context of this BSS account. If not set, the effective BSS account is determined automatically as described in the main endpoint description.

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

429 - Too Many Request

Add a display name to an endpoint without an existing `localized_display_name` element:

``` [ { "op": "add", "path": "/end2/localized_display_name", "value": {" "en-us": "English Display Name" } } ] ```

Add a display name to an endpoint with an existing `localized_display_name` element:

``` [ { "op": "add", "path": "/end2/localized_display_name/en-gb", "value": "British Display Name", } ] ```

Change localized display name for en-gb in end2:"

``` [ { "op": "replace", "path": "/end2/localized_display_name/en-gb", "value": "New British Display Name" } ] ```

Remove localized display name for en-gb rom end1:

``` [ { "op": "remove", "path": "/end1/localized_display_name/en-gb" } ] ```

Update multiplicity in end1:

Allowed value: "MANY"

This field can only be updated from "ONE" to "MANY". Updates from "MANY" to "ONE" are not allowed. ``` [ { "op": "replace", "path": "/end1/multiplicity", "value": "MANY" } ] ```

Add a relationship option override, replace an existing relationship option override, delete an existing relationship option override:

``` [ { "op": "add", "path": "/end1/option_overrides/-", "value": { "this_asset_type": "ibm_bi_report", "other_asset_type": "ibm_bi_report_query", "on_delete": "CASCADE", "on_publish": "IGNORE", "on_promote": "CASCADE", "on_clone": "IGNORE" } }, { "op": "replace", "path": "/end1/option_overrides/1/on_delete", "value": "CASCADE" }, { "op": "add", "path": "/end1/option_overrides/1/on_promote", "value": "IGNORE" }, { "op": "remove", "path": "/end1/option_overrides/1/on_promote" } ] ``` ">

Patches a relationship type

PATCH /v2/asset_relationship_types/{relationship_type_id}

Updates an existing relationship type. The patch body must be an array of json patch operations as defined in RFC 6902.

The following fields can be patched in each relationship type endpoint:

  • `default_display_name` (value can be changed but not removed)
  • `localized_display_name` (values can be added, changed, and removed)
  • `on_delete` (value can be added, removed, or deleted)
  • `multiplicity` (value can be scaled up from ONE to MANY, but it cannot be scaled down from MANY to ONE)

Relationship types where at least one endpoint is a catalog asset type can be patched either by an admin member of the catalog, or by a user in the catalog's BSS account. Global relationship types can only be patched by a user with permission to create global asset types.

It is important to note that the patch specifies updates to apply the current json representation of the relationship types. When specifying an add/replace/remove patch operation, all of parent elements in the path must already exist. In particular, if the relationship type endpoint was originally created without a `localized_display_name` element, that element needs to be created by the patch operations.

Here are some examples of patches that can be applied:

Add a display name to an endpoint without an existing `localized_display_name` element:

``` [ { "op": "add", "path": "/end2/localized_display_name", "value": {" "en-us": "English Display Name" } } ] ```

Add a display name to an endpoint with an existing `localized_display_name` element:

``` [ { "op": "add", "path": "/end2/localized_display_name/en-gb", "value": "British Display Name", } ] ```

Change localized display name for en-gb in end2:"

``` [ { "op": "replace", "path": "/end2/localized_display_name/en-gb", "value": "New British Display Name" } ] ```

Remove localized display name for en-gb rom end1:

``` [ { "op": "remove", "path": "/end1/localized_display_name/en-gb" } ] ```

Update multiplicity in end1:

Allowed value: "MANY"

This field can only be updated from "ONE" to "MANY". Updates from "MANY" to "ONE" are not allowed. ``` [ { "op": "replace", "path": "/end1/multiplicity", "value": "MANY" } ] ```

Add a relationship option override, replace an existing relationship option override, delete an existing relationship option override:

``` [ { "op": "add", "path": "/end1/option_overrides/-", "value": { "this_asset_type": "ibm_bi_report", "other_asset_type": "ibm_bi_report_query", "on_delete": "CASCADE", "on_publish": "IGNORE", "on_promote": "CASCADE", "on_clone": "IGNORE" } }, { "op": "replace", "path": "/end1/option_overrides/1/on_delete", "value": "CASCADE" }, { "op": "add", "path": "/end1/option_overrides/1/on_promote", "value": "IGNORE" }, { "op": "remove", "path": "/end1/option_overrides/1/on_promote" } ] ```

Request

Request Body

 JSON array of patch operations as defined in RFC 6902.
 Note: Any ‘~’ characters need to be escaped as ~0 in the path field.
 Any ‘/’ characters need to be escaped as ~1 in the path field.
 For example, in &#x60;{&quot;foo/&quot; : {&quot;~bar&quot; : &quot;value&quot;}}&#x60;, the path for &#x60;&quot;~bar&quot;&#x60; is &#x60;&quot;/foo~1/~0bar&quot;&#x60;.

Path Parameters

relationship_type_id

Required *

string

relationship_type_id

Query Parameters

bss_account_id

string

If set, the operation will run in the context of this BSS account. If not set, the effective BSS account is determined automatically as described in the main endpoint description.

Response

200 - Relationship type was successfully patched

metadata

object

relationship type metadata

entity

object

relationship type entity

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

429 - Too Many Requests

List all asset types defined for an account, catalog, project or space.

GET /v2/asset_types

Get all asset types in an account, catalog, project or space. Custom properties added/updated at the account level asset types can only be fetched if bss_account_id parameter is passed

Request

Path Parameters

Query Parameters

catalog_id

string

This parameter allows retrieving catalog-scoped asset types. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

project_id

string

This parameter allows retrieving project-scoped asset types. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

space_id

string

This parameter allows retrieving space-scoped asset types. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

bss_account_id

string

This parameter allows retrieving account-scoped asset types. May be different than account of user specified in Bearer token. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

permits_decorators

boolean

This parameter allows to retrieve asset types which can be decorated. You can provide either a true or a false.

custom_attributes

boolean

This parameter allows to retrieve asset types which can be used only as attributes and are user defined. You can provide either a true or a false. At a time, either permits_decorators or custom_attributes can be true.

locale

string

Language code, such as default, en, etc.

Response

200 - OK

resources

array

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Creates an asset type in an account, catalog, project or space.

POST /v2/asset_types

Creates an asset type in account, catalog, project or space.

Request

Request Body

CatalogCreationType

Asset Type request body

description

string

Asset type description

fields

Required *

array

Fields that are indexed if present in the asset.

external_asset_preview

object

External Asset Preview. Clients can make use of this to render content appropriately for this asset type.

base_client_url

Required *

string

Base client URL

url_parameters_from_asset_attributes

array

URL parameters

url_path_from_asset_attributes

string

URL path

url_parameters_fixed

string

URL parameters fixed

relationships

array

Relationship definitions for this asset type.

properties

object

Provides the IKC UI with information about displaying properties that can be present in the asset

localized_metadata_attributes

object

Example "localized_metadata_attributes": { "name": { "default": "Data Asset", "en": "Data Asset", "fr": "Data Asset" } }

decorates

array

List of pointers to types this type can decorate.

identity

object

Identity definition of the assets of the type

strategy

string

The strategy for detecting duplicate asset of the type

global_strategy

string

global_search_searchable

array

List of fields made searchable through Global Search functionality

attribute_behavior

object

Define the behavior only if this asset type is used as an attribute.

remove_on_copy

boolean

Remove the attribute when cloning, publishing or promoting the asset

attribute_only

boolean

If set to true, the type definition will be custom attributes, which can be used to decorate other asset types and cannot create this as a top level asset of this asset type. If set to false, the type definition will be custom asset type, which can be used to create top level assets of this asset type and/or also decorate other asset types.

data_protection

object

Asset type properties and attachments that should be filtered out for users without data access

all_fields

boolean

Indicates if all fields of the asset type are protected. If 'all_fields' is true, then 'fields' is ignored.

all_attachments

boolean

Indicates if all attachments of the asset type are protected. If 'all_attachments' is true, then 'attachment_types' is ignored.

field_search_paths

array

List of json paths that lead to the fields to be protected. e.g., "scoring.input_data", "columns[].name", "columns[0].code", "*.connection_id", etc. If 'all_fields' is true, then 'field_search_paths' is ignored.

attachment_types

array

List of types of attachments of the asset type to be protected. If 'all_attachments' is true, then 'attachment_types' is ignored.

is_column_custom_attribute

boolean

Set it to true if this is to be used for column custom attributes. Set to false if this is used for asset types or attribute. If true, allow_decorators should be false.

can_have_image

boolean

Set it to true if the type is expected to support uploading of images, else set it to false.

icon_id

string

Name/id of the svg image to be used as the icon for the to be created asset type.

version

number

The version of defined asset type

name

Required *

string

Asset type name

allow_decorators

boolean

shared_in_types

array

enforce_required_properties

boolean

Path Parameters

Query Parameters

catalog_id

string

This parameter allows the creation of a catalog-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

project_id

string

This parameter allows the creation of a project-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

space_id

string

This parameter allows the creation of a space-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

bss_account_id

string

This parameter allows the creation of an account-scoped asset type. May be different than account of user specified in Bearer token. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

Response

201 - Created

description

string

Asset type description

fields

array

Fields that are indexed if present in the asset.

external_asset_preview

object

External Asset Preview. Clients can make use of this to render content appropriately for this asset type.

relationships

array

Relationship definitions for this asset type.

properties

object

Provides the IKC UI with information about displaying properties that can be present in the asset

localized_metadata_attributes

object

Example "localized_metadata_attributes": { "name": { "default": "Data Asset", "en": "Data Asset", "fr": "Data Asset" } }

decorates

array

List of pointers to types this type can decorate.

identity

object

Identity definition of the assets of the type

global_search_searchable

array

List of fields made searchable through Global Search functionality

attribute_behavior

object

Define the behavior only if this asset type is used as an attribute.

attribute_only

boolean

If set to true, the type definition will be custom attributes, which can be used to decorate other asset types and cannot create this as a top level asset of this asset type. If set to false, the type definition will be custom asset type, which can be used to create top level assets of this asset type and/or also decorate other asset types.

data_protection

object

Asset type properties and attachments that should be filtered out for users without data access

is_column_custom_attribute

boolean

Set it to true if this is to be used for column custom attributes. Set to false if this is used for asset types or attribute. If true, allow_decorators should be false.

can_have_image

boolean

Set it to true if the type is expected to support uploading of images, else set it to false.

icon_id

string

Name/id of the svg image to be used as the icon for the to be created asset type.

version

number

The version of defined asset type

name

string

Asset type name

scope

string

The scope of defined asset type. Derived-field. Will be one of GLOBAL, ACCOUNT, CATALOG, PROJECT, or SPACE.

decorated_by

array

List of pointers to types this type can be decorated by.

allow_decorators

boolean

shared_in_types

array

enforce_required_properties

boolean

202 - Accepted - indicates the asset type creation is being completed in the background

description

string

Asset type description

fields

array

Fields that are indexed if present in the asset.

external_asset_preview

object

External Asset Preview. Clients can make use of this to render content appropriately for this asset type.

relationships

array

Relationship definitions for this asset type.

properties

object

Provides the IKC UI with information about displaying properties that can be present in the asset

localized_metadata_attributes

object

Example "localized_metadata_attributes": { "name": { "default": "Data Asset", "en": "Data Asset", "fr": "Data Asset" } }

decorates

array

List of pointers to types this type can decorate.

identity

object

Identity definition of the assets of the type

global_search_searchable

array

List of fields made searchable through Global Search functionality

attribute_behavior

object

Define the behavior only if this asset type is used as an attribute.

attribute_only

boolean

If set to true, the type definition will be custom attributes, which can be used to decorate other asset types and cannot create this as a top level asset of this asset type. If set to false, the type definition will be custom asset type, which can be used to create top level assets of this asset type and/or also decorate other asset types.

data_protection

object

Asset type properties and attachments that should be filtered out for users without data access

is_column_custom_attribute

boolean

Set it to true if this is to be used for column custom attributes. Set to false if this is used for asset types or attribute. If true, allow_decorators should be false.

can_have_image

boolean

Set it to true if the type is expected to support uploading of images, else set it to false.

icon_id

string

Name/id of the svg image to be used as the icon for the to be created asset type.

version

number

The version of defined asset type

name

string

Asset type name

scope

string

The scope of defined asset type. Derived-field. Will be one of GLOBAL, ACCOUNT, CATALOG, PROJECT, or SPACE.

decorated_by

array

List of pointers to types this type can be decorated by.

allow_decorators

boolean

shared_in_types

array

enforce_required_properties

boolean

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

429 - Too Many Request

Retrieves an asset type of a given name.

GET /v2/asset_types/{type_name}

Retrieves an asset type of a given name. Custom properties added/updated at the account level asset types can only be fetched if bss_account_id parameter is passed

Request

Path Parameters

type_name

Required *

string

Asset Type name (eg: data_asset)

Query Parameters

catalog_id

string

This parameter allows retrieving a catalog-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

project_id

string

This parameter allows retrieving a project-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

space_id

string

This parameter allows retrieving a space-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

bss_account_id

string

This parameter allows retrieving an account-scoped asset type. May be different than account of user specified in Bearer token. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

locale

string

Language code, such as default, en, etc.

search_scopes

array

This parameter can have one or more values as below:

  • GLOBAL - return asset type in global scope
  • BSS_ACCOUNT - return asset type in account scope
  • CONTAINER - return asset type in catalog/ project/ space scope

If no value is provided, the default value is taken as null, and the asset type with the highest search scope is returned. A combination of more than one search scope is also valid. In this case, an asset type with the highest search scope from the given scopes will be returned.

Response

200 - OK

description

string

Asset type description

fields

array

Fields that are indexed if present in the asset.

external_asset_preview

object

External Asset Preview. Clients can make use of this to render content appropriately for this asset type.

relationships

array

Relationship definitions for this asset type.

properties

object

Provides the IKC UI with information about displaying properties that can be present in the asset

localized_metadata_attributes

object

Example "localized_metadata_attributes": { "name": { "default": "Data Asset", "en": "Data Asset", "fr": "Data Asset" } }

decorates

array

List of pointers to types this type can decorate.

identity

object

Identity definition of the assets of the type

global_search_searchable

array

List of fields made searchable through Global Search functionality

attribute_behavior

object

Define the behavior only if this asset type is used as an attribute.

attribute_only

boolean

If set to true, the type definition will be custom attributes, which can be used to decorate other asset types and cannot create this as a top level asset of this asset type. If set to false, the type definition will be custom asset type, which can be used to create top level assets of this asset type and/or also decorate other asset types.

data_protection

object

Asset type properties and attachments that should be filtered out for users without data access

is_column_custom_attribute

boolean

Set it to true if this is to be used for column custom attributes. Set to false if this is used for asset types or attribute. If true, allow_decorators should be false.

can_have_image

boolean

Set it to true if the type is expected to support uploading of images, else set it to false.

icon_id

string

Name/id of the svg image to be used as the icon for the to be created asset type.

version

number

The version of defined asset type

name

string

Asset type name

scope

string

The scope of defined asset type. Derived-field. Will be one of GLOBAL, ACCOUNT, CATALOG, PROJECT, or SPACE.

decorated_by

array

List of pointers to types this type can be decorated by.

allow_decorators

boolean

shared_in_types

array

enforce_required_properties

boolean

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

Replace an asset type

PUT /v2/asset_types/{type_name}

Replace asset attributes for the given asset type or create a new asset type if the given asset type does not exist.

Request

Request Body

CatalogUpdateType

Asset Type request body

description

string

Asset type description

fields

Required *

array

Fields that are indexed if present in the asset.

external_asset_preview

object

External Asset Preview. Clients can make use of this to render content appropriately for this asset type.

base_client_url

Required *

string

Base client URL

url_parameters_from_asset_attributes

array

URL parameters

url_path_from_asset_attributes

string

URL path

url_parameters_fixed

string

URL parameters fixed

relationships

array

Relationship definitions for this asset type.

properties

object

Provides the IKC UI with information about displaying properties that can be present in the asset

localized_metadata_attributes

object

Example "localized_metadata_attributes": { "name": { "default": "Data Asset", "en": "Data Asset", "fr": "Data Asset" } }

decorates

array

List of pointers to types this type can decorate.

identity

object

Identity definition of the assets of the type

strategy

string

The strategy for detecting duplicate asset of the type

global_strategy

string

global_search_searchable

array

List of fields made searchable through Global Search functionality

attribute_behavior

object

Define the behavior only if this asset type is used as an attribute.

remove_on_copy

boolean

Remove the attribute when cloning, publishing or promoting the asset

attribute_only

boolean

If set to true, the type definition will be custom attributes, which can be used to decorate other asset types and cannot create this as a top level asset of this asset type. If set to false, the type definition will be custom asset type, which can be used to create top level assets of this asset type and/or also decorate other asset types.

data_protection

object

Asset type properties and attachments that should be filtered out for users without data access

all_fields

boolean

Indicates if all fields of the asset type are protected. If 'all_fields' is true, then 'fields' is ignored.

all_attachments

boolean

Indicates if all attachments of the asset type are protected. If 'all_attachments' is true, then 'attachment_types' is ignored.

field_search_paths

array

List of json paths that lead to the fields to be protected. e.g., "scoring.input_data", "columns[].name", "columns[0].code", "*.connection_id", etc. If 'all_fields' is true, then 'field_search_paths' is ignored.

attachment_types

array

List of types of attachments of the asset type to be protected. If 'all_attachments' is true, then 'attachment_types' is ignored.

is_column_custom_attribute

boolean

Set it to true if this is to be used for column custom attributes. Set to false if this is used for asset types or attribute. If true, allow_decorators should be false.

can_have_image

boolean

Set it to true if the type is expected to support uploading of images, else set it to false.

icon_id

string

Name/id of the svg image to be used as the icon for the to be created asset type.

allow_decorators

boolean

shared_in_types

array

enforce_required_properties

boolean

Path Parameters

type_name

Required *

string

Asset Type name (eg: data_asset)

Query Parameters

catalog_id

string

This parameter allows creating or updating a catalog-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

project_id

string

This parameter allows creating or updating a project-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

space_id

string

This parameter allows creating or updating a space-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

bss_account_id

string

This parameter allows creating or updating an account-scoped asset type. May be different than account of user specified in Bearer token. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

Response

200 - OK

description

string

Asset type description

fields

array

Fields that are indexed if present in the asset.

external_asset_preview

object

External Asset Preview. Clients can make use of this to render content appropriately for this asset type.

relationships

array

Relationship definitions for this asset type.

properties

object

Provides the IKC UI with information about displaying properties that can be present in the asset

localized_metadata_attributes

object

Example "localized_metadata_attributes": { "name": { "default": "Data Asset", "en": "Data Asset", "fr": "Data Asset" } }

decorates

array

List of pointers to types this type can decorate.

identity

object

Identity definition of the assets of the type

global_search_searchable

array

List of fields made searchable through Global Search functionality

attribute_behavior

object

Define the behavior only if this asset type is used as an attribute.

attribute_only

boolean

If set to true, the type definition will be custom attributes, which can be used to decorate other asset types and cannot create this as a top level asset of this asset type. If set to false, the type definition will be custom asset type, which can be used to create top level assets of this asset type and/or also decorate other asset types.

data_protection

object

Asset type properties and attachments that should be filtered out for users without data access

is_column_custom_attribute

boolean

Set it to true if this is to be used for column custom attributes. Set to false if this is used for asset types or attribute. If true, allow_decorators should be false.

can_have_image

boolean

Set it to true if the type is expected to support uploading of images, else set it to false.

icon_id

string

Name/id of the svg image to be used as the icon for the to be created asset type.

version

number

The version of defined asset type

name

string

Asset type name

scope

string

The scope of defined asset type. Derived-field. Will be one of GLOBAL, ACCOUNT, CATALOG, PROJECT, or SPACE.

decorated_by

array

List of pointers to types this type can be decorated by.

allow_decorators

boolean

shared_in_types

array

enforce_required_properties

boolean

202 - Accepted

description

string

Asset type description

fields

array

Fields that are indexed if present in the asset.

external_asset_preview

object

External Asset Preview. Clients can make use of this to render content appropriately for this asset type.

relationships

array

Relationship definitions for this asset type.

properties

object

Provides the IKC UI with information about displaying properties that can be present in the asset

localized_metadata_attributes

object

Example "localized_metadata_attributes": { "name": { "default": "Data Asset", "en": "Data Asset", "fr": "Data Asset" } }

decorates

array

List of pointers to types this type can decorate.

identity

object

Identity definition of the assets of the type

global_search_searchable

array

List of fields made searchable through Global Search functionality

attribute_behavior

object

Define the behavior only if this asset type is used as an attribute.

attribute_only

boolean

If set to true, the type definition will be custom attributes, which can be used to decorate other asset types and cannot create this as a top level asset of this asset type. If set to false, the type definition will be custom asset type, which can be used to create top level assets of this asset type and/or also decorate other asset types.

data_protection

object

Asset type properties and attachments that should be filtered out for users without data access

is_column_custom_attribute

boolean

Set it to true if this is to be used for column custom attributes. Set to false if this is used for asset types or attribute. If true, allow_decorators should be false.

can_have_image

boolean

Set it to true if the type is expected to support uploading of images, else set it to false.

icon_id

string

Name/id of the svg image to be used as the icon for the to be created asset type.

version

number

The version of defined asset type

name

string

Asset type name

scope

string

The scope of defined asset type. Derived-field. Will be one of GLOBAL, ACCOUNT, CATALOG, PROJECT, or SPACE.

decorated_by

array

List of pointers to types this type can be decorated by.

allow_decorators

boolean

shared_in_types

array

enforce_required_properties

boolean

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

409 - Conflict

429 - Too Many Request

500 - Internal Server Error

Deletes an asset type

DELETE /v2/asset_types/{type_name}

Deletes an asset type in given account or container. Note that, deletion of an account scope asset type or a container scope asset type triggers background clean up of assets:<br/><ul><li>Assets of this type are deleted.</li><li>And in case of other assets, attributes of this type are removed.</li></ul>

Request

Path Parameters

type_name

Required *

string

Asset Type name (eg: data_asset)

Query Parameters

catalog_id

string

This parameter allows creating or updating a catalog-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

project_id

string

This parameter allows creating or updating a project-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

space_id

string

This parameter allows creating or updating a space-scoped asset type. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

bss_account_id

string

This parameter allows creating or updating an account-scoped asset type. May be different than account of user specified in Bearer token. You must provide either a catalog_id, a project_id, a space_id, OR a bss_account_id but not more than one.

Response

200 - OK

202 - Accepted

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

409 - Conflict

429 - Too Many Request

500 - Internal Server Error

Finds relationship types for an asset type

GET /v2/asset_types/{type_name}/relationships

Finds relationship types that originate from a given asset type. This API supports limiting the results to a specific set of relationship types as well as providing pagination and sorting options. It also supports finding relationship types that use both global and catalog asset types.<br/> This API is deprecated - use `POST /v2/asset_relationship_types/search_ends` instead.

This API returns relationship types from the effective BSS account, which is determined in the following order of precedence:<br/>

  1. The `bss_account_id` query parameter (if provided)<br/>
  2. The BSS account of the container (when `catalog_id`, `project_id`, or `space_id` is specified)<br/>
  3. The BSS account from the impersonation header (for service IDs only)<br/>
  4. The BSS account from the bearer token<br/><br/> The results include global relationship types (accessible to all users) and relationship types scoped to the effective BSS account.<br/><br/> <b>Important</b>: Relationship types scoped to other BSS accounts that you have access to will not be included in the results.

Request

Path Parameters

type_name

Required *

string

type_name. This specifies the asset type whose relationships should be found.

Query Parameters

catalog_id

string

catalog_id. If set, this restricts catalog asset types in the result to the given catalog. If no container parameters are set, any asset container the user has access to are allowed.

project_id

string

project_id. If set, this restricts catalog asset types in the result to the given project. If no container parameters are set, any asset containers the user has access to are allowed.

space_id

string

space_id. If set, this restricts catalog asset types in the result to the given space. If no container parameters are set, any asset containers the user has access to are allowed.

limit

integer

Optional limit to use when finding relationship types

bookmark

string

Optional bookmark to use when finding relationship types.

orderby

array

orderby. This parameter can be repeated to add additional sort fields. <br><br>Default: relationship_display_name_asc

Supported sort fields (these are case insensitive):

  • relationship_name_asc
  • relationship_name_desc
  • relationship_display_name_asc
  • relationship_display_name_desc
  • create_time_asc
  • create_time_desc

relname

array

Limits results to only include the specified relationships. By default, all relationship types for the asset type are included. Repeat the query parameter to specify multiple relationship names.

bss_account_id

string

If set, the operation will run in the context of this BSS account. If not set, the current BSS account is determined automatically as described in the main endpoint description.

Response

200 - Success

options

object

array

array

array

resources

array

total_rows

integer

next

object

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

429 - Too Many Requests

Search With Pagination

The `limit` request body field can be specified to limit the number of assets in the search results.<br/> The default `limit` is 200. The maximum `limit` value is 500, and any greater value is ignored.<br/>

Sample Request Body: ``` { "query" : "asset.name:Asset*", "limit" : 2, "sort" : "asset.name<string>" } ```

Response: ``` { "next": { "bookmark": "g1AAAXXXXXXXX", "query" : "asset.name:Asset*", "limit" : 2, "sort" : "asset.name<string>" }, "results": [ { ..asset 1... }, { ..asset 2... } ], "total_rows": 3 } ```

When more search results are available, then the response will contain a `next` JSON object - `next` contains `bookmark` along with original query which needs to be returned to retrieve the next page of results. To paginate through the entire result set, the request should be re-executed with the `bookmark` from the `next.bookmark` value of the previous response until there is no `next` object in the response (note that this response may contain an empty `results` array).

Sample request body to get the next page of results: ``` { "bookmark": "g1AAAXXXXXXXX", "query" : "asset.name:Asset*", "limit" : 2, "sort" : "asset.name<string>" } ```

Performance Optimization: include_total_rows

The `include_total_rows` field in the request body controls whether the total count of matching assets is included in the response.<br/> When set to `false` on an initial search without a `bookmark` in the request, the separate count query to compute `total_rows` is skipped, which can significantly improve search performance for large result sets.<br/> The performance benefit of setting `include_total_rows` to `false` only applies to initial search queries without a bookmark.<br/>

If the initial search has `include_total_rows` as `false` (`total_rows` not computed) and a subsequent bookmark search has `include_total_rows` as `true`,<br/> the count query will be executed to compute `total_rows`, and that value will then be included in the response.<br/> For best performance, set `include_total_rows` to `false` for all requests if the `total_rows` value is not needed.<br/>

The default `include_total_rows` value is `true` for backward compatibility.<br/>

Sample initial request with `include_total_rows` set to false: ``` { "query" : "asset.name:Asset*", "limit" : 200, "include_total_rows" : false } ```

When `include_total_rows` is `false`, the `total_rows` field will be omitted from the response payload.

Searchable Asset and Attachment Fields

The following asset and attachment fields can be searched in the query - note that type `<string>` or `<number>` only needs to be added for use in the `sort` request field:<br/> `asset.asset_attributes<string>`<br/> `asset.asset_category<string>`<br/> `asset.asset_state<string>`<br/> `asset.asset_type<string>`<br/> `asset.catalog_id<string>`<br/> `asset.created_at<string>`<br/> `asset.delete_timestamp<string>`<br/> `asset.description<string>`<br/> `asset.memberIds<string>`<br/> `asset.editor_id<string>`<br/> `asset.viewer_id<string>`<br/> `asset.member_or_owner_id<string>`<br/> `asset.memberGroupIds<string>`<br/> `asset.editor_group_id<string>`<br/> `asset.viewer_group_id<string>`<br/> `asset.member_or_owner_group_id<string>`<br/> `asset.mode<number>`<br/> `asset.name<string>`<br/> `asset.owner_id<string>`<br/> `asset.owner_group_id<string>`<br/> `asset.project_id<string>`<br/> `asset.rating<number>`<br/> `asset.resource_key<string>`<br/> `asset.identity_key<string>`<br/> `asset.source_asset_id<string>`<br/> `asset.source_catalog_id<string>`<br/> `asset.source_project_id<string>`<br/> `asset.source_space_id<string>`<br/> `asset.source_system<string>`<br/> `asset.source_system_asset_id<string>`<br/> `asset.source_system_created_at<string>`<br/> `asset.source_system_id<string>`<br/> `asset.source_history_asset_id<string>`<br/> `asset.source_history_system_id<string>`<br/> `asset.space_id<string>`<br/> `asset.tags<string>`<br/> `attachment.connection_id<string>`<br/> `attachment.connection_path<string>`<br/> `attachment.name<string>`<br/> `attachment.object_key<string>`<br/> `has_identity_key<string>`<br/> `has_set_id<string>`<br/> `asset.sub_container_id<string>`<br/> `asset.is_linked_with_sub_container<string>`<br/>

Special Pseudo-Field: _exists_

The `exists` pseudo-field checks if a field has a value (non-null for simple fields, non-empty for arrays).<br/>

Syntax: `exists:fieldname`<br/>

Examples:<br/>

  • `exists:asset.project_id` - matches assets where project_id is not null<br/>
  • `exists:asset.tags` - matches assets where tags array is not empty<br/>
  • `NOT exists:asset.source_catalog_id` - matches assets where source_catalog_id is unset<br/>

Note: For array fields, `exists` checks both that the field is non-null AND that the array is non-empty. ">

Search for asset metadata within assets of the specified type

POST /v2/asset_types/{type_name}/search

Use this API to search for assets of the generic asset type (asset) or any specific asset type in a Catalog, Space, or Project.

The request body must contain a `query` field, which specifies a Lucene query to search for assets on indexed fields.<br/> See <b>Searchable Asset and Attachment Fields</b> below for the list of fields that can be searched in the query.<br/>

If `query` contains no selection criteria (`":"`), then the result includes all assets that are instances of the type specified in the `type_name` path parameter, including assets whose primary asset type (i.e. its `metadata.asset_type` value) is that type, and assets that have an attribute of that type.<br/> To filter out assets whose primary type does not match the `type_name` parameter, the query must include an `asset.asset_type:{type_name}` predicate.

The query results can be sorted by specifying a `sort` field in the request with format `field<sort_type>`. The `sort_type` can be either `number` or `string` (e.g. `"sort" : "asset.name<string>"`).

Search With Pagination

The `limit` request body field can be specified to limit the number of assets in the search results.<br/> The default `limit` is 200. The maximum `limit` value is 500, and any greater value is ignored.<br/>

Sample Request Body: ``` { "query" : "asset.name:Asset*", "limit" : 2, "sort" : "asset.name<string>" } ```

Response: ``` { "next": { "bookmark": "g1AAAXXXXXXXX", "query" : "asset.name:Asset*", "limit" : 2, "sort" : "asset.name<string>" }, "results": [ { ..asset 1... }, { ..asset 2... } ], "total_rows": 3 } ```

When more search results are available, then the response will contain a `next` JSON object - `next` contains `bookmark` along with original query which needs to be returned to retrieve the next page of results. To paginate through the entire result set, the request should be re-executed with the `bookmark` from the `next.bookmark` value of the previous response until there is no `next` object in the response (note that this response may contain an empty `results` array).

Sample request body to get the next page of results: ``` { "bookmark": "g1AAAXXXXXXXX", "query" : "asset.name:Asset*", "limit" : 2, "sort" : "asset.name<string>" } ```

Performance Optimization: include_total_rows

The `include_total_rows` field in the request body controls whether the total count of matching assets is included in the response.<br/> When set to `false` on an initial search without a `bookmark` in the request, the separate count query to compute `total_rows` is skipped, which can significantly improve search performance for large result sets.<br/> The performance benefit of setting `include_total_rows` to `false` only applies to initial search queries without a bookmark.<br/>

If the initial search has `include_total_rows` as `false` (`total_rows` not computed) and a subsequent bookmark search has `include_total_rows` as `true`,<br/> the count query will be executed to compute `total_rows`, and that value will then be included in the response.<br/> For best performance, set `include_total_rows` to `false` for all requests if the `total_rows` value is not needed.<br/>

The default `include_total_rows` value is `true` for backward compatibility.<br/>

Sample initial request with `include_total_rows` set to false: ``` { "query" : "asset.name:Asset*", "limit" : 200, "include_total_rows" : false } ```

When `include_total_rows` is `false`, the `total_rows` field will be omitted from the response payload.

Searchable Asset and Attachment Fields

The following asset and attachment fields can be searched in the query - note that type `<string>` or `<number>` only needs to be added for use in the `sort` request field:<br/> `asset.asset_attributes<string>`<br/> `asset.asset_category<string>`<br/> `asset.asset_state<string>`<br/> `asset.asset_type<string>`<br/> `asset.catalog_id<string>`<br/> `asset.created_at<string>`<br/> `asset.delete_timestamp<string>`<br/> `asset.description<string>`<br/> `asset.memberIds<string>`<br/> `asset.editor_id<string>`<br/> `asset.viewer_id<string>`<br/> `asset.member_or_owner_id<string>`<br/> `asset.memberGroupIds<string>`<br/> `asset.editor_group_id<string>`<br/> `asset.viewer_group_id<string>`<br/> `asset.member_or_owner_group_id<string>`<br/> `asset.mode<number>`<br/> `asset.name<string>`<br/> `asset.owner_id<string>`<br/> `asset.owner_group_id<string>`<br/> `asset.project_id<string>`<br/> `asset.rating<number>`<br/> `asset.resource_key<string>`<br/> `asset.identity_key<string>`<br/> `asset.source_asset_id<string>`<br/> `asset.source_catalog_id<string>`<br/> `asset.source_project_id<string>`<br/> `asset.source_space_id<string>`<br/> `asset.source_system<string>`<br/> `asset.source_system_asset_id<string>`<br/> `asset.source_system_created_at<string>`<br/> `asset.source_system_id<string>`<br/> `asset.source_history_asset_id<string>`<br/> `asset.source_history_system_id<string>`<br/> `asset.space_id<string>`<br/> `asset.tags<string>`<br/> `attachment.connection_id<string>`<br/> `attachment.connection_path<string>`<br/> `attachment.name<string>`<br/> `attachment.object_key<string>`<br/> `has_identity_key<string>`<br/> `has_set_id<string>`<br/> `asset.sub_container_id<string>`<br/> `asset.is_linked_with_sub_container<string>`<br/>

Special Pseudo-Field: _exists_

The `exists` pseudo-field checks if a field has a value (non-null for simple fields, non-empty for arrays).<br/>

Syntax: `exists:fieldname`<br/>

Examples:<br/>

  • `exists:asset.project_id` - matches assets where project_id is not null<br/>
  • `exists:asset.tags` - matches assets where tags array is not empty<br/>
  • `NOT exists:asset.source_catalog_id` - matches assets where source_catalog_id is unset<br/>

Note: For array fields, `exists` checks both that the field is non-null AND that the array is non-empty.

Request

Request Body

CatalogCatalogSearch

Search Criteria. The "include" field in the request body is a list of asset sections to include in the search results, values are comma-separated and the supported values are "entity" or "entity,attachments". The "include_total_rows" field (default: true) controls whether total_rows appears in the response. Setting it to false on the initial search without a bookmark skips the count query for better performance. If the initial search has include_total_rows as false and a bookmark search has include_total_rows as true, the count query will be executed. For best performance, set include_total_rows=false for all requests if total_rows is not needed.

query

Required *

string

Lucene query

limit

integer

counts

array

Returns the number of query results for each unique value of each named field.

drilldown

array

Restrict results to documents with a dimension equal to the specified label. Note that, multiple values for a single key in a drilldown means an OR relation between them and there is an AND relation between multiple keys.

bookmark

string

Bookmark of the query result

sort

string

Sort order for the query

include

string

entity

skip

integer

cast_query_fields

object

Map of query fields and the data types to explicitly cast them to during search

include_total_rows

boolean

Whether to include the total row count in the search response. Setting to false on initial queries skips the count query for better performance. If initial search has include_total_rows=false and bookmark search has include_total_rows=true, the count query will be executed. For best performance, set to false for all requests if total_rows is not needed.

Path Parameters

type_name

Required *

string

Asset Type name (eg: data_asset)

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

include

string

A list of comma-separated metadata sections to include in the asset result. Available values: columns, column_info, etc. Use columns to include columns in the response. Also, we can include any asset attribute here.

enable_cursor_pagination

boolean

Enables the cursor pagination mode used when retrieving assets. Default value is false, which uses the traditional offset mode pagination. Cursor pagination can have better performance on large datasets. Use this if you need to iterate through all assets in a catalog, especially when the offset value can become very large. For cursor pagination, ensure the proper index combination exists at the CAMS level for the sort field applied. If you notice performance issues, contact the team to review and optimize the index for better query execution.

Response

200 - OK

next

CatalogCatalogSearch

Catalog Search Model

total_rows

integer

results

array

400 - Bad Request

401 - Unauthorized

403 - Forbidden

Get the status of an account scope or global scope asset type.

GET /v2/asset_types/{type_name}/status

Retrieves an account scope or global scope status, If bss_account_id is not provided, api will try to retreive status of an asset type at global level if present.

Request

Path Parameters

type_name

Required *

string

Asset Type name (eg: account_type)

Query Parameters

bss_account_id

string

This parameter allows retrieving status of an account-scoped asset type. May be different than account of user specified in Bearer token.

Response

200 - OK

name

string

status

string

303 - See Other

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

Create an asset

POST /v2/assets

Use this API to create an asset in catalog or project. Assets contain information about the contents of your data and how to access the data.

Your data can reside in a variety of sources. For example, you can keep your data in your existing on-premises data sources, cloud data services, or streaming data feeds. By adding connection information to these remote sources in the catalog, you can allow other catalog users to access the data with the stored credentials.

All asset types have a common set of properties. Some asset types have additional properties.

When you add an asset to a catalog, you specify these common properties:

  • Asset name and description - The asset name and an optional description. The name can only contain letters, numbers, underscore, dash, space, and period. The name can't be only blank spaces.

  • Asset type - `asset_type` can be `data_asset`, `connection`, etc.

  • System-generated keys - `resource_key` and `identity_key` are system-generated in specific cases during asset creation and appear in the asset's `metadata` structure. `resource_key` is automatically generated only for Data assets and Folder assets, unless explicitly provided by the user. `identity_key` is generated exclusively for Data assets when a DSD is assigned to the connection and is not created for any other asset types.

  • Asset category - `asset_category` can be `USER` or `SYSTEM`. `USER` assets are visible in the IKC UI. `SYSTEM` assets are hidden from the IKC UI, allowing callers to create assets that are for internal use and should not be displayed in the UI to end users. All assets, including `SYSTEM` assets, are accessible via `GET /v2/assets/{asset_id}`, `GET /v2/assets/bulk`, and `POST /v2/asset_types/{asset_type}/search` APIs.

  • Timestamps - `creation_timestamp` and `last_modification_timestamp` in `source_system` of metadata section of request might be present when the asset is of `connection` type.

  • Attachments - The `attachments` section can have entries which correspond to the asset's attributes, and provides additional information about accessing the asset resource represented by that attribute.

  • Privacy - You can choose to restrict access to the asset with the privacy level and asset membership:

    • Public = Default. No restrictions on finding or using the asset.
    • Private = Only asset members can find or use the asset.
  • Members - The catalog collaborators can be added as members of the asset. Members are important if you restrict access to the asset. When you create an asset, you are the owner (and implicitly a member) of it. Members can be set in `metadata/rov/collaborator_ids` or `metadata/rov/member_roles`, but not both. Members set in `metadata/rov/member_roles` are given an explicit set of roles. Members can have up to two roles: `OWNER` and either `EDITOR` or `VIEWER`. Only service IDs can assign the `OWNER` role. The request to add the `OWNER` role is ignored for other callers. Asset members with the `EDITOR` or `VIEWER` role must also be members of the catalog. Members set in `metadata/rov/collaborator_ids` are automatically assigned a role based on their role in the catalog.

  • Tags - Metadata that makes searching for the asset easier. Tags can contain only letters, numbers, underscores, dashes, and the symbols # and @.

Request

Request Body

CatalogAssetCreateRequest

Asset to be created

metadata

CatalogAssetMetadataCreate

Input model for asset metadata when creating an asset

name

Required *

string

Choose Any Name for your Asset

description

string

A longer description describes an asset.

tags

array

asset_type

Required *

string

asset type

origin_country

string

resource_key

string

rov

object

asset_category

Required *

string

source_system

object

Source System Info

child_source_systems

array

source_system_history

array

History of external repository assets that were the source of an imported/synced/rehomed asset.

isManagedAsset

boolean

entity

Required *

object

attachments

array

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

duplicate_action

string

Action to take if the call would result in a duplicate asset. `IGNORE` means the call will ignore the duplicate and create a new asset. `REJECT` means the call will fail and no asset will be created. `UPDATE` means the best matched duplicate will be updated with the incoming changes according to the predefined rules. `REPLACE` means the best matched duplicate will be overwritten with the input values according to the predefined rules. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

201 - Created

metadata

CatalogResponseAssetMetadata

entity

object

href

string

attachments

CatalogAttachment

asset_id

string

input_asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get one or more assets.

GET /v2/assets/bulk

Use this API to retrieve one or more assets located in catalog or project or space. Access to an asset is controlled by a combination of the privacy level and the members of the asset. For a governed catalog, data assets are protected from unauthorized access by the governance policies that are defined in Data Governance. Data assets in ungoverned catalogs are not subject to governance policies.<br/><br/>Response includes, for each asset, asset ID, status, HTTP status and, if no errors, asset details & relationship count or list of errors. For example:

``` { "resources":[ { "asset_id":"cf38d92c-eb55-462e-89bf-cdb9fe67f0b7", "status":"success", "http_status":200, "asset":{...}, "relationship_count":2 }, { "asset_id":"c6650020-3176-4d67-8fbe-5a19ba1c2c7e", "status":"failed", "http_status":404, "errors":[ ... ] }, ... ] } ```

Request

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

asset_ids

Required *

string

Comma separated list of asset IDs; maximum of 20. For assets with revisions, an optional revision number can be specified using colon character in the form of '&lt;asset id&gt;:&lt;revision&gt;,&lt;asset id&gt;,...'. Revision numbers are non-zero positive numbers likes 1, 2, 3 etc.

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

include_relationship_count

boolean

Whether to include per-asset relationship count. Note: The default will be changed to 'false' in a later release.

include_source_columns

boolean

Whether to include relationships where source end is a column of the source asset in the asset's relationship counter.

Response

200 - OK

trace

string

resources

array

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Marks existing assets for delete

DELETE /v2/assets/bulk

Use this API to delete assets. You can delete an asset if you are the owner of the asset or a member of the asset with Admin or Editor permissions on the catalog or project or space.

Purge Options to Delete Assets

  • `purge_on_delete` = `true` and `purge_after_days` is not specified: the asset is purged immediately.
  • `purge_on_delete` = `true` and `purge_after_days` = n: the asset is moved to trash and purged after n days.
  • `purge_on_delete` = `false` and `purge_after_days` is not specified: the asset is moved to trash and never purged.
  • `purge_on_delete` is not specified and `purge_after_days` is not specified: the asset will be deleted/purged based on the catalog setting. Use `GET /v2/asset_containers/configurations` to view the current catalog purge settings.
  • `purge_on_delete` = `false` or is not specified and `purge_after_days` = n: invalid combination - the call will fail with a 400 Bad Request error.

Request

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

purge_on_delete

boolean

If true, asset is also deleted from the trash.

purge_after_days

integer

Number of days after which asset will be purged. Purge On Delete should be true for this to be valid

asset_ids

Required *

string

Comma separated list of asset IDs; maximum of 50.

Response

207 - Check response body for status of each asset being deleted

trace

string

status

array

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Copies one or more assets and, if deep copy option is on, their related assets from a source container to a target container.

POST /v2/assets/bulk_copy

Use this API to publish one or more assets from a project to a catalog or promote from a project to a space. This API can also be used to clone one or more assets from a catalog to a project. This API can also be used to directly promote one or more assets from a catalog of type wx.gov to a space.This API can also be used to publish one or more assets from space to catalogs of type wx.gov.The default maximum number of assets in a request is 50. <br/><br/>Copy sends the same Rabbit MQ messages as publish, promote or clone. Messages are sent for all assets that are copied.<br/><br/>This API supports using a refresh token in place of an access token. This can be helpful if the copy is expected to be a long running operation. The copy operation uses the access token to authenticate with other services, so it is important that it not expire while the operation is in progress. When a refresh token is specified, it is used to generate an initial access token as well as additional access tokens if the initial access token expires

Request

Request Body

CatalogBulkAssetsCopyRequest

Request body should include target container ID and list of assets with metadata overrides, and may include asset permissions override. Target container ID should be either that of a catalog (publish) or of a space (promote) if source container is a project, or that of a project (clone) if source is a catalog. Target container ID should be that of a catalog if source container is a space.

Example:

``` { "catalog_id": "string", "rov_mode": "integer", "member_roles": { "Member's IAM ID": { "user_iam_id": "Member's IAM ID", "roles": ["EDITOR"] }, "Access Group ID": { "access_group_id": "Access Group ID", "roles": ["VIEWER"] }, "Another IAM ID": { ... } }, "copy_configurations": [ { "asset_id": "string", "revision_id": "string", "metadata_overrides": { "name": "string", "description": "string", "tags": ["string", "string"] } }, ... ] } ```

Fields 'rov_mode' and 'member_roles' are optional.

  • If specified, they apply to all newly copied (target) assets.
  • If not supplied, newly copied asset gets mode and 'member_roles' from its corresponding source asset.
  • Valid values for 'rov_mode' are 0 (everyone has access), 8 (members have full access, others limited), and 16 (members only).
  • If caller doesn't have permissions to set any of the roles, then 'member_roles' is completely ignored.
  • If supplied, 'member_roles' should include at least one OWNER role.

The 'metadata_overrides' field is optional and may contain attributes to overwrite the values in the original asset. Currently, only name, description, and tags can be overridden. If specified, 'metadata_overrides' cannot be empty and only applies to the respective root asset.

Any cross-referenced asset is copied only once.

catalog_id

string

project_id

string

space_id

string

rov_mode

integer

ROV (Rules of Visibility) mode for copied assets. Mode 0: Everybody can view and search the asset. Mode 8: Members can view all fields, non-members can only view metadata (API only, not exposed in UI). Mode 16: Only members have access to the asset.

member_roles

object

To assign owners and other collaborators on newly copied target assets.

copy_configurations

Required *

array

Path Parameters

Query Parameters

catalog_id

string

Source catalog ID. Only one of either catalog ID or project ID or space ID must be provided.

project_id

string

Source project ID. Only one of either catalog ID or project ID or space ID must be provided.

space_id

string

Source space ID. Only one of either catalog ID or project ID or space ID must be provided.

deepcopy

boolean

Determines if the copy operation should be cascaded to referenced assets. Referenced assets are determined using bidirectional external relationships and as well as in-line relationships. In-line relationship types are defined as part of asset type definitions. Cascading happens only if `CASCADE` is set for the following relationship type property:

  • `on_clone`, in case of copying from catalog to project,
  • `on_publish`, in case of copying from project to catalog and
  • `on_promote`, in case of copying from project to space.

auto_copy_connections_in_remote_attachments

boolean

Whether to automatically copy connections in remote attachments

duplicate_action

string

Action to take if the call would result in a duplicate asset. `IGNORE` means the call will ignore the duplicate and create a new asset. `REJECT` means the call will fail and no asset will be created. `UPDATE` means the best matched duplicate will be updated with the incoming changes according to the predefined rules. `REPLACE` means the best matched duplicate will be overwritten with the input values according to the predefined rules. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

copy_task_id

string

copy_status_href

string

state

string

trace

string

responses

array

202 - Accepted - indicates that the copy request is being completed in the background, due to the number of assets needed to copy is over 200, one or more attachment files being copied asynchronously because of large size, or due to both the reasons.

copy_task_id

string

copy_status_href

string

state

string

trace

string

responses

array

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

503 - Network read timeout

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Create one or more assets.

POST /v2/assets/bulk_create

Use this API to create one or more assets in a catalog or a project or a space. The default maximum number of assets in a request is 20. Example of request (POST) data:<br/><br/> ``` { "assets":[ { "name":"<Name of the first asset>", "description":"<Description of the first asset>", "tags":["<Tag 1>", "<Tag 2>", ...], "asset_type":"<Asset type such as "connection", "data_asset", etc.>", "entity":{ ... } "attachments":{ ... } }, { "name":"<Name of the second asset>", ... }, ... ] } ``` Response includes, for each asset in the request and in the same order, details of newly created asset or details of updated asset if a duplicate/match is found or errors if any:

``` { "trace":"<Trace ID, if failed to create or update one or more assets>", "responses":[ { "http_status":201, "asset":{...} }, { "http_status":400, "errors":[ ... ] }, ... ] } ```

Request

Request Body

JSON containing list of assets to be created.

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

duplicate_action

string

Action to take if the call would result in a duplicate asset. `IGNORE` means the call will ignore the duplicate and create a new asset. `REJECT` means the call will fail and no asset will be created. `UPDATE` means the best matched duplicate will be updated with the incoming changes according to the predefined rules. `REPLACE` means the best matched duplicate will be overwritten with the input values according to the predefined rules. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK

trace

string

responses

array

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

RFC 6902 specification.

Example of request (POST) data:

``` { "resources": [ { "asset_id": "cf38d92c-eb55-462e-89bf-cdb9fe67f0b7", "operations": [ { "op": "add", "path": "/metadata/description", "value": "Four score and seven years ago..." }, { "op": "add", "path": "/entity/data_asset/mime_type", "value": "text/csv" }, { "op": "replace", "path": "/attachments/1/name", "value": "New name for the 2nd attachment." }, { "op": "remove", "path": "/attachments/0" } { "op":"add", "path":"/attachments/-", "value":{...} }, { "op":"replace", "path":"/attachments/1/name", "value":"New name for the 2nd attachment." }, { "op":"add", "path":"/attachments/2", "value":{...} }, ] }, { "asset_id":"c6650020-3176-4d67-8fbe-5a19ba1c2c7e", "operations": [ ... ] }, ... ] } ``` Response includes, for each asset, asset ID, status and updated version or errors, if any: ``` { "resources": [ { "asset_id": "cf38d92c-eb55-462e-89bf-cdb9fe67f0b7", "status": 200, "http_status": 200, "asset": { ... } }, { "asset_id": "c6650020-3176-4d67-8fbe-5a19ba1c2c7e", "status": 404, "http_status": 404, "errors": [ ... ] }, ... ] } ```

Currently the API allows to patch up to twenty (20) assets. There is no limit on number of patch instructions. Any number of (allowed) metadata properties and/or attributes can be:

  • modified,
  • new ones added,
  • existing ones be replaced or
  • deleted

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info.

> Note: Any `~` characters need to be escaped as `~0` in the path field

Any `/` characters need to be escaped as `~1` in the path field

For example, in `{"foo/: {"~bar: "value"}}`, the path for `~bar` is `/foo~1/~0bar` ">

Patch one or more assets.

POST /v2/assets/bulk_patch

Use this API to patch one or more assets in catalog or project or space. The default maximum number of assets in a request is 20.

The API supports the following operations:

  • Patching of allowed metadata properties. See `PATCH /v2/assets/{asset_id}` API for list of allowed metadata properties that can be patched."
  • Add, update and delete of attributes such as `asset_terms`, `data_profile`, etc."
  • Create, update and delete of attachments:
    • The (asset) `attachments` field is an array and the index of the first attachment is 0, the index of the second one is 1 and so on. Adding or deleting an attachment shifts indexes of any attachments that follow it.
    • A newly created attachment is added at the specified location. If the `path` is `/attachments/-` then it will be added at the end.
    • Newly added attachment cannot be updated or deleted (in the same API call). And, newly updated attachment cannot be deleted.
    • Some of the new attachment fields like `attachment_id`, `url1`, `url2`, etc. are only included in the response the first time when the attachments are created.
    • Only the following attachment fields can be updated: `name`, `description`, `mime`, `size`, `partitions` and `transfer_complete`.
    • Maximum number of attachments allowed in an asset is 100.
  • The API does not support patching of whole metadata, entity and attachments i.e. the `path` cannot be any of the following values: `/metadata`, `/entity` or `/attachments`.

Access to an asset is controlled by a combination of the privacy level and the members of the asset. For a governed catalog, data assets are protected from unauthorized access by the governance policies that are defined in Data Governance. Data assets in ungoverned catalogs are not subject to governance policies.

> Note: Patch 'operations' should conform to RFC 6902 specification.

Example of request (POST) data:

``` { "resources": [ { "asset_id": "cf38d92c-eb55-462e-89bf-cdb9fe67f0b7", "operations": [ { "op": "add", "path": "/metadata/description", "value": "Four score and seven years ago..." }, { "op": "add", "path": "/entity/data_asset/mime_type", "value": "text/csv" }, { "op": "replace", "path": "/attachments/1/name", "value": "New name for the 2nd attachment." }, { "op": "remove", "path": "/attachments/0" } { "op":"add", "path":"/attachments/-", "value":{...} }, { "op":"replace", "path":"/attachments/1/name", "value":"New name for the 2nd attachment." }, { "op":"add", "path":"/attachments/2", "value":{...} }, ] }, { "asset_id":"c6650020-3176-4d67-8fbe-5a19ba1c2c7e", "operations": [ ... ] }, ... ] } ``` Response includes, for each asset, asset ID, status and updated version or errors, if any: ``` { "resources": [ { "asset_id": "cf38d92c-eb55-462e-89bf-cdb9fe67f0b7", "status": 200, "http_status": 200, "asset": { ... } }, { "asset_id": "c6650020-3176-4d67-8fbe-5a19ba1c2c7e", "status": 404, "http_status": 404, "errors": [ ... ] }, ... ] } ```

Currently the API allows to patch up to twenty (20) assets. There is no limit on number of patch instructions. Any number of (allowed) metadata properties and/or attributes can be:

  • modified,
  • new ones added,
  • existing ones be replaced or
  • deleted

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info.

> Note: Any `~` characters need to be escaped as `~0` in the path field

Any `/` characters need to be escaped as `~1` in the path field

For example, in `{"foo/: {"~bar: "value"}}`, the path for `~bar` is `/foo~1/~0bar`

Request

Request Body

JSON containing per-asset updates/patches.

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

duplicate_action

string

Action to take if the changes to an asset would make it a duplicate to other assets. `IGNORE` means the call will continue and update the asset anyway; as a result, the asset will become a duplicate to other assets. `REJECT` means the call will fail and the asset will not be changed. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK - indicates successful completion of overall request. The 'http_status' of sub-response provides status of corresponding sub-request i.e. asset.

trace

string

resources

array

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Gets the status of asset copy operation

GET /v2/assets/copy_status/{copy_task_id}

For large deep copies, portions of the copy operation are performed in the background. This API provides a way to get the status of the background processing. It also provides additional details about deep copy operations that have already been completed.

When the task status is 'COMPLETED', the response includes the following:

  • source_asset_id: The ID of the source asset for which the copy operation was performed.
  • source_asset_rev: The revision identifier of the source asset.
  • copied_assets: List of assets successfully copied for each source asset.
  • target_asset_id: The ID of the new copied asset.
  • update: Indicates whether an existing target asset (i.e., a duplicate match) has been updated (update=true), or a new one was created.

Full response details are provided in the Schema section of the response.

Similar to `/v2/assets/deepcopy/{deep_copy_task_id}` API, but the response can support completion details of multiple source assets.

Note: The status of completed copy operations is only available for 24 hours.

Request

Path Parameters

copy_task_id

Required *

string

Query Parameters

Response

200 - OK

source

CatalogAssetContainer

target

CatalogAssetContainer

started_at

string

start_time

integer

finished_at

string

finish_time

integer

expires_at

string

expiration_time

integer

state

string

error

CatalogErrorContainerModel

The details of the error.

status_code

integer

transaction_id

string

cams_transaction_id

string

instance_id

string

stack_trace

string

responses

array

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

404 - Not Found

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Create a PUT signed url for an object or a file

POST /v2/assets/create_object_url

Use this API to create a PUT signed url to an object or a file in the catalog/project/space bucket/storage. <br/>You must specify both name and asset_type (to create a new object or a file) OR the asset_id (to overwrite an existing object or a file) in the request.<br/>You must specify one of these -- catalog_id, project_id or the space_id as a query parameter.<br/>Details:

  • No new meta-data (asset_id) is created or updated for this request.
  • Only the PUT signed url is returned for the object or the file.
  • If the asset_id is given in the request, a PUT signed url is returned for that asset's attachment's object/file, if the object/file is stored in the catalog/project/space bucket/storage. If the asset_type is given, the object/file from the first attachment with that asset_type is the one for which the PUT signed url will be returned. If the asset_type is not given, then, the asset's asset_type, then the "data_asset", will be used to find the attachment with the object/file.
  • If the asset_id is not given in the request, and asset_type and name are specified, a PUT signed url is returned for an object_key where the object_key value is created using the combination of asset_type, sanitized name, and a random string.
  • The name in the request can only contain letters, numbers, underscore, dash, space, and period -- same requirements as the attachment name.
  • The value of expires_in is in seconds. The default value of expires_in is 604800 (7 days). Given a value of 0, the default value will be applied. The max value is the same as the default value; if a value larger than the max value is input, the max value will be used.

Request

Request Body

CatalogObjectURLReqResp

object_url request

asset_id

string

asset_type

string

name

string

description

string

mime

string

expires_in

integer

path

string

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

201 - Created

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Gets the status of a deep copy operation

GET /v2/assets/deepcopy/{deep_copy_task_id}

For large deep copies, portions of the copy operation are performed in the background. This API provides a way to get the status of the background processing. It also provides additional details about deep copy operations that have already been completed.

Note: The status of completed deep copy operations is only available for 24 hours.

Request

Path Parameters

deep_copy_task_id

Required *

string

Query Parameters

Response

200 - OK

source

CatalogAssetContainer

target

CatalogAssetContainer

started_at

string

start_time

integer

finished_at

string

finish_time

integer

expires_at

string

expiration_time

integer

state

string

error

CatalogErrorContainerModel

The details of the error.

status_code

integer

transaction_id

string

cams_transaction_id

string

instance_id

string

stack_trace

string

source_asset_id

string

source_asset_rev

string

copied_assets

array

copy_errors

array

result

array

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

404 - Not Found

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Bulk search duplicate assets

POST /v2/assets/duplicates/bulk_search

Use this API to search for duplicate assets of an array of assets in the target catalog, project, or space. The maximum number of assets in a request is 20.

Each asset in the request can either be an existing asset, or an asset object that is the same as the user would provide for creating a new asset. E.g., ``` { "resources":[ { "asset": { "metadata": {}, "entity": {} } }, { "project_id": "6f79ff7d-9227-4cba-81e7-726db8984d16", "asset_id": "faad7530-4a30-41da-ac27-d3a0f07b2070" }, { "asset": { "metadata": {}, "entity": {} } } ] } ``` The response contains an array of duplicate search results. The index of the results in the array is the same as the index of the corresponding asset in the request array. Each result can be a success or failure depending on the corresponding request asset. E.g., ``` { "trace":"32s0wywr3wdqpsn86b4cfzb4i", "resources":[ { "http_status": 200, "total_count": 1, "best_updatable_duplicate_asset_id": "b81c84f5-a551-43bb-9a6e-c8e7820995f9", "results": [ { "asset_id": "b81c84f5-a551-43bb-9a6e-c8e7820995f9", "highest_match_score": {}, "asset": { "metadata": {}, "entity": {} } } ] }, { "http_status": 404, "errors": [ { "code": "does_not_exist", "message": "ATTSV3024E: There is no asset with an ID of 'faad7530-4a30-41da-ac27-d3a0f07b2070' in a project with an ID of '6f79ff7d-9227-4cba-81e7-726db8984d16' ." } ] }, { "http_status": 200, "total_count": 0, "results": [ ] } ] } ``` The response of each requested item contains a `http_status` field that can be used to determine if the specific request was successful or not. If a request failed, the corresponding response will contain a field `errors` indicating the cause of the failure. For detail explaination of other fields in the request and response of each item, please refer to the `POST /v2/assets/duplicates/search` endpoint.

Request

Request Body

CatalogBulkSearchDuplicateRequest

The assets to search for duplicate assets.

resources

Required *

array

the assets to search duplicates for

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

limit

integer

The maximum number of items to return for each requested asset

Response

200 - OK

trace

string

trace id of the transaction. only avaialbe if any of the request item failed.

resources

array

the responses

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Search duplicate assets

POST /v2/assets/duplicates/search

Use this API to search for duplicate assets of an asset in the target catalog, project, or space.

Users can provide an existing asset like below to search for duplicate assets of the given asset in the target asset container. The authenticated user needs to have the read access to the specified asset. ``` { "project_id": "6f79ff7d-9227-4cba-81e7-726db8984d16", "asset_id": "faad7530-4a30-41da-ac27-d3a0f07b2070" } ```

Or provide an asset object to search for duplicate assets of the given asset payload in the target asset container. The asset payload is the same as the user would provide for creating a new asset. ``` { "asset": { "metadata": {}, "entity": {} } } ```

The query parameter `limit` can be used to limit the number of duplicates in the response. If not supplied, the maximum allowed value `100` is used. Note that the API does not support paignation as users usually only care about top `x` number of duplicates instead of all duplicates. If they do, they can always use a large limit to retrieve all duplicates. There number of the duplicates of any given asset should be far less than the maximum allowed value of the parameter `limit`. The system would become unusable long before the number of duplicates reaches that value.

The duplicate assets in the response are ordered by the matching score from high to low. The higher the matching score, the more certain that the asset is a duplicate of the incoming asset.

The `total_count` indicates the total number of duplicates of the given asset. This is useful in case the total number of duplicates is greater than the specified limit.

The `best_updatable_duplicate_asset_id` indicates the highest ranking duplicate asset that can be updated by the authenticated user. This duplicate asset would be updated/replaced if the incoming asset were to be added in the target asset container and the effective `duplicate_action` were `UPDATE/REPLACE`. If duplicates are found but this field doesn't have a value, it indicates that the authenticated user doesn't have permission to update any of the duplicates. In such a case, if the incoming asset were to be added in the target asset container and the effective `duplicate_action` were `UPDATE/REPLACE`, the transaction would fail.

Request

Request Body

CatalogSearchDuplicateRequest

Supply either an existing asset or an asset payload to search for duplicate assets.

catalog_id

string

Id of the catalog the existing asset resides in. You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

Id of the project the existing asset resides in. You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

Id of the space the existing asset resides in. You must provide either a catalog id, a project id, or a space id, but not more than one

asset_id

string

Id of the existing asset

revision_id

string

Revision of the existing asset

asset

object

The asset payload, which is the same as the user would provide for creating a new asset.

metadata

object

AssetMetadata Model

entity

Required *

object

attachments

array

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

limit

integer

The maximum number of items to return

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK

results

array

List of matching duplicate assets

best_updatable_duplicate_asset_id

string

The id of the best updatable duplicate asset that would be chosen for updating/overwriting in a real persistence transaction. It is possible that there are matching duplicate assets but this field is null, which indicates the caller does not have permission to update/replace any of the matching duplicate assets

total_count

integer

Total number of duplicates

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Finds assets and artifacts related to an asset:
  • One of the {`catalog_id`, `project_id`, `space_id`} must be specified.
  • asset_id must be specified.
  • artifact_id and artifact_type cannot be specified.
  • artifact_id and artifact_type must be specified.
  • asset_id and container id cannot be specified.
  • One of the {`catalog_id`, `project_id`, `space_id`} must be specified.
  • asset_id must be specified. asset_id should be in the format of `<asset_id>#COLUMN#<column_identifier>`
  • artifact_id and artifact_type cannot be specified.

<br/><br/>Note: When self references are present (i.e. when the source and target asset in the relationship are the same), more rows than specified by the limit may be returned. When this happens, the total rows reported is accurate and the bookmark points to next page of results.

This API returns related assets from the effective BSS account, which is determined in the following order of precedence:<br/>

  1. The `bss_account_id` query parameter (if provided)<br/>
  2. The BSS account of the asset's container (when `asset_id` and container are specified)<br/>
  3. The BSS account from the impersonation header (for service IDs only)<br/>
  4. The BSS account from the bearer token<br/><br/> <b>Catalog Scope</b>: Only catalogs in the effective BSS account are searched.<br/> <b>Relationship Types</b>: Only global relationship types (accessible to all users) and relationship types scoped to the effective BSS account are included.<br/><br/> <b>Important</b>: Related assets in catalogs from other BSS accounts that you have access to will not be included in the results.<br/><br/> <b>Note</b>: For accredited services, no catalog filtering is applied. ">

Finds related assets

POST /v2/assets/get_relationships

Finds assets related to a given asset or a given governance artifact. This API supports limiting the results to a specific set of relationships as well as providing pagination and sorting options.

  • One of the {`catalog_id`, `project_id`, `space_id`} must be specified.
  • asset_id must be specified.
  • artifact_id and artifact_type cannot be specified.
  • artifact_id and artifact_type must be specified.
  • asset_id and container id cannot be specified.
  • One of the {`catalog_id`, `project_id`, `space_id`} must be specified.
  • asset_id must be specified. asset_id should be in the format of `<asset_id>#COLUMN#<column_identifier>`
  • artifact_id and artifact_type cannot be specified.

<br/><br/>Note: When self references are present (i.e. when the source and target asset in the relationship are the same), more rows than specified by the limit may be returned. When this happens, the total rows reported is accurate and the bookmark points to next page of results.

This API returns related assets from the effective BSS account, which is determined in the following order of precedence:<br/>

  1. The `bss_account_id` query parameter (if provided)<br/>
  2. The BSS account of the asset's container (when `asset_id` and container are specified)<br/>
  3. The BSS account from the impersonation header (for service IDs only)<br/>
  4. The BSS account from the bearer token<br/><br/> <b>Catalog Scope</b>: Only catalogs in the effective BSS account are searched.<br/> <b>Relationship Types</b>: Only global relationship types (accessible to all users) and relationship types scoped to the effective BSS account are included.<br/><br/> <b>Important</b>: Related assets in catalogs from other BSS accounts that you have access to will not be included in the results.<br/><br/> <b>Note</b>: For accredited services, no catalog filtering is applied.

Request

Path Parameters

Query Parameters

catalog_id

string

Catalog ID

project_id

string

Project ID

space_id

string

Space ID

asset_id

string

Asset ID

artifact_id

string

Artifact ID

artifact_type

string

Artifact Type

array

Related Asset Types

array

Related Artifact Types

bookmark

string

Pagination bookmark from the previous response. Use it in subsequent requests to fetch the next set of results if size exceeds the default limit.

limit

integer

Number of results to return. Defaults to 25 if not specified. Maximum allowed value is 200.

orderby

array

orderby. This parameter can be repeated to add additional sort fields. <br><br>Default: update_time_asc Supported sort fields (these are case insensitive):

  • create_time_asc
  • create_time_desc
  • update_time_asc
  • update_time_desc
  • creator_id_asc
  • creator_id_desc
  • updater_id_asc
  • updater_id_desc

relationship_names

array

Limits results to only include the specified relationships. By default, all relationships are included. Repeat the query parameter to specify multiple relationship names.

lookup_asset_names

boolean

Whether to lookup the asset names. This adds overhead, so only set this to true if the asset names are required. Defaults to false.

lookup_artifact_names

boolean

Whether to lookup the artifact names. This adds overhead, so only set this to true if the artifact names are required. Defaults to false.

lookup_container_names

boolean

Whether to lookup the container names. This adds overhead, so only set this to true if the asset names are required. Defaults to false.

include_columns

boolean

(DEPRECATED) Whether to return relationships where target end is a column for the given source asset, artifact, or column. This parameter is deprecated. Use 'include_target_columns' instead.

include_target_columns

boolean

Whether to return relationships where target end is a column for the given source asset, artifact, or column.

include_source_columns

boolean

Whether to return relationships where source end is either the given asset or a column of the given asset. When this parameter set to 'true', 'include_target_columns' must also be set to 'true'. By this, all relationships of asset-asset, asset-column, asset-artifact, column-asset, column-column, column-artifact will be returned.Use this parameter when 'asset_id' refers to an asset which has columns.

bss_account_id

string

If set, the operation will run in the context of this BSS account. If not set, the effective BSS account is determined automatically as described in the main endpoint description.

Response

200 - Success

5.2&nbsp;Upgrade Notes

Before release&nbsp;5.2, when there were no additional pages, a successful 200&nbsp;response would include an empty object&nbsp;`{}` in the `next`&nbsp;field. Since release&nbsp;5.2, the 200&nbsp;response object does not include the `next`&nbsp;field when there are no additional pages.

options

object

resources

array

total_rows

integer

next

object

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Get an ibm_data_source asset

GET /v2/assets/ibm_data_source

Use this API to get an ibm_data_source asset with provided endpoint or physical_collection. There is only one ibm_data_source asset that meets the specified parameters. Currently we only support the following three query methods:

  1. host + port, the host is either ipV4 or ipV6 or a DNS name
  2. host + port + physical_collection
  3. physical_collection

Request

Path Parameters

Query Parameters

catalog_id

string

Catalog GUID or UID

bss_account_id

string

the bss_account_id

host

string

port

string

physical_collection

string

It can be database, project_id or bucket

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

include_entity

boolean

Include entity section in the response

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Publish an asset from a project which is only referenced in that project

POST /v2/assets/publish

Use this API to publish an asset whose only metadata are only in project as reference to a target catalog. Assets contain information about the contents of your data and how to access the data. You store asset metadata in a catalog and add collaborators from your organization to analyze data. Your data can reside in a variety of sources. For example, you can keep your data in your existing on-premises data sources, cloud data services, or streaming data feeds. By adding connection information to these remote sources in the catalog, you can allow other catalog users to access the data with the stored credentials. Alternatively, you can copy a snapshot of the remote data into the catalog's encrypted cloud storage.<br/>All asset types have a common set of properties. Some asset types have additional properties.<br/>When you add an asset to a catalog, you specify these common properties:

  • The asset name and an optional description. The name can only contain letters, numbers, underscore, dash, space, and period. The name can't be only blank spaces.
  • Privacy. You can choose to restrict access to the asset with the privacy level and asset membership.
    • Public = Default. No restrictions on finding or using the asset.
    • Private = Only asset members can find or use the asset.
  • Members. The catalog collaborators can be added as members of the asset. Members are important if you restrict access to the asset. When you create an asset, you are the owner (and a member) of it.
  • Tags. Metadata that makes searching for the asset easier. Tags can contain only letters, numbers, underscores, dashes, and the symbols # and @.

Request

Request Body

CatalogPublishAsset

Asset metadata

metadata

CatalogPublishAssetMetadata

Publish Asset Metadata

name

Required *

string

Choose Any Name for your Asset

asset_id

string

Unique identifier for the asset within this request for transient mapping purposes. Not persisted with the asset. Use source_system_history to retain for future reference

description

string

A longer description describes an asset.

tags

array

asset_type

Required *

string

asset type

origin_country

string

resource_key

string

identity_key

string

rov

object

asset_category

Required *

string

source_system

object

Source System Info

child_source_systems

array

source_system_history

array

History of external repository assets that were the source of an imported/synced/rehomed asset.

isManagedAsset

boolean

published_from

object

Asset metadata where its published from

published_to

object

Asset metadata where it published to

entity

object

Path Parameters

Query Parameters

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

201 - Created

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Specifying conditions that at least one end of the relationship must match

There are three different conditions of this type that can be specified:

* relationship name  - limits results to relationships with the specified name(s)

* Required object criteria:
* required artifact — must specify artifact_type and artifact_id
* required asset - must specify asset_id and one of: catalog_id, project_id, space_id
* required asset container - must specify one of: catalog_id, project_id, space_id
* Only one type of required object criteria can be used

* Opposite end criteria:
* related_asset_types - specifies that opposite end must have one of the specified asset types
* related_artifact_types - specifies that opposite end must have one of the specified artifact types
* related_asset_types and related_artifact_types can be used together to specify that the opposite end must have either the specified asset or artifact types

Specifying global conditions that the overall relationship much match:

There are 2 global conditions that can be specified: * modified_after - Restricts results to relationships created/updated after a specific date and time * modified_before - Restricts results to relationships created/updated before a specific date and time * modified_after and modified_before can be used together to filter for relationships created/updated within a specific time window.

This API returns relationships from the effective BSS account, which is determined in the following order of precedence:<br/>

  1. The `bss_account_id` query parameter (if provided)<br/>
  2. The BSS account of the asset's container (when `asset_id` and container are specified)<br/>
  3. The BSS account from the impersonation header (for service IDs only)<br/>
  4. The BSS account from the bearer token<br/><br/> <b>Catalog Scope</b>: Only catalogs in the effective BSS account are searched.<br/> <b>Relationship Types</b>: Only global relationship types (accessible to all users) and relationship types scoped to the effective BSS account are included.<br/><br/> <b>Important</b>: Relationships in catalogs from other BSS accounts that you have access to will not be included in the results.<br/><br/> <b>Note</b>: For accredited services, no catalog filtering is applied. ">

Searches for relationships

POST /v2/assets/search_relationships

Finds relationships that match the specified criteria. There are two general kinds of criteria that can be used: criteria that at least one relationship end must match and criteria that the overall relationship must match.

Specifying conditions that at least one end of the relationship must match

There are three different conditions of this type that can be specified:

* relationship name  - limits results to relationships with the specified name(s)

* Required object criteria:
* required artifact — must specify artifact_type and artifact_id
* required asset - must specify asset_id and one of: catalog_id, project_id, space_id
* required asset container - must specify one of: catalog_id, project_id, space_id
* Only one type of required object criteria can be used

* Opposite end criteria:
* related_asset_types - specifies that opposite end must have one of the specified asset types
* related_artifact_types - specifies that opposite end must have one of the specified artifact types
* related_asset_types and related_artifact_types can be used together to specify that the opposite end must have either the specified asset or artifact types

Specifying global conditions that the overall relationship much match:

There are 2 global conditions that can be specified: * modified_after - Restricts results to relationships created/updated after a specific date and time * modified_before - Restricts results to relationships created/updated before a specific date and time * modified_after and modified_before can be used together to filter for relationships created/updated within a specific time window.

This API returns relationships from the effective BSS account, which is determined in the following order of precedence:<br/>

  1. The `bss_account_id` query parameter (if provided)<br/>
  2. The BSS account of the asset's container (when `asset_id` and container are specified)<br/>
  3. The BSS account from the impersonation header (for service IDs only)<br/>
  4. The BSS account from the bearer token<br/><br/> <b>Catalog Scope</b>: Only catalogs in the effective BSS account are searched.<br/> <b>Relationship Types</b>: Only global relationship types (accessible to all users) and relationship types scoped to the effective BSS account are included.<br/><br/> <b>Important</b>: Relationships in catalogs from other BSS accounts that you have access to will not be included in the results.<br/><br/> <b>Note</b>: For accredited services, no catalog filtering is applied.

Request

Path Parameters

Query Parameters

catalog_id

string

Catalog ID. Specifies that a specific catalog_id must be in the returned relationships. If filtering by asset container, either catalog_id, project_id, or space_id must be specified.

project_id

string

Project ID. Specifies that a specific project_id must be in the returned relationships. If filtering by asset container, either catalog_id, project_id, or space_id must be specified.

space_id

string

Space ID. Specifies that a specific space_id must be in the returned relationships. If filtering by asset container, either catalog_id, project_id, or space_id must be specified.

asset_id

string

Asset ID. Specifies that a specific asset must be in the returned relationships If specified, either catalog_id, project_id, or space_id must also be specified.

artifact_id

string

Artifact ID. Specifies that a specific artifact must be in the returned relationships. If specified, artifact_type must also be specified

artifact_type

string

Artifact Type. Required if artifact_id is specified

array

Related Asset Types. Filters the result to include relationships based on their target asset type. The parameter can be repeated to specify multiple asset types. If both related_artifact_types and related_asset types are omitted, all target types are included in the result.

array

Related Artifact Types. Filters the result to include relationships based on their target artifact type. The parameter can be repeated to specify multiple artifact types. If both related_artifact_types and related_asset types are omitted, all target types are included in the result.

bookmark

string

Pagination bookmark from the previous response. Use it in subsequent requests to fetch the next set of results if size exceeds the default limit.

limit

integer

Number of results to return. Defaults to 25 if not specified. Maximum allowed value is 200.

orderby

array

orderby. This parameter can be repeated to add additional sort fields. <br><br>Default: update_time_asc Supported sort fields (these are case insensitive):

  • create_time_asc
  • create_time_desc
  • update_time_asc
  • update_time_desc
  • creator_id_asc
  • creator_id_desc
  • updater_id_asc
  • updater_id_desc

relationship_names

array

Limits results to only include the specified relationships. By default, all relationships are included. Repeat the query parameter to specify multiple relationship names.

lookup_asset_names

boolean

Whether to lookup the asset names. This adds overhead, so only set this to true if the asset names are required. Defaults to false.

lookup_artifact_names

boolean

Whether to lookup the artifact names. This adds overhead, so only set this to true if the artifact names are required. Defaults to false.

lookup_container_names

boolean

Whether to lookup the container names. This adds overhead, so only set this to true if the asset names are required. Defaults to false.

modified_after

string

Includes relationships modified after this date/time - specified in ISO-8601 format (examples: 2022-09-01T14:32:17Z, 2022-09-01T14:32:17.802Z). This can be used in conjunction with modified_before to specify a required modification time window.

modified_before

string

Includes relationships modified before this date/time - specified in ISO-8601 format (examples: 2022-09-01T14:32:17Z, 2022-09-01T14:32:17.802Z). This can be used in conjunction with modified_after to specify a required modification time window.

include_columns

boolean

(DEPRECATED) Whether to return relationships where target end is a column for the given source asset, artifact, or column. This parameter is deprecated. Use 'include_target_columns' instead.

include_target_columns

boolean

Whether to return relationships where target end is a column for the given source asset, artifact, or column.

include_source_columns

boolean

Whether to return relationships where source end is either the given asset or a column of the given asset. When this parameter set to 'true', 'include_target_columns' must also be set to 'true'. By this, all relationships of asset-asset, asset-column, asset-artifact, column-asset, column-column, column-artifact will be returned.Use this parameter when 'asset_id' refers to an asset which has columns.

bss_account_id

string

If set, the operation will run in the context of this BSS account. If not set, the effective BSS account is determined automatically as described in the main endpoint description.

Response

200 - Success

options

CatalogFindRelatedObjectsOptions

resources

array

total_rows

integer

next

object

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

For Asset
  • The `asset_id` and one of the {`catalog_id`, `project_id`, `space_id`} must be set

For Column

  • The `asset_id` and one of the {`catalog_id`, `project_id`, `space_id`} must be set
  • The `asset_id` of a column must be in the format of `<asset_id>#COLUMN#<column_identifier>`

For Artifact

  • The `artifact_id` and `artifact_type` must be set. Use the global id of the artifact for `artifact_id` ">

Create asset relationships

POST /v2/assets/set_relationships

Use this API to create up to 20 asset relationships.

  • The relationship name must correspond to a relationship type defined on the source type.
  • The source must be an asset, column or governance artifact of the type specified in the relationship type definition.<br>
  • The target must be an asset, column or governance artifact of the type specified in the relationship type definition.
  • If the specified relationship does not exist between a source and target, a new relationship is created.
  • If either end of the relationship is defined as multiplicity-one, any existing value of a multiplicity-one end is replaced.

For Asset

  • The `asset_id` and one of the {`catalog_id`, `project_id`, `space_id`} must be set

For Column

  • The `asset_id` and one of the {`catalog_id`, `project_id`, `space_id`} must be set
  • The `asset_id` of a column must be in the format of `<asset_id>#COLUMN#<column_identifier>`

For Artifact

  • The `artifact_id` and `artifact_type` must be set. Use the global id of the artifact for `artifact_id`

Request

Request Body

CatalogBulkAssetRelationshipsRequest

relationships

relationships

Required *

array

Response

207 - Check response body for results of processing each target artifact

results

array

Result(s) of relationship creation operation(s)

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

For Column
  • The `asset_id` and one of the {`catalog_id`, `project_id`, `space_id`} must be set
  • The `asset_id` of a column must be in the format of `<asset_id>#COLUMN#<column_identifier>`

For Artifact

  • The `artifact_id` and `artifact_type` must be set">

Deletes asset relationships

POST /v2/assets/unset_relationships

Use this API to delete up to 20 asset relationships.

  • The relationship name must correspond to a relationship type defined on the source type.
  • The source must be an asset or governance artifact of the type specified in the relationship type definition.
  • The target must be an asset or governance artifact of the type specified in the relationship type definition.
  • If the specified relationship does not exist between the source and the target, it will be ignored.

For Asset

  • The `asset_id` and one of the {`catalog_id`, `project_id`, `space_id`} must be set

For Column

  • The `asset_id` and one of the {`catalog_id`, `project_id`, `space_id`} must be set
  • The `asset_id` of a column must be in the format of `<asset_id>#COLUMN#<column_identifier>`

For Artifact

  • The `artifact_id` and `artifact_type` must be set

Request

Request Body

relationships

Response

207 - Check response body for status of each asset relationships being deleted.

results

array

Result(s) of relationship deletion operation(s)

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Get an asset

GET /v2/assets/{asset_id}

Use this API to retrieve an asset located in catalog or project. Access to an asset is controlled by a combination of the privacy level and the members of the asset. For a governed catalog, data assets are protected from unauthorized access by the governance policies that are defined in Data Catalog. Data assets in ungoverned catalogs are not subject to governance policies.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

include

string

A list of comma-separated metadata sections to include in the asset result. Available values: columns, column_info, etc. Use columns to include columns in the response. Also, we can include any asset attribute here.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

410 - Gone

500 - Internal Server Error

To delete an asset in a project or space, all of the following must hold:
  • Caller must have the EDITOR or ADMIN role in the project/space

To delete a public asset in a catalog, any of the following must hold:

  • Caller must have the ADMIN role in the catalog
  • Caller must have the EDITOR role in the catalog and caller must have either the OWNER or EDITOR role on the asset

To delete a private asset in a catalog, all of the following must hold:

  • Caller must have either the ADMIN or EDITOR role in the CATALOG
  • Caller must have either the OWNER, EDITOR, or VIEWER role in the asset

Purge Options to Delete an Asset

  • `purge_on_delete` = `true` and `purge_after_days` is not specified: the asset is purged immediately.
  • `purge_on_delete` = `true` and `purge_after_days` = n: the asset is moved to trash and purged after n days.
  • `purge_on_delete` = `false` and `purge_after_days` is not specified: the asset is moved to trash and never purged.
  • `purge_on_delete` is not specified and `purge_after_days` is not specified: the asset will be deleted/purged based on the catalog setting. Use `GET /v2/asset_containers/configurations` to view the current catalog purge settings.
  • `purge_on_delete` = `false` or is not specified and `purge_after_days` = n: invalid combination - the call will fail with a 400 Bad Request error.

">

Marks an existing asset for delete

DELETE /v2/assets/{asset_id}

Use this API to delete an existing asset.

Permissions Required to Delete an Asset

To delete an asset in a project or space, all of the following must hold:

  • Caller must have the EDITOR or ADMIN role in the project/space

To delete a public asset in a catalog, any of the following must hold:

  • Caller must have the ADMIN role in the catalog
  • Caller must have the EDITOR role in the catalog and caller must have either the OWNER or EDITOR role on the asset

To delete a private asset in a catalog, all of the following must hold:

  • Caller must have either the ADMIN or EDITOR role in the CATALOG
  • Caller must have either the OWNER, EDITOR, or VIEWER role in the asset

Purge Options to Delete an Asset

  • `purge_on_delete` = `true` and `purge_after_days` is not specified: the asset is purged immediately.
  • `purge_on_delete` = `true` and `purge_after_days` = n: the asset is moved to trash and purged after n days.
  • `purge_on_delete` = `false` and `purge_after_days` is not specified: the asset is moved to trash and never purged.
  • `purge_on_delete` is not specified and `purge_after_days` is not specified: the asset will be deleted/purged based on the catalog setting. Use `GET /v2/asset_containers/configurations` to view the current catalog purge settings.
  • `purge_on_delete` = `false` or is not specified and `purge_after_days` = n: invalid combination - the call will fail with a 400 Bad Request error.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

purge_on_delete

boolean

If true, asset is also deleted from the trash.

purge_after_days

integer

Number of days after which asset will be purged. Purge On Delete should be true for this to be valid

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Fields that can be patched:
  • `/metadata/name`
  • `/metadata/description`
  • `/metadata/tags`
  • `/metadata/origin_country`
  • `/metadata/resource_key`
  • `/metadata/source_system/last_modification_timestamp`, Expected Format: `yyyy-MM-ddTHH:mm:ssX`
  • `/metadata/child_source_systems/{idx}/last_modification_timestamp`, Expected Format: `yyyy-MM-ddTHH:mm:ssX`
  • `/metadata/source_system_history` - array, use `add` operation with path `/metadata/source_system_history/-` to append a new element
  • `/metadata/rov/mode` - allowed values are 0 (everyone has access), 8 (members have full access, others limited), or 16 (members only)
  • `/metadata/rov/collaborator_ids`
  • `/metadata/rov/member_roles`
  • `/metadata/rov/member_roles/{iam id}/roles` - array, allowed values are OWNER/EDITOR/VIEWER, see below for details

Updating Asset Collaborators and Owners

Either the metadata/rov/collaborator_ids field or the metadata/rov/member_roles field can be updated, but not both.

The collaborator_ids field shown in the asset is derived from the information in member_roles, so updating one of these fields will automatically update the other. The collaborator_ids field shows the members in the member_roles field that have either the asset editor role or the asset viewer role. This field is present for backward compatibility with earlier versions of the catalog service.

Collaborators added to the metadata/rov/collaborator_ids field will be assigned a default asset role based on their role in the catalog. Catalog editors will be assigned the asset editor role, and Catalog viewers will be assigned the asset viewer role.

Users added to the metadata/rov/member_roles present must have either the OWNER role, the OWNER role and EDITOR role, or the OWNER role and VIEWER role. Other combinations of roles are not allowed. Asset users with the VIEWER or EDITOR role must be members of the catalog. In addition, asset users with the OWNER role must also be members if the catalog with either the EDITOR or ADMIN role unless certain service ids are used. For projects and spaces, new owners must have a role in the project/space.

Permissions Required to Modify Asset

To update non-governed fields an asset in a project or space, all of the following must hold:

  • Caller must have the EDITOR or ADMIN role in the project/space

To update non-governed fields in a private asset in a catalog, all of the following must hold:

  • Caller must have either the ADMIN or EDITOR role in the CATALOG
  • Caller must have either the OWNER, EDITOR, or VIEWER role in the asset

To update non-governed fields in a public asset in a catalog, any of the following must hold:

  • Caller must have the ADMIN role in the CATALOG
  • Caller must have the EDITOR role in the CATALOG and caller must have either the OWNER or EDITOR role in the asset

Permissions required to modify governed metadata fields

The "tags" field is the only governed field. For governed catalogs a policy check is made to determine whether updates to it are allowed and if an asset transformation is needed. The outcome of the policy check can either be "ALLOW", "DENY", or "TRANSFORM"

  • If the outcome is "ALLOW", the operation is allowed if the caller has either the "ADMIN" or "EDITOR" catalog role
  • If the outcome is "TRANSFORM", the permission checks described above for non-governed fields are applied
  • If the outcome is "DENY", the permission checks described above for non-governed fields are applied

Allowed Operations

The combination of asset roles and catalog roles determines what asset operations are allowed by users.

These abilities apply to public assets:

  • All members of the catalog can find the asset and see its properties.
  • All members of the catalog who have the Editor, Auditor, or Admin roles can use the asset.

These abilities apply to private assets:

  • All asset collaborators can find the asset and see its properties. Asset collaborators with the Editor, Auditor, or Admin role can use the asset.">

Update an asset

PATCH /v2/assets/{asset_id}

Overview

Use this API to update certain metadata fields in assets.

Fields that can be patched:

  • `/metadata/name`
  • `/metadata/description`
  • `/metadata/tags`
  • `/metadata/origin_country`
  • `/metadata/resource_key`
  • `/metadata/source_system/last_modification_timestamp`, Expected Format: `yyyy-MM-ddTHH:mm:ssX`
  • `/metadata/child_source_systems/{idx}/last_modification_timestamp`, Expected Format: `yyyy-MM-ddTHH:mm:ssX`
  • `/metadata/source_system_history` - array, use `add` operation with path `/metadata/source_system_history/-` to append a new element
  • `/metadata/rov/mode` - allowed values are 0 (everyone has access), 8 (members have full access, others limited), or 16 (members only)
  • `/metadata/rov/collaborator_ids`
  • `/metadata/rov/member_roles`
  • `/metadata/rov/member_roles/{iam id}/roles` - array, allowed values are OWNER/EDITOR/VIEWER, see below for details

Updating Asset Collaborators and Owners

Either the metadata/rov/collaborator_ids field or the metadata/rov/member_roles field can be updated, but not both.

The collaborator_ids field shown in the asset is derived from the information in member_roles, so updating one of these fields will automatically update the other. The collaborator_ids field shows the members in the member_roles field that have either the asset editor role or the asset viewer role. This field is present for backward compatibility with earlier versions of the catalog service.

Collaborators added to the metadata/rov/collaborator_ids field will be assigned a default asset role based on their role in the catalog. Catalog editors will be assigned the asset editor role, and Catalog viewers will be assigned the asset viewer role.

Users added to the metadata/rov/member_roles present must have either the OWNER role, the OWNER role and EDITOR role, or the OWNER role and VIEWER role. Other combinations of roles are not allowed. Asset users with the VIEWER or EDITOR role must be members of the catalog. In addition, asset users with the OWNER role must also be members if the catalog with either the EDITOR or ADMIN role unless certain service ids are used. For projects and spaces, new owners must have a role in the project/space.

Permissions Required to Modify Asset

To update non-governed fields an asset in a project or space, all of the following must hold:

  • Caller must have the EDITOR or ADMIN role in the project/space

To update non-governed fields in a private asset in a catalog, all of the following must hold:

  • Caller must have either the ADMIN or EDITOR role in the CATALOG
  • Caller must have either the OWNER, EDITOR, or VIEWER role in the asset

To update non-governed fields in a public asset in a catalog, any of the following must hold:

  • Caller must have the ADMIN role in the CATALOG
  • Caller must have the EDITOR role in the CATALOG and caller must have either the OWNER or EDITOR role in the asset

Permissions required to modify governed metadata fields

The "tags" field is the only governed field. For governed catalogs a policy check is made to determine whether updates to it are allowed and if an asset transformation is needed. The outcome of the policy check can either be "ALLOW", "DENY", or "TRANSFORM"

  • If the outcome is "ALLOW", the operation is allowed if the caller has either the "ADMIN" or "EDITOR" catalog role
  • If the outcome is "TRANSFORM", the permission checks described above for non-governed fields are applied
  • If the outcome is "DENY", the permission checks described above for non-governed fields are applied

Allowed Operations

The combination of asset roles and catalog roles determines what asset operations are allowed by users.

These abilities apply to public assets:

  • All members of the catalog can find the asset and see its properties.
  • All members of the catalog who have the Editor, Auditor, or Admin roles can use the asset.

These abilities apply to private assets:

  • All asset collaborators can find the asset and see its properties. Asset collaborators with the Editor, Auditor, or Admin role can use the asset.

Request

Request Body

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info. <br/> Note: <br/> Any ‘~’ characters need to be escaped as ~0 in the path field. <br/> Any ‘/’ characters need to be escaped as ~1 in the path field. <br/> For example, in {"foo/" : {"~bar" : "value"}}, the path for "~bar" is "/foo~1/~0bar".

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

duplicate_action

string

Action to take if the changes to an asset would make it a duplicate to other assets. `IGNORE` means the call will continue and update the asset anyway; as a result, the asset will become a duplicate to other assets. `REJECT` means the call will fail and the asset will not be changed. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Create an attachment

POST /v2/assets/{asset_id}/attachments

Creates an attachment.

Request

Request Body

CatalogAttachment

Attachment meta-data.
The "asset_type" is required.
The "mime" is a reliable way to indicate the nature and format of the attachment. It should be used instead of other implementation-specific means, e.g., file extension.
If not supplied, or if the value given is less than 1, data_partitions defaults to 1 (for non-remote and non-referenced attachments).
For remote attachments, both connection_id and connection_path are required.
For referenced attachments, both object_key and object_key_is_read_only are required. Maximum attachments allowed under an asset is 100 .

asset_type

Required *

string

name

string

description

string

mime

string

data_partitions

integer

test_doc

integer

private_url

boolean

connection_id

string

connection_path

string

object_key

string

object_key_is_read_only

boolean

user_data

object

is_partitioned

boolean

partitions

CatalogAttachmentPartitions

temporal

boolean

Indicate if the partitions are time based.

hierarchical

boolean

Indicate if the partitions are stored hierarchical or flat.

timestamp

string

The timestamp the partition information is collected, in format yyyy-MM-dd'T'HH:mm:ss.SSSX or yyyy-MM-dd'T'HH:mm:ssX

latest_partitions

array

The latest partitions.

Path Parameters

asset_id

Required *

string

Asset GUID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

duplicate_action

string

Action to take if the changes to an asset would make it a duplicate to other assets. `IGNORE` means the call will continue and update the asset anyway; as a result, the asset will become a duplicate to other assets. `REJECT` means the call will fail and the asset will not be changed. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

Response

201 - Created

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Get an attachment

GET /v2/assets/{asset_id}/attachments/{attachment_id}

Retrieve an attachment.

Request

Path Parameters

asset_id

Required *

string

Asset GUID

attachment_id

Required *

string

Attachment GUID

Query Parameters

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

private_url

boolean

private_url

response-content-disposition

string

response-content-disposition

response-content-type

string

response-content-type

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Delete an attachment

DELETE /v2/assets/{asset_id}/attachments/{attachment_id}

Delete an attachment.

Request

Path Parameters

asset_id

Required *

string

Asset GUID

attachment_id

Required *

string

Attachment GUID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

duplicate_action

string

Action to take if the changes to an asset would make it a duplicate to other assets. `IGNORE` means the call will continue and update the asset anyway; as a result, the asset will become a duplicate to other assets. `REJECT` means the call will fail and the asset will not be changed. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Update attachment metadata

PATCH /v2/assets/{asset_id}/attachments/{attachment_id}

Update attachment metadata. Only the following fields are allowed to update:

  • name
  • description
  • mime
  • size
  • partitions
  • transfer_complete

Request

Request Body

CatalogJsonPatch

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info. <br/>[ { "op": "add", "path": "/name", "value": "my_attachment"},
{ "op": "replace", "path": "/mime", "value": "text/csv" },
{ "op": "remove", "path":"/description"} ] <br/> Note: <br/>

  1. Any ‘~’ characters need to be escaped as ~0 in the path field. <br/> Any ‘/’ characters need to be escaped as ~1 in the path field. <br/> For example, in {"foo/" : {"~bar" : "value"}}, the path for "~bar" is "/foo~1/~0bar".
  2. The transfer_complete field can only be set to true if its current value is false and the type of attachment is managed.

Path Parameters

asset_id

Required *

string

Asset GUID

attachment_id

Required *

string

Attachment GUID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

asset_type

string

name

string

description

string

mime

string

data_partitions

integer

test_doc

integer

private_url

boolean

connection_id

string

connection_path

string

object_key

string

object_key_is_read_only

boolean

user_data

object

is_partitioned

boolean

partitions

CatalogAttachmentPartitions

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

409 - Conflict

422 - Unprocessable Entity

500 - Internal Server Error

Mark an attachment as transfer complete

POST /v2/assets/{asset_id}/attachments/{attachment_id}/complete

Marks an attachment as transfer complete.

Request

Path Parameters

asset_id

Required *

string

Asset GUID

attachment_id

Required *

string

Attachment GUID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Auto update attachment's datasource_type from connection asset

PATCH /v2/assets/{asset_id}/attachments/{attachment_id}/datasource_type

Auto update attachment's datasource_type from connection asset

Request

Path Parameters

asset_id

Required *

string

Asset GUID

attachment_id

Required *

string

Attachment GUID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

asset_type

string

name

string

description

string

mime

string

data_partitions

integer

test_doc

integer

private_url

boolean

connection_id

string

connection_path

string

object_key

string

object_key_is_read_only

boolean

user_data

object

is_partitioned

boolean

partitions

CatalogAttachmentPartitions

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

409 - Conflict

422 - Unprocessable Entity

500 - Internal Server Error

Get resources info for an attachment

GET /v2/assets/{asset_id}/attachments/{attachment_id}/resources

Get resources info for an attachment.

Request

Path Parameters

asset_id

Required *

string

Asset GUID

attachment_id

Required *

string

Attachment GUID

Query Parameters

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Increase resources for an attachment

PUT /v2/assets/{asset_id}/attachments/{attachment_id}/resources

Increase resources for an attachment.

Request

Request Body

CatalogAttachmentIncRes

attachment resource to increase, e.g. {"data_partitions":5, "private_url":false}

data_partitions

Required *

integer

private_url

boolean

Path Parameters

asset_id

Required *

string

Asset GUID

attachment_id

Required *

string

Attachment GUID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

List all attributes

GET /v2/assets/{asset_id}/attributes

Use this API to retrieve all attributes of an asset.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

column_info attribute

The built-in `column_info` type defines metadata (e.g. description, tags) for columns contained in a data asset which represents a relational database table or columnar data file (e.g. csv file).

Create a `column_info` asset attribute to add column descriptions and/or tags if that attribute does not already exist on the asset. <br/>Once the `column_info` attribute has been created, entries can be added, updated, or removed using the `PATCH /v2/assets/{asset_id}/attributes/column_info` endpoint.

The `column_info` attribute is a map structure where the key is a column name corresponding to an existing entry in the asset's `entity.data_asset.columns` array. <br/>For example, here is the request payload to create a `column_info` attribute that assigns a description and tags to `ACCOUNT_HOLDER_ID` and `NAME` columns: ``` { "name": "column_info", "entity": { "ACCOUNT_HOLDER_ID": { "column_description": "Globally unique identifier of the account holder.", "column_tags": [ "identifier", "unique_key" ] }, "NAME": { "column_description": "Full legal name of the account holder.", "column_tags": [ "legal_name" ] } } } ``` ">

Create an attribute

POST /v2/assets/{asset_id}/attributes

Use this API to create an asset attribute. An attribute is identically named with, and has fields that are partially defined by, an asset type. The `name` specified in the request payload must match an existing built-in or user-defined asset type.

column_info attribute

The built-in `column_info` type defines metadata (e.g. description, tags) for columns contained in a data asset which represents a relational database table or columnar data file (e.g. csv file).

Create a `column_info` asset attribute to add column descriptions and/or tags if that attribute does not already exist on the asset. <br/>Once the `column_info` attribute has been created, entries can be added, updated, or removed using the `PATCH /v2/assets/{asset_id}/attributes/column_info` endpoint.

The `column_info` attribute is a map structure where the key is a column name corresponding to an existing entry in the asset's `entity.data_asset.columns` array. <br/>For example, here is the request payload to create a `column_info` attribute that assigns a description and tags to `ACCOUNT_HOLDER_ID` and `NAME` columns: ``` { "name": "column_info", "entity": { "ACCOUNT_HOLDER_ID": { "column_description": "Globally unique identifier of the account holder.", "column_tags": [ "identifier", "unique_key" ] }, "NAME": { "column_description": "Full legal name of the account holder.", "column_tags": [ "legal_name" ] } } } ```

Request

Request Body

CatalogAttribute

Attribute metadata. The "entity" is required.

name

Required *

string

entity

object

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

duplicate_action

string

Action to take if the changes to an asset would make it a duplicate to other assets. `IGNORE` means the call will continue and update the asset anyway; as a result, the asset will become a duplicate to other assets. `REJECT` means the call will fail and the asset will not be changed. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

Response

201 - Created

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Get an attribute

GET /v2/assets/{asset_id}/attributes/{attribute_key}

Use this API to retrieve an attribute of an asset.

Request

Path Parameters

asset_id

Required *

string

asset_id

attribute_key

Required *

string

attribute_key

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Delete an attribute

DELETE /v2/assets/{asset_id}/attributes/{attribute_key}

Use this API to delete an attribute of an asset.

Request

Path Parameters

asset_id

Required *

string

asset_id

attribute_key

Required *

string

attribute_key

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

duplicate_action

string

Action to take if the changes to an asset would make it a duplicate to other assets. `IGNORE` means the call will continue and update the asset anyway; as a result, the asset will become a duplicate to other assets. `REJECT` means the call will fail and the asset will not be changed. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Updating the column_info attribute

Use this API for updating an existing `column_info` attribute to set or replace the `column_description` or `column_tags` for any column.

> Note: Use `POST /v2/assets/{asset_id}/attributes` to create the `column_info` attribute if it does not exist on the asset. > Use `GET /v2/assets/{asset_id}/attributes/column_info` to check the existence of the attribute.

Payload Examples

To add a `column_info` entry that specifies a description and tags for the `INVOICE_ID` column: `[{"op":"add","path":"/INVOICE_ID","value":{"column_description":"Unique identifier of the invoice", "column_tags":["tag1", "tag2"]}}]`

To add or update a description on the existing `column_info` entry for the `ADDRESS` column: `[{"op":"add","path":"/ADDRESS/column_description","value":"customer street address"}]` To unset/remove the `ADDRESS` column's description: `[{"op": "remove", "path":"/ADDRESS/column_description"}]` To remove the entire `column_info` entry for the `ADDRESS` column: `[{"op": "remove", "path":"/ADDRESS"}]`

To update value of `properties` of data_asset: ``` { "entity": { "data_asset": { "mime_type": "text/csv", "dataset": true, "properties": [ { "name": "schema_name", "value": "GOSALES1021" }, { "name": "table_name", "value": "COUNTRY" } ] } } } ``` Request body: ``` [ { "op": "replace", "path": "/properties/1/value", "value": "COUNTRY2" } ] ```

To update value of `data_source_deployment`: ``` { "entity": { "ibm_data_source": { "data_source_type_id": "8c1a4480-1c29-4b33-9086-9cb799d7b157", "data_source_deployment": "on_cloud", "data_source_flags": [], "data_source_state": "ACTIVE", "data_source_encoding": "UTF-8", "data_source_protection_method": "guardium" } } } ``` Request body: ``` [ { "op": "replace", "path": "/data_source_deployment", "value": "cpd" } ] ```

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info. > Note: > Any ‘~’ characters need to be escaped as ~0 in the path field. > Any ‘/’ characters need to be escaped as ~1 in the path field. > For example, in {"foo/" : {"~bar" : "value"}}, the path for "~bar" is "/foo~1/~0bar". ">

Update attributes

PATCH /v2/assets/{asset_id}/attributes/{attribute_key}

Use this API to update/modify an asset attribute.

Updating the column_info attribute

Use this API for updating an existing `column_info` attribute to set or replace the `column_description` or `column_tags` for any column.

> Note: Use `POST /v2/assets/{asset_id}/attributes` to create the `column_info` attribute if it does not exist on the asset. > Use `GET /v2/assets/{asset_id}/attributes/column_info` to check the existence of the attribute.

Payload Examples

To add a `column_info` entry that specifies a description and tags for the `INVOICE_ID` column: `[{"op":"add","path":"/INVOICE_ID","value":{"column_description":"Unique identifier of the invoice", "column_tags":["tag1", "tag2"]}}]`

To add or update a description on the existing `column_info` entry for the `ADDRESS` column: `[{"op":"add","path":"/ADDRESS/column_description","value":"customer street address"}]` To unset/remove the `ADDRESS` column's description: `[{"op": "remove", "path":"/ADDRESS/column_description"}]` To remove the entire `column_info` entry for the `ADDRESS` column: `[{"op": "remove", "path":"/ADDRESS"}]`

To update value of `properties` of data_asset: ``` { "entity": { "data_asset": { "mime_type": "text/csv", "dataset": true, "properties": [ { "name": "schema_name", "value": "GOSALES1021" }, { "name": "table_name", "value": "COUNTRY" } ] } } } ``` Request body: ``` [ { "op": "replace", "path": "/properties/1/value", "value": "COUNTRY2" } ] ```

To update value of `data_source_deployment`: ``` { "entity": { "ibm_data_source": { "data_source_type_id": "8c1a4480-1c29-4b33-9086-9cb799d7b157", "data_source_deployment": "on_cloud", "data_source_flags": [], "data_source_state": "ACTIVE", "data_source_encoding": "UTF-8", "data_source_protection_method": "guardium" } } } ``` Request body: ``` [ { "op": "replace", "path": "/data_source_deployment", "value": "cpd" } ] ```

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info. > Note: > Any ‘~’ characters need to be escaped as ~0 in the path field. > Any ‘/’ characters need to be escaped as ~1 in the path field. > For example, in {"foo/" : {"~bar" : "value"}}, the path for "~bar" is "/foo~1/~0bar".

Request

Request Body

CatalogJsonPatch

JSON array of patch operations as defined in RFC 6902.<br/>

Path Parameters

asset_id

Required *

string

asset_id

attribute_key

Required *

string

attribute_key

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

duplicate_action

string

Action to take if the changes to an asset would make it a duplicate to other assets. `IGNORE` means the call will continue and update the asset anyway; as a result, the asset will become a duplicate to other assets. `REJECT` means the call will fail and the asset will not be changed. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

Response

200 - Created

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Clone an asset

POST /v2/assets/{asset_id}/clone

Use this API to clone catalog asset to project. This will create new copy of asset metadata, including asset attachments.

Request

Request Body

CatalogAssetCopyTo

Request body should include project ID, and may include asset permissions override.

``` { "project_id": "string", "member_roles": { "Member's IAM ID": { "user_iam_id": "Member's IAM ID", "roles": ["EDITOR"] }, "Access Group ID": { "access_group_id": "Access Group ID", "roles": ["VIEWER"] }, "Another IAM ID": { ... } } } ```
Field 'member_roles' is optional.

  • If specified, 'member_roles' apply to newly cloned asset.
  • If not supplied, newly cloned asset gets 'member_roles' from its source asset.
  • If caller doesn't have permissions to set any of the roles then 'member_roles' is completely ignored.
  • If supplied, 'member_roles' should include at least one OWNER role.
  • If caller has only EDITOR role on the source asset and if 'member_roles' does not include all the owners of the source asset then it will be ignored.

'project_id' is the target project id.

projectId

Required *

string

member_roles

object

Optional owners and other collaborators to assign to newly copied target assets

mode

integer

Set the privacy level mode to be Public (0), Private (8), or Hidden (16)

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

Required *

string

catalog_id must be provided

duplicate_action

string

Action to take if the call would result in a duplicate asset. `IGNORE` means the call will ignore the duplicate and create a new asset. `REJECT` means the call will fail and no asset will be created. `UPDATE` means the best matched duplicate will be updated with the incoming changes according to the predefined rules. `REPLACE` means the best matched duplicate will be overwritten with the input values according to the predefined rules. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

201 - Created

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

503 - Network read timeout

Permissions Required to Modify Asset Members

To add or remove asset owners for a private asset in a catalog, any of the following must hold:

  • Caller must have OWNER role on the asset
  • Caller must have the ADMIN role on catalog and caller must have either the OWNER, EDITOR, or VIEWER role in the asset

To add or remove asset owners for a public asset in a catalog, any of the following must hold:

  • Caller must have OWNER role on the asset
  • Caller must have the ADMIN role in the catalog

To add or remove asset collaborators, other than asset owner, for a private asset in a catalog, any of the following must hold:

  • Caller must have OWNER role on the asset
  • Caller must have EDITOR role on the asset
  • Caller must have the ADMIN role on catalog and caller must have either the OWNER, EDITOR, or VIEWER role in the asset

To add or remove asset collaborators, other than asset owner, for a public asset in a catalog, any of the following must hold:

  • Caller must have OWNER role on the asset
  • Caller must have EDITOR role on the asset
  • Caller must have the ADMIN role on catalog

Allowed Operations

The combination of asset roles and catalog roles determines what asset operations are allowed by users.

These abilities apply to public assets:

  • All members of the catalog can find the asset and see its properties.
  • All members of the catalog who have the Editor, Auditor, or Admin catalog roles can use the asset.

These abilities apply to private assets:

  • All asset collaborators can find the asset and see its properties. Asset collaborators with the Editor, Auditor, or Admin catalog role can use the asset. ">

Add/Update asset collaborators

PATCH /v2/assets/{asset_id}/collaborators

Overview

This API adds and removes users and access groups as collaborators and owners on an asset. A collaborator or owner is identified by user ID or access group ID.

Either the `metadata/rov/member_roles` field or the `metadata/rov/collaborator_ids` field can be updated, but not both within the same request payload. <br>Access groups can only be added as collaborators via the `member_roles` field - attempting to add access groups to `collaborator_ids` will fail.

The `collaborator_ids` field is present for backward compatibility with earlier versions of the catalog service, and is derived from the information in `member_roles`. Updating one of these fields will automatically update the other. The `collaborator_ids` field shows the members in the `member_roles` field that have either the asset editor role or the asset viewer role.

Collaborators added to the `metadata/rov/collaborator_ids` field will be assigned a default asset role based on their role in the catalog. Catalog editors will be assigned the asset editor role, and Catalog viewers will be assigned the asset viewer role.

Users added to the `metadata/rov/member_roles` present must have either the OWNER role, the OWNER role and EDITOR role, or the OWNER role and VIEWER role. Other combinations of roles are not allowed. Asset users with the VIEWER or EDITOR role must be members of the catalog. In addition, asset users with the OWNER role must also be members of the catalog with either the EDITOR or ADMIN role unless certain service ids are used. For projects and spaces, new owners must have a role in the project/space.

Permissions Required to Modify Asset Members

To add or remove asset owners for a private asset in a catalog, any of the following must hold:

  • Caller must have OWNER role on the asset
  • Caller must have the ADMIN role on catalog and caller must have either the OWNER, EDITOR, or VIEWER role in the asset

To add or remove asset owners for a public asset in a catalog, any of the following must hold:

  • Caller must have OWNER role on the asset
  • Caller must have the ADMIN role in the catalog

To add or remove asset collaborators, other than asset owner, for a private asset in a catalog, any of the following must hold:

  • Caller must have OWNER role on the asset
  • Caller must have EDITOR role on the asset
  • Caller must have the ADMIN role on catalog and caller must have either the OWNER, EDITOR, or VIEWER role in the asset

To add or remove asset collaborators, other than asset owner, for a public asset in a catalog, any of the following must hold:

  • Caller must have OWNER role on the asset
  • Caller must have EDITOR role on the asset
  • Caller must have the ADMIN role on catalog

Allowed Operations

The combination of asset roles and catalog roles determines what asset operations are allowed by users.

These abilities apply to public assets:

  • All members of the catalog can find the asset and see its properties.
  • All members of the catalog who have the Editor, Auditor, or Admin catalog roles can use the asset.

These abilities apply to private assets:

  • All asset collaborators can find the asset and see its properties. Asset collaborators with the Editor, Auditor, or Admin catalog role can use the asset.

Request

Request Body

CatalogJsonPatch

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info. ``` [{ "op": "add", "path": "/metadata/rov/member_roles/IBMid-XXXXXXXXXX", "value": { "user_iam_id": "IBMid-XXXXXXXXXX", "roles": [ "OWNER" ] } }, { "op": "add", "path": "/metadata/rov/member_roles/AccessGroupId-af9d79a0-67aa-4465-8b3d-ffffffffffff", "value": { "access_group_id": "AccessGroupId-af9d79a0-67aa-4465-8b3d-ffffffffffff", "roles": [ "EDITOR" ] } }, { "op": "replace", "path": "/metadata/rov/member_roles/IBMid-ZZZZZZZZZZ", "value": { "user_iam_id": "IBMid-ZZZZZZZZZZ", "roles": [ "VIEWER" ] } }, { "op": "remove", "path": "/metadata/rov/member_roles/AccessGroupId-30311c06-70b1-4e3c-bc8e-abcdefabcdef" }] ```

Note: Any ‘~’ characters need to be escaped as ~0 in the path field. Any ‘/’ characters need to be escaped as ~1 in the path field. For example, in `{"foo/" : {"~bar" : "value"}}`, the path for "~bar" is `/foo~1/~0bar`.

Path Parameters

asset_id

Required *

string

Asset GUID

Query Parameters

catalog_id

string

You must provide a catalog id.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

409 - Conflict

422 - Unprocessable Entity

500 - Internal Server Error

Get asset document conflicts

GET /v2/assets/{asset_id}/conflicts

Use this API to retrieve asset document conflicts in database.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

offset

integer

The number of items to skip before starting to collect the result set

limit

integer

The maximum number of items to return

fetch_conflicting_revisions

boolean

Whether to retrieve conflict revision document content

Response

200 - OK

resources

array

List of document conflicts

limit

integer

offset

integer

total_count

integer

first

CatalogLink

last

CatalogLink

next

CatalogLink

prev

CatalogLink

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Delete asset document conflicts

DELETE /v2/assets/{asset_id}/conflicts

Use this API to delete asset document conflicts in database.

Request

Request Body

CatalogDeleteAssetDocumentConflictsRequest

Document conflicts to delete

revs

Required *

array

List of conflicting documents revs

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Deep copies an asset and its related assets to a catalog, project, or space

POST /v2/assets/{asset_id}/deepcopy

Use this API to deep copy an asset to a project, catalog, or space. Unlike clone, publish, and promote, this API enables cascading the copy operation to referenced assets. <br/><br/> When copying from a project to a space, the on_promote relationship option is used to determine whether the related assets for a given relationship type should be copied. In addition, you must have Admin or Editor permissions on both the project and the space.<br/><br/>Deep copy sends the same Rabbit MQ messages as clone, publish, and promote. Messages are sent for all assets that are copied.<br/><br/>This API supports copying from a project to a catalog (publish), from a project to a space (promote), and from a catalog to a project (clone).<br/></br>This API supports using a refresh token in place of an access token. This can be helpful if the deep copy is expected to be a long running operation. The deep copy uses the access token to authenticate with other services, so it is important that it not expire while the operation is in progress.<be/>When a refresh token is specified, it is used to generate an initial access token as well as additional access tokens if the initial access token expires

Request

Request Body

Request body should include target (container) ID, and may include asset permissions and metadata overrides. Fields 'mode' and 'member_roles' are optional.

  • If specified, they apply to newly copied (target) assets.
  • If not supplied, newly copied asset gets mode and 'member_roles' from its corresponding source asset.
  • Valid values for 'mode' are 0 (everyone has access), 8 (members have full access, others limited), and 16 (members only).
  • If caller doesn't have permissions to set any of the roles then 'member_roles' is completely ignored.
  • If supplied, 'member_roles' should include at least one OWNER role.

'space_id' is the target space ID i.e. target container ID.

'metadata' is optional and may contain attributes to overwrite the values in original asset;currently only name, description and tags may be overwritten.

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

project_id

string

project_id

catalog_id

string

catalog_id

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

duplicate_action

string

Action to take if the call would result in a duplicate asset. `IGNORE` means the call will ignore the duplicate and create a new asset. `REJECT` means the call will fail and no asset will be created. `UPDATE` means the best matched duplicate will be updated with the incoming changes according to the predefined rules. `REPLACE` means the best matched duplicate will be overwritten with the input values according to the predefined rules. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

Response

options

CatalogDeepCopyOptions

copy_task_id

string

copy_status_href

string

copied_asset

CatalogResponseAsset

202 - Accepted - indicates that the copy request is being completed in the background,due to the number of assets needed to copy is over 200, one or more attachment files being copied asynchronously because of large size, or due to both the reasons.

options

CatalogDeepCopyOptions

copy_task_id

string

copy_status_href

string

copied_asset

CatalogResponseAsset

400 - Bad Request

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

401 - Unauthorized

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

403 - Forbidden

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

500 - Internal Server Error

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

503 - Network read timeout

trace

string

Trace (transaction) ID for the failed operation

errors

array

Errors thrown during the operation

Get the image of asset

GET /v2/assets/{asset_id}/images

Get the image of asset.

Request

Path Parameters

asset_id

Required *

string

Asset GUID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

id

string

Image id

assetId

string

The asset id of the image

name

string

Image name

mime

string

Image type mime

createdAt

string

Image created at

creatorId

string

Image creator id

url

string

Image download url

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Upload an image for asset

PUT /v2/assets/{asset_id}/images

Upload an image for asset. Use this api, you must put the image's binary data to the HTTP body.<br>For example:<br>&nbsp;&nbsp;&nbsp;&nbsp;<i>curl -X "PUT" "api_url" -H "Authorization: $access token" --data-binary "@/image_dir_path/abc.png"</i>

Request

Path Parameters

asset_id

Required *

string

Asset GUID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - Uploaded

id

string

Image id

assetId

string

The asset id of the image

name

string

Image name

mime

string

Image type mime

createdAt

string

Image created at

creatorId

string

Image creator id

url

string

Image download url

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Delete the image of asset

DELETE /v2/assets/{asset_id}/images/{image_id}

Delete the image of asset.

Request

Path Parameters

asset_id

Required *

string

Asset GUID

image_id

Required *

string

Image id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Get asset or column notes

GET /v2/assets/{asset_id}/notes

Use this API to retrieve a paginated list of notes from an asset or a column within an asset. Any user who has viewer permission on an asset can retrieve its notes.

Request

Path Parameters

asset_id

Required *

string

Asset ID

Query Parameters

limit

integer

The maximum number of asset/column notes to return.<br/>The default value is 25. The limit cannot exceed 200.<br/>Use the `next` URL from the response to retrieve the next page of notes.

sort

string

Sorting order.<BR/> <BR/> The following fields can be used for sorting. Use hyphen prefix (`-`) for descending order:<BR/>`column_name`<BR/>`created_at`<BR/>`updated_at`<BR/>

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

column_names

array

Filters the result to include notes on the specified column(s). The parameter should be repeated for each column name.

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

note_type

string

Type of notes to include in the search result: <br><table border="1"><thead><tr><th>Note Type</th><th>Description</th></tr></thead><tbody><tr><td><code>`ALL`</code></td><td>Include all asset and column notes</td></tr><tr><td><code>`ASSET`</code></td><td>Include asset notes only - cannot be used with the `column_names` parameter</td></tr><tr><td><code>`COLUMN`</code></td><td>Include column notes only</td></tr></tbody></table>

Response

200 - OK

resources

array

limit

integer

count

integer

first

CatalogLink

next

CatalogLink

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Create notes on an asset

POST /v2/assets/{asset_id}/notes

Use this API to create notes for an asset and for columns within an asset. Accredited Service Editors and Viewers, and any user who has edit permission on an asset can create a note.

Request

Request Body

CatalogAssetNotesCreationRequest

Asset notes to be created - limited to 20 notes per request

notes

Required *

array

notes to be created for an asset and for columns of an asset

Path Parameters

asset_id

Required *

string

Asset ID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

Response

207 - Check response body for results of processing each requested note

results

array

Result(s) of asset note creation operation(s)

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get an asset or column note

GET /v2/assets/{asset_id}/notes/{note_id}

Use this API to retrieve a note from an asset or a column within an asset. Any user who has viewer permission on an asset can retrieve a note.

Request

Path Parameters

asset_id

Required *

string

Asset ID

note_id

Required *

string

Note ID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

Response

200 - OK

metadata

object

Asset note metadata

entity

object

Asset note entity

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Delete an asset or a column note

DELETE /v2/assets/{asset_id}/notes/{note_id}

Use this API to delete an asset or a column note. Accredited Service Editors and Viewers, and any user who has edit permission on an asset can delete a note.

Request

Path Parameters

asset_id

Required *

string

Asset ID

note_id

Required *

string

Asset or column note ID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Update an asset or column note

PATCH /v2/assets/{asset_id}/notes/{note_id}

Use this API to update a note on an asset or a column within an asset. Accredited Service Editors and Viewers, and any user who has edit permission on an asset can update a note.

Request

Request Body

CatalogJsonPatch

JSON array of patch operations as defined in RFC 6902. See http://jsonpatch.com/ for more info. <br/>Example :<br/> `[ {"op": "replace", "path": "/note", "value": "Description of a Note" } ]` <br/> Note: <br/> Only supported operation is `replace`. <br/> Any ‘~’ characters need to be escaped as ~0 in the path field. <br/> Any ‘/’ characters need to be escaped as ~1 in the path field. <br/> For example, in `{"foo/" : {"~bar" : "value"}}`, the path for `~bar` is `/foo~1/~0bar`.

Path Parameters

asset_id

Required *

string

Asset ID

note_id

Required *

string

Note ID

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

Response

200 - OK

metadata

object

Asset note metadata

entity

object

Asset note entity

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Update the owner of an asset

PUT /v2/assets/{asset_id}/owner

Use this API to assign new owner of an asset. You must be the current owner of the asset or a collaborator of the asset with Admin permissions to change the owner. If the asset has multiple owners and the specified user is not currently an owner, the last owner in the owner list (which is the one shown in the owner_id field) is replaced with the specified owner. If the specified user is already an owner of the asset, the user is moved to the end of the owner list so that it is reported in the owner_id field.

This API is deprecated, since this is an older API and supports only single asset owner, not assets with multiple owners. Moving forward owners should be created or updated using below APIs

`/v2/assets/{asset_id}`

or

`/v2/assets/{asset_id}/collaborators`

Request

Request Body

CatalogAssetOwner

Asset Owner

owner

string

owner_id

string

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Example Update Asset ROV Mode response.

PUT /v2/assets/{asset_id}/perms

Use this API to change the ROV (Rules of Visibility) mode on an asset.

Accepted ROV mode values:

  • Mode 0: Everybody can view and search the values of the asset's primary metadata document (card), and preview the asset's data. Note: access can still be denied based on actionable governance policy rules.
  • Mode 8: Users listed as members of the asset (as denoted by collaborator_ids list) can view and search all fields (including metadata, entity, and attachments) of the asset's primary metadata document (card), and preview the asset's data. Non-members are allowed to only view and search the metadata field, and cannot preview the asset's data. This mode is only available through the API, and is not exposed in the IKC UI. Note: access can still be denied based on actionable governance policy rules.
  • Mode 16: Only users listed as members of the asset (as denoted by collaborator_ids list) have any access to fields in the asset, and non-members have no access to the asset. Note: access can still be denied based on actionable governance policy rules.

Permissions:

  • The owner of the asset or asset collaborators with the Admin role can change the owner of the asset or delete the asset.
  • Asset collaborators with the Editor, Auditor, or Admin role can change the asset members or the privacy setting.

Request

Request Body

Example REST body for updating asset ROV mode.

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Promote an asset

POST /v2/assets/{asset_id}/promote

Use this API to promote project assets to space. You must have Admin or Editor permissions on both the project and the space.

Request

Request Body

Request body should include space ID, and may include asset permissions and metadata overrides. Fields 'mode' and 'member_roles' are optional.

  • If specified, they apply to newly promoted asset.
  • If not supplied, newly promoted asset gets mode and 'member_roles' from source asset.
  • Valid values for 'mode' are 0 (everyone has access), 8 (members have full access, others limited), and 16 (members only).
  • If caller doesn't have permissions to set any of the roles then 'member_roles' is completely ignored.
  • If supplied, 'member_roles' should include at least one OWNER role.
  • If caller has only EDITOR role on the source asset and if 'member_roles' does not include all the owners of the source asset then it will be ignored.

'space_id' is the target space id.

'metadata' is optional and may contain attributes to overwrite the values in original asset; currently only name, description and tags may be overwritten.

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

project_id

Required *

string

project_id must be provided

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

duplicate_action

string

Action to take if the call would result in a duplicate asset. `IGNORE` means the call will ignore the duplicate and create a new asset. `REJECT` means the call will fail and no asset will be created. `UPDATE` means the best matched duplicate will be updated with the incoming changes according to the predefined rules. `REPLACE` means the best matched duplicate will be overwritten with the input values according to the predefined rules. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Publish an asset

POST /v2/assets/{asset_id}/publish

Use this API to publish project assets to catalog. You can publish data assets from a project into a catalog. You must have Admin or Editor permissions on both the project and the catalog.

Request

Request Body

Request body should include catalog ID, and may include asset permissions and metadata overrides. Fields 'mode' and 'member_roles' are optional.

  • If specified, they apply to newly published asset.
  • If not supplied, newly published asset gets mode and 'member_roles' from source asset.
  • Valid values for 'mode' are 0 (everyone has access), 8 (members have full access, others limited), and 16 (members only).
  • If caller doesn't have permissions to set any of the roles then 'member_roles' is completely ignored.
  • If supplied, 'member_roles' should include at least one OWNER role.
  • If caller has only EDITOR role on the source asset and if 'member_roles' does not include all the owners of the source asset then it will be ignored.

'catalog_id' is the target catalog id. To support backwards compatibility when it is not supplied, the asset is published to the catalog associated with the project.

'metadata' is optional and may contain attributes to overwrite the values in original asset; currently only name, description and tags may be overwritten.

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

project_id

Required *

string

project_id must be provided

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

duplicate_action

string

Action to take if the call would result in a duplicate asset. `IGNORE` means the call will ignore the duplicate and create a new asset. `REJECT` means the call will fail and no asset will be created. `UPDATE` means the best matched duplicate will be updated with the incoming changes according to the predefined rules. `REPLACE` means the best matched duplicate will be overwritten with the input values according to the predefined rules. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

503 - Network read timeout

Get ratings of an asset

GET /v2/assets/{asset_id}/ratings

Get ratings for the specified asset.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

limit

integer

The maximum number of asset ratings to return.<br/>The default value is 25.

start

string

Bookmark that gives the start of the page.

sort

string

Sorting order.<BR/> Valid values: <code>updated_at</code>, <code>rating</code><BR/> Use hyphen prefix (-) for descending order

user_filter

string

Filter results by user.<BR/> Valid values: <code>all</code>, <code>user</code>, <code>other</code><br/> The default value is <code>all</code>

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

Response

200 - OK

resources

array

limit

integer

count

integer

first

CatalogLink

next

CatalogLink

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Rate an asset

POST /v2/assets/{asset_id}/ratings

Use this API to rate an asset.

Request

Request Body

CatalogAssetRatingEntity

Asset rating to be created

rating

Required *

integer

user's rating of an asset

review

string

user's review of an asset

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

Response

201 - Created

metadata

CatalogAssetRatingMetadata

AssetRatingMetadata

entity

CatalogAssetRatingEntity

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get the count of each rating value for the specified asset

GET /v2/assets/{asset_id}/ratings/stats

Get the counts of each rating value for the specified asset.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

Response

200 - OK

asset_id

string

identifier for asset

revision_id

integer

revision for asset

stats

array

count of ratings for each rating value

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Delete an asset rating

DELETE /v2/assets/{asset_id}/ratings/{asset_rating_id}

Use this API to delete an asset rating.

Request

Path Parameters

asset_id

Required *

string

asset_id

asset_rating_id

Required *

string

asset_rating_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Use this API to update an asset rating.

PATCH /v2/assets/{asset_id}/ratings/{asset_rating_id}

Update an asset rating

Request

Request Body

CatalogAssetRatingEntity

Asset rating to be updated

rating

Required *

integer

user's rating of an asset

review

string

user's review of an asset

Path Parameters

asset_id

Required *

string

asset_id

asset_rating_id

Required *

string

asset_rating_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

Response

200 - OK

metadata

CatalogAssetRatingMetadata

AssetRatingMetadata

entity

CatalogAssetRatingEntity

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Finds relationship types used by an asset

GET /v2/assets/{asset_id}/relationship_types

Finds relationship types that are used by a given asset. This API only returns the first page of results. It does not accept a bookmark. Any additional pages of results must be be fetched using the next page url included in the response.<br/></br>You can refer to the options in the response to get the full list of relationship names.<br><br> This API is deprecated - use `POST /v2/assets/search_relationships` instead.

Request

Path Parameters

asset_id

Required *

string

Asset ID

Query Parameters

catalog_id

string

Catalog ID

project_id

string

Project ID

space_id

string

Space ID

limit

integer

Optional limit to use when finding relationship types

orderby

array

orderby. This parameter can be repeated to add additional sort fields. <br><br>Default: relationship_display_name_asc

Supported sort fields (these are case insensitive):

  • relationship_name_asc
  • relationship_name_desc
  • relationship_display_name_asc
  • relationship_display_name_desc
  • create_time_asc
  • create_time_desc

Response

200 - Success

options

object

array

array

array

resources

array

total_rows

integer

next

object

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

429 - Too Many Requests

Finds related assets

GET /v2/assets/{asset_id}/relationships

Finds assets related to a given asset. This API supports limiting the results to a specific set of relationships as well as providing pagination and sorting options.<br/><br/>Note:When self references are present (i.e. when the source and target asset in the relationship are the same), more rows than specified by the limit may be returned. When this happens, the total rows reported is accurate and the bookmark points to next page of results.<br><br> This API is deprecated - use `POST /v2/assets/get_relationships` instead.

Request

Path Parameters

asset_id

Required *

string

Asset ID

Query Parameters

catalog_id

string

Catalog ID

project_id

string

Project ID

space_id

string

Space ID

bookmark

string

bookmark

limit

integer

limit. Defaults to 25

orderby

array

orderby. This parameter can be repeated to add additional sort fields. <br><br>Default: update_time_asc

Supported sort fields (these are case insensitive):

  • create_time_asc
  • create_time_desc
  • update_time_asc
  • update_time_desc
  • creator_id_asc
  • creator_id_desc
  • updater_id_asc
  • updater_id_desc

relname

array

Limits results to only include the specified relationships. By default, all relationships are included. Repeat the query parameter to specify multiple relationship names.

lookup_asset_names

boolean

Whether to lookup the asset names. This adds overhead, so only set this to true if the asset names are required. Defaults to false.

lookup_container_names

boolean

Whether to lookup the container names. This adds overhead, so only set this to true if the asset names are required. Defaults to false.

Response

200 - Success

options

object

resources

array

total_rows

integer

next

object

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Create asset relationships

PUT /v2/assets/{asset_id}/relationships/{relationship_name}

Use this API to create relationships between a source asset and up to 20 target artifacts.

  • The relationship name must correspond to a relationship type defined on the source asset's type.
  • The target artifacts must be assets of the type specified in the relationship type definition.
  • If the specified relationship does not exist between a source and target asset, a new relationship is created.
  • If either end of the relationship is defined as multiplicity-one, any existing value of a multiplicity-one end is replaced.

This API is deprecated - use `POST /v2/assets/set_relationships` instead.

Request

Request Body

CatalogCreateRelationshipsRequestBody

Target artifacts

relationship_targets

Required *

array

target artifacts

Path Parameters

asset_id

Required *

string

Asset ID

relationship_name

Required *

string

Name of relationship defined on the source asset type

Query Parameters

catalog_id

string

Catalog ID

project_id

string

Project ID

space_id

string

Space ID

Response

207 - Check response body for results of processing each target artifact

results

array

Result(s) of relationship creation operation(s)

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Deletes asset relationships

DELETE /v2/assets/{asset_id}/relationships/{relationship_name}

Use this API to remove a relationship between an asset and one or more target artifacts. The relationship name must correspond to a relationship type defined on the source asset's type. If the specified relationship does not exist between the source and one or more target assets, it will be ignored. For this api, all of the relationship targets need to be in the same catalog, project, or space. If the target space/catalog/project is omitted, it is assumed to be the same as the source.<br><br> This API is deprecated - use `POST /v2/assets/unset_relationships` instead.

Request

Path Parameters

asset_id

Required *

string

Source Asset Id

relationship_name

Required *

string

Name of relationship defined on the source asset type

Query Parameters

catalog_id

string

Source Asset Catalog

project_id

string

Source Asset Project

space_id

string

Source Asset Space

target_catalog_id

string

Target Asset Catalog

target_project_id

string

Target Asset Project

target_space_id

string

Target Asset Space

target_asset_id

Required *

array

target asset id. To delete multiple relationships, this parameter can be repeated.

Response

200 - OK. Check response body for results of processing each target artifact

error_results

array

source_asset

CatalogQualifiedAssetId

relationship_name

string

source_asset_type

string

target_asset_type

string

target_asset_types

array

target_assets_disconnected

array

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Determine if a relationship exists between an asset and a target asset or governance artifact

HEAD /v2/assets/{asset_id}/relationships/{relationship_name}

Deprecated: use `POST /v2/assets/{asset_id}/relationships/{relationship_name}/exists` instead.

Use this API to determine if a relationship exists between an asset and a target asset or governance artifact.

  • The relationship name must correspond to a relationship type defined on the source asset's type.
  • The target must be an asset, column, or governance artifact of the type specified in the relationship type definition.
  • The source and target assets may reside in different catalogs, projects, or spaces within the same BSS account.

Request

Request Body

CatalogRelationshipTarget

Target artifact

catalog_id

string

Catalog ID

project_id

string

Project ID

space_id

string

Space ID

asset_id

string

Asset ID

artifact_type

string

Artifact Type

artifact_id

string

Artifact ID

artifact_name

string

Asset or Artifact Name

Path Parameters

asset_id

Required *

string

Asset ID

relationship_name

Required *

string

Name of relationship defined on the source asset type

Query Parameters

catalog_id

string

Catalog ID

project_id

string

Project ID

space_id

string

Space ID

Response

204 - The relationship exists

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

410 - Gone - If either asset in the relationship is in the deleted state

500 - Internal Server Error

Determine if a relationship exists between an asset and a target asset or governance artifact

POST /v2/assets/{asset_id}/relationships/{relationship_name}/exists

Use this API to determine if a relationship exists between an asset and a target asset or governance artifact. This endpoint is a POST alternative to `HEAD /v2/assets/{asset_id}/relationships/{relationship_name}` for clients that cannot send a request body with a HEAD request (e.g. browser native fetch, Swagger UI).

  • The relationship name must correspond to a relationship type defined on the source asset's type.
  • The target must be an asset, column, or governance artifact of the type specified in the relationship type definition.
  • The source and target assets may reside in different catalogs, projects, or spaces within the same BSS account.

Request

Request Body

CatalogRelationshipTarget

Target artifact

catalog_id

string

Catalog ID

project_id

string

Project ID

space_id

string

Space ID

asset_id

string

Asset ID

artifact_type

string

Artifact Type

artifact_id

string

Artifact ID

artifact_name

string

Asset or Artifact Name

Path Parameters

asset_id

Required *

string

Asset ID

relationship_name

Required *

string

Name of relationship defined on the source asset type

Query Parameters

catalog_id

string

Catalog ID

project_id

string

Project ID

space_id

string

Space ID

Response

200 - The relationship exists

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

410 - Gone - If either asset in the relationship is in the deleted state

500 - Internal Server Error

Get a list of revisions for an asset

GET /v2/assets/{asset_id}/revisions

Use this API to retrieve an ordered list of revisions for an asset, most to least recent.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

limit

integer

The maximum number of revisions to return. The default is 25. Maximum is 200

start

string

The revision number to start from, or 'latest'. Latest revision is the default.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Commit a revision of an asset

POST /v2/assets/{asset_id}/revisions

Use this API to commit a revision of an asset.

Request

Request Body

CatalogAssetCommitOptions

Commit options

commit_message

string

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

201 - Created

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

500 - Internal Server Error

Delete a revision

DELETE /v2/assets/{asset_id}/revisions

Use this API to delete a revision of an asset.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

Required *

string

You must provide a revision id (1, 2, 3, ...)

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

List all catalogs for a specific account

GET /v2/catalogs

Use this API to get a list of catalogs or projects or spaces, or to get the total number of public catalogs, for a given account. You can use 'roles' parameter to filter results by roles for standard callers.<br/>

  • Standard Callers: to list all catalogs where caller is collaborator, omit "bss_account_id" field and "include" field.<br/>
  • Accredited Services: to list all catalogs or projects or spaces for a specific account, enter bss account value in "bss_account_id" field and one of 'catalogs', 'projects', or 'spaces' in "include" field.<br/>
  • Accredited Services: to get the number of public catalogs for a specific account, enter bss account value in "bss_account_id" field and 'total_count' in "include" field.<br/><br/> This API returns catalogs from the effective BSS account, which is determined in the following order of precedence:<br/>
  1. The `bss_account_id` query parameter (if provided)<br/>
  2. The BSS account from the impersonation header (for service IDs only)<br/>
  3. The BSS account from the bearer token<br/><br/> <b>Important</b>: Catalogs from other BSS accounts that you have access to will not be included in the results, even if you are a collaborator on those catalogs. To see catalogs from a specific BSS account, explicitly set the `bss_account_id` query parameter.

Request

Path Parameters

Query Parameters

limit

integer

limit

bookmark

string

bookmark

skip

integer

skip

include

string

Limited to use by accredited services (which must also supply 'bss_account_id'). Currently, the only supported values are 'catalogs', 'projects', 'spaces' or 'total_count'. Not supplying any of these values results in public 'catalogs', 'projects', AND 'spaces' being returned for a specific account.<br/>

  • Use 'catalogs' for including all public catalogs for a specific bss_account_id.<br/>
  • Use 'projects' for including all projects for a specific bss_account_id.<br/>
  • Use 'spaces' for including all spaces for a specific bss_account_id.<br/>
  • Use 'total_count' for including total number of public catalogs for a specific account.

bss_account_id

string

If set, the operation will search for catalogs in this BSS account. If not set, the effective BSS account is determined automatically as described in the main endpoint description. Must be supplied when caller is an accredited service.

roles

string

Filter results by user roles. Use comma separated list for multiple roles. Valid role value: admin, editor, viewer. This param is not allowed if caller is from accredited service or ICIP mode is enabled.

orderby

array

orderby. This parameter can be repeated to add additional sort fields. <br><br>Default: null

Supported sort fields (these are case insensitive):

  • catalog_name_asc
  • catalog_name_desc
  • create_time_asc
  • create_time_desc
  • update_time_asc
  • update_time_desc

exclude_subtypes

boolean

(DEPRECATED) Indicates whether results should include catalogs with a subtype. If not specified, catalogs with a subtype are excluded.This parameter is deprecated. Use 'subtype' instead.

subtype

array

Filter results by catalogs with the specified subtypes.

If nothing is specified, by default catalogs with subtype are not returned.

  • If set to 'NO_SUBTYPES', catalogs with subtype are not returned
  • If set to 'ALL_SUBTYPES', only catalogs with a subtype are returned
  • If set to 'ALL_SUBYTPES, NO_SUBTYPES', both catalogs which have subtypes and not are returned
  • If set to 'subtypeA, subtypeB' , only catalogs with those subtypes are returned.

name

string

Filter results by catalogs with a case insensitive name. This matches substrings.

governance_type

string

Filter results by catalogs with the specified governance type. Allowed values: governed, ungoverned, all. Default: all

Response

200 - OK

catalogs

array

nextBookmark

string

nextSkip

integer

totalCount

integer

400 - Bad Request

401 - Unauthorized

403 - Forbidden

catalogadmin@mycompany.com", "bucket": { "bucket_type": "assetfiles" } } ``` ">

Create a catalog

POST /v2/catalogs

Use this API to create a catalog to organize your assets and collaborators. You can use a catalog to easily find and share data for your organization, regardless of the location or format of the data.

On IBM Cloud, to create a catalog you must have the Manager role in your organization's IBM Knowledge Catalog account.<br/> In CPD, to create a catalog you must have the Administrator role.

The catalog name can be 1 to 256 printable Unicode characters - ISO control characters and Unicode Special characters are not permitted.

On IBM Cloud, IBM Cloud Object Storage (S3 API) credentials are required in the request body's `bucket` structure. This provides encrypted storage for file assets that are copied to the catalog.

In CPD, file asset storage for a catalog is provisioned <b>after</b> catalog creation, via a separate call to the Asset Files API. Creating a catalog does not automatically provision this storage.<br/> When creating a catalog in CPD, set the `check_bucket_existence` query parameter to `false`, and the request body's `bucket` structure should just have `bucket_type` set to `assetfiles`.<br/> After the catalog is created, call the `PUT /v2/asset_files` API to create a bucket for this catalog.

Sample request body for creating a catalog in CPD: ``` { "name": "catalog1", "description": "A catalog in CPD", "generator": "catalogadmin@mycompany.com", "bucket": { "bucket_type": "assetfiles" } } ```

Request

Request Body

CatalogCatalogEntityWithBucket

Note: `name`, `generator`, and the `bucket` structure are required fields in the request body.

name

Required *

string

Name of the Catalog instance

description

string

Description of the Catalog instance

generator

Required *

string

Generator of the Catalog instance

project_id

string

Project id

space_id

string

Space id

bss_account_id

string

Account ID

capacity_limit

integer

Capacity Limit

is_governed

boolean

Indicates if the assets in the Catalog are governed. if not specified, it defaults to false. For private catalogs, 'false' should be always passed, because private catalogs can not be governed.

is_sharing_properties

boolean

Indicates if the assets in the Catalog are sharing properties with other identical assets. If not specified, it defaults to false. For governed catalogs, this must be set to true. For ungoverned catalogs, it can be either true or false

auto_profiling

boolean

Indicates if the assets in the Catalog are allowed for profiling. if not specified

saml_instance_name

string

SAML instance type

uid

string

UID

subtype

string

configurations

CatalogAssetContainerConfiguration

duplicate_action

string

Action to take if duplicate assets are found for a given asset

default_duplicate_strategy

string

Default duplicate detection strategy for assets of types that do not have duplicate detection strategy defined

duplicate_strategies

array

Duplicate detection strategies of assets with specified asset types in this catalog/project/space

reporting_authorized

boolean

Authorize reporting in this catalog

default_purge_on_delete

boolean

Whether assets has to be purged on delete

default_purge_after_days

integer

Days after which assets has to be purged after soft delete

dcat_configuration

object

Dcat configuration

tags

array

List of tags

jobs

object

Jobs configuration for the space container

delegator_id

string

IAM UID of the delegator for job operations (e.g., 1000331066)

containerType

string

bucket

CatalogCatalogBucket

bucket_name

Required *

string

Bucket Name

bucket_location

string

endpoint_url

string

role_arn

string

The ARN of the AWS role for accessing S3 bucket. Only applicable to buckets of type aws_s3 and is mandatory in which case.

shared

boolean

Indicate if the bucket is shared by more than one asset containers. Only applicable to buckets of type aws_s3. Default to false.

resource_instance_id

string

Bluemix COS Resource Instance ID

credentials_rw

object

Bucket Credentials

bluemix_cos_credentials

object

Bluemix COS Credentials

location_definition

object

location_definition

Path Parameters

Query Parameters

check_bucket_existence

boolean

Whether an existence check should be performed on the catalog bucket

check_duplicate_name

boolean

Whether to check if catalogs with the same name already exist

Response

201 - Created

metadata

object

Metadata of the Catalog instance

entity

object

Entity of the Catalog instance

href

string

URL of the Catalog instance

400 - Bad Request

401 - Unauthorized

403 - Forbidden

429 - Too Many Request

Retrieve the default catalog

GET /v2/catalogs/default

Use this API to retrieve the default catalog.

Request

Path Parameters

Query Parameters

bss_account_id

string

BSS account to get the default catalog from. Defaults to the BSS account from the impersonation header (service IDs only) or the bearer token.

Response

200 - OK

metadata

object

Metadata of the Catalog instance

entity

object

Entity of the Catalog instance

href

string

URL of the Catalog instance

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Create the default catalog

POST /v2/catalogs/default

Use this API to create the default catalog.

Request

Request Body

CatalogCreateDefaultCatalogRequest

Example: ``` { "catalog": { "name": "The Default Catalog", "generator": "API", "description": "The default catalog", "bss_account_id": "999", "is_governed": true, "bucket": { "bucket_type": "assetfiles" } } } ```

catalog

CatalogCatalogEntityWithBucket

Schema for catalogEntity with bucket details

name

Required *

string

Name of the Catalog instance

description

string

Description of the Catalog instance

generator

Required *

string

Generator of the Catalog instance

project_id

string

Project id

space_id

string

Space id

bss_account_id

string

Account ID

capacity_limit

integer

Capacity Limit

is_governed

boolean

Indicates if the assets in the Catalog are governed. if not specified, it defaults to false. For private catalogs, 'false' should be always passed, because private catalogs can not be governed.

is_sharing_properties

boolean

Indicates if the assets in the Catalog are sharing properties with other identical assets. If not specified, it defaults to false. For governed catalogs, this must be set to true. For ungoverned catalogs, it can be either true or false

auto_profiling

boolean

Indicates if the assets in the Catalog are allowed for profiling. if not specified

saml_instance_name

string

SAML instance type

uid

string

UID

subtype

string

configurations

object

tags

array

List of tags

jobs

object

Jobs configuration for the space container

containerType

string

bucket

object

Path Parameters

Query Parameters

check_bucket_existence

boolean

Whether an existence check should be performed on the catalog bucket

check_duplicate_name

boolean

Whether to check if catalogs with the same name already exist

Response

201 - Created

catalog

CatalogCatalog

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

500 - Internal Server Error

Rehome one or more synced assets.

POST /v2/catalogs/default/rehome

Use this API for rehoming assets in a catalog that had been synced from an external OMRS repository to be native IKC assets. The API supports rehoming a single asset, or a bulk rehome of all synced data assets of specific external repository.

If the request is accepted, the response header contains the rehome request ID `x-future-id` which can then be used to monitor the request status via `/v2/catalogs/default/rehome/status?request_id=<x-future-id>`.

> Service ID is required to call this API.

Request

Path Parameters

Query Parameters

asset_id

string

Synced asset to be rehomed - if omitted, all synced assets of `source_metadata_collection_id` repository will be rehomed

source_metadata_collection_id

string

Source metadata collection id required if all assets of single external repository need to be rehomed

is_bulk_rehome

Required *

boolean

Set to true to bulk re-home all synced data assets in a catalog

catalog_id

string

Catalog containing the synced assets to be re-homed. If not specified, synced assets in the default catalog are re-homed.

Response

202 - Accepted - indicates request has been accepted

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Monitor status of rehome task

GET /v2/catalogs/default/rehome/status

Use this API to check the status of a rehome asset(s) request, using the x-future-id response header value returned by a previous `/v2/catalogs/default/rehome` request.

Request

Path Parameters

Query Parameters

request_id

string

x-future-id response header value returned by a previous rehome request

Response

200 - OK - indicates successful completion of the rehome request

202 - Accepted - indicates the rehome request corresponding to the specified request_id is still processing

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Export as a zip file containing appropriate csv files for the selected assets

POST /v2/catalogs/export_assets

This API is responsible for preparing a zip file containing csv files related to the selected assets for export.

Request

Request Body

A json object containing a list of asset IDs; maximum of 100.

Path Parameters

Query Parameters

catalog_id

Required *

string

You must provide either a catalog id, a project id, or a space id, but not more than one

export_asset_id

Required *

string

The id of the ibm_export_asset type asset

export_type

array

The list of export types the operation is expected to handle. Export Type includes `metadata, relationship, lineage`. But, for now, we are supporting only `metadata, relationship`. Applicable only when export_format=csv

Response

202 - Accepted

status

integer

statusInfo

CatalogStatusType

entity

object

mediaType

CatalogMediaType

language

CatalogLocale

length

integer

allowedMethods

array

cookies

object

entityTag

CatalogEntityTag

date

string

lastModified

string

location

string

array

metadata

object

headers

object

stringHeaders

object

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Process an import asset

POST /v2/catalogs/import_assets

This API begins processing of import assets. This function is used to import lineage mappings from EMD CSV documents.

Request

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

import_asset_id

Required *

string

The id of the import_asset

action

Required *

string

The action to perform on this import_asset. "process" (default): Validate and run an import job, "validate": Validate an import only without starting an import job.

force

boolean

When performing a processing request, proceed with the import even if validation fails. This option is only used when 'action' = 'process' (which is the default case)

duplicate_action

string

Action to take if the call would result in a duplicate asset. `IGNORE` means the call will ignore the duplicate and create a new asset. `REJECT` means the call will fail and no asset will be created. `UPDATE` means the best matched duplicate will be updated with the incoming changes according to the predefined rules. `REPLACE` means the best matched duplicate will be overwritten with the input values according to the predefined rules. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

Response

202 - Accepted

status

integer

statusInfo

CatalogStatusType

entity

object

mediaType

CatalogMediaType

language

CatalogLocale

length

integer

allowedMethods

array

cookies

object

entityTag

CatalogEntityTag

date

string

lastModified

string

location

string

array

metadata

object

headers

object

stringHeaders

object

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Request temporary security credentials

POST /v2/catalogs/temporary_credentials

Request temporary security credentials that can be used for storing asset attachment files.

<B>The endpoint is currently only applicable for AWS deployments.</B>

If role_arn and external_id are supplied, the caller must be a sevice id in the allow-list 'aws_s3_administrator'. The requested credentials will have permission for accessing the resources in the bucket of the catalog or the bucket itself depending on the supplied information. The allowed combinations of the fields are:

  • role_arn, external_id: list, check bucket existence and create buckets in the account that the role is defined in
  • role_arn, external_id, bucket_name, shared (optional, default to false), catalog_id (must be supplied if shared is true): put/get/list/delete objects in the bucket, and list multipart uploads and delete the bucket if the bucket is not shared.

If catalog_id is supplied, the caller must be a member of the catalog, or a service id that is in the allow-list 'aws_s3_administrator', 'aws_s3_editor', 'aws_s3_list_objects', 'accredited_service_editors', 'accredited_service_viewers', or 'accredited_service_exporters'. The requested credentials will have permission for accessing the resources in the bucket of the catalog or the bucket itself based on the membership.

  • admin or service id in allow-list 'aws_s3_administrator': put/get/list/delete objects in the bucket, and list multipart uploads and delete the bucket if the bucket is not shared.
  • editor or service id in allow-list 'accredited_service_editors' or 'aws_s3_editor': put/get/delete objects in the bucket
  • viewer or service id in allow-list 'accredited_service_viewers' or 'accredited_service_exporters': get objects in the bucket"
  • service id in allow-list 'aws_s3_list_objects': list objects in the bucket"

If none of above is supplied, the caller must have permission to create catalogs in the account that the access token is scoped for. The requested credentials will have permission to list, check bucket existence and create buckets in the account.

If min_duration_seconds is supplied, the requested temporary credentials must be valid for at least the specified duration. If it is not supplied or if the cached temporary credentials of the same requirement is valid for at least specified duration, the cached credentials will be returned.

Note: when a bucket is shared, the objects in the shared bucket must have the prefix of '{catalog_id}/', e.g. '553fa5a8-bea5-43fa-9f04-b2f5ed39e6d3/myreport.csv'. All the permissions in shared buckets are granted to only allow accesing resources with the prefix of a specific catalog id.

Request

Request Body

CatalogTemporaryCredentialsRequest

Request body

catalog_id

Required *

string

Catalog id

role_arn

Required *

string

ARN of the AWS integration role

external_id

Required *

string

External id for AWS integration

bucket_name

Required *

string

Name of the bucket

shared

Required *

boolean

Indicate if the bucket is shared by multiple asset containers

min_duration_seconds

Required *

integer

Minimum duration (in seconds) that the credentials should be valid for. The value cannot be greater than 3600 seconds. If not supplied, cached credentials that have the same requested permission can be returned.

Response

200 - OK

access_key_id

string

AWS access key, used to identify the user interacting with AWS

secret_access_key

string

AWS secret access key, used to authenticate the user interacting with AWS

session_token

string

AWS session token. This token is retrieved from an AWS token service, and is used for authenticating that this user has received temporary permission to access some resource.

session_policy

string

Session policy applied on the role session created for the temporary credentials. The field is only available in development environment and not in production environment for performance reason.

expires_at

integer

The epoch timestamp when the credentials will expire.

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get a catalog by catalog ID

GET /v2/catalogs/{catalog_id}

Members of the catalog can use this API to retrieve information about a catalog.

Request

Path Parameters

catalog_id

Required *

string

Catalog GUID or UID

Query Parameters

bss_account_id

string

You must provide bss_account_id when querying for uid

Response

200 - OK

metadata

object

Metadata of the Catalog instance

entity

object

Entity of the Catalog instance

href

string

URL of the Catalog instance

400 - Bad Request

401 - Unauthorized

403 - Forbidden

Delete a catalog by catalog ID

DELETE /v2/catalogs/{catalog_id}

Use this API to delete a catalog if you have the Admin role.Deleting a catalog removes all items that are associated with the catalog, such as metadata for all assets in the catalog.

Request

Path Parameters

catalog_id

Required *

string

Catalog GUID

Query Parameters

delete_bucket

boolean

delete_bucket

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

Update catalog

PATCH /v2/catalogs/{catalog_id}

Use this API to update the name or description of the catalog.

Request

Request Body

CatalogJsonPatch

JSON array of patch operations as defined in RFC 6902.<br/>[ { "op": "replace", "path": "/entity/name", "value": "new-name" },<br/>{ "op": "replace", "path": "/entity/description", "value": "new-description" } ] <br/> Note: <br/> Any ‘~’ characters need to be escaped as ~0 in the path field. <br/> Any ‘/’ characters need to be escaped as ~1 in the path field. <br/> For example, in {"foo/" : {"~bar" : "value"}}, the path for "~bar" is "/foo~1/~0bar".

Path Parameters

catalog_id

Required *

string

catalog GUID

Query Parameters

check_duplicate_name

boolean

Whether to check if catalogs with the same name already exist. Only applicable if the name is to be updated.

Response

200 - OK

metadata

object

Metadata of the Catalog instance

entity

object

Entity of the Catalog instance

href

string

URL of the Catalog instance

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

500 - Internal Server Error

List all members of the catalog

GET /v2/catalogs/{catalog_id}/members

Get members for the catalog.

Request

Path Parameters

catalog_id

Required *

string

catalog GUID

Query Parameters

limit

integer

limit

bookmark

string

bookmark

member_type

string

member_type

Response

200 - OK

total_results

integer

members

array

nextBookmark

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Add members to a catalog

POST /v2/catalogs/{catalog_id}/members

Adds members to a catalog. A catalog member can be a user (specified as a user name or user ID), a service ID, or an access group.

Request

Request Body

CatalogMemberSet

Members with roles

members

Required *

array

Path Parameters

catalog_id

Required *

string

catalog GUID

Query Parameters

Response

200 - OK

members

array

failures

array

trace

string

201 - Created

members

array

failures

array

trace

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Delete members from a catalog

DELETE /v2/catalogs/{catalog_id}/members/bulk

Delete members from a catalog.You can delete a member or more if you are the owner of the catalog or a member of the catalog with Admin or Editor permissions on the catalog.

Request

Path Parameters

catalog_id

Required *

string

catalog GUID

Query Parameters

member_ids

Required *

string

Comma-separated list of Member GUIDs, with a maximum of 20.

member_type

string

Type of the members specified in the `member_ids` parameter. Specify `user` or `group` or 'profile' if all members are user or access group IDs. If `member_ids` contains a mixture of user or group IDs, then specify `all` for `member_type` or alternatively do not specify any value. If `member_type` is `all` or not specified, use `member_types` to indicate the type of each member in `member_ids`

member_types

string

Comma-separated list of types for each member specified in `member_ids`. The supported types are `user` and `group` and 'profile'. If both `member_types` and `member_type` parameters are specified, `member_types` takes precedence over `member_type`. If `member_types` is not specified, and `member_type` is not specified or is `all`, the API will attempt to determine the member type based on the member ID. In a CPD environment, user and access group IDs are numeric and have no prefix indicating whether the ID represents a user or group ID, so `member_types` should be specified if `member_ids` contains a mixture of user and access group IDs

Response

207 - Check response body for status of each member being deleted

responses

array

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

List all properties of a catalog

GET /v2/catalogs/{catalog_id}/properties

Use this API to get all properties of catalog.

Request

Path Parameters

catalog_id

Required *

string

catalog GUID

Query Parameters

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Update catalog properties

PATCH /v2/catalogs/{catalog_id}/properties

Use this API to patch catalog properties.

Request

Request Body

CatalogJsonPatch

JSON array of patch operations as defined in RFC 6902.<br/>[ { "op": "add", "path": "/properties/new-property", "value": "new-value" } ] <br/> Note: <br/> Any ‘~’ characters need to be escaped as ~0 in the path field. <br/> Any ‘/’ characters need to be escaped as ~1 in the path field. <br/> For example, in {"foo/" : {"~bar" : "value"}}, the path for "~bar" is "/foo~1/~0bar".

Path Parameters

catalog_id

Required *

string

catalog GUID

Query Parameters

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

500 - Internal Server Error

Get a single property in a catalog

GET /v2/catalogs/{catalog_id}/properties/{property_key}

Use this API to get the property of catalog by given property key.

Request

Path Parameters

catalog_id

Required *

string

catalog GUID

property_key

Required *

string

catalog property key

Query Parameters

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Update catalog connections

PATCH /v2/catalogs/{catalog_id}/reconfigure

Use this API to patch catalog properties.

Request

Path Parameters

catalog_id

Required *

string

catalog GUID

Query Parameters

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

409 - Conflict

500 - Internal Server Error

Get the catalog state

GET /v2/catalogs/{catalog_id}/state

Request

Path Parameters

catalog_id

Required *

string

Catalog GUID

Query Parameters

Response

200 - OK

catalogId

string

state

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

Create a data asset

POST /v2/data_assets

You can use this API to add data assets to a catalog. Data assets could be data from a connection to a data source (ex. tables) or files from your local system uploaded into cloud object storage associated with Projects or Catalog.All asset types have a common set of properties, such as name, description, asset type, visibility, tags, classifications. Data Asset have additional attributes such as mime type, columns with types, and properties. Use v2/attachments API to indicate location of data (ex. table path) from a connection to a data source.

Request

Request Body

CatalogDataAsset

Data Asset Metadata

metadata

CatalogAssetMetadata

AssetMetadata Model

name

Required *

string

Choose Any Name for your Asset

asset_id

string

Unique identifier for the asset within this request for transient mapping purposes. Not persisted with the asset. Use source_system_history to retain for future reference

description

string

A longer description describes an asset.

tags

array

asset_type

Required *

string

asset type

origin_country

string

resource_key

string

identity_key

string

rov

object

asset_category

Required *

string

source_system

object

Source System Info

child_source_systems

array

source_system_history

array

History of external repository assets that were the source of an imported/synced/rehomed asset.

isManagedAsset

boolean

entity

Required *

object

attachments

array

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

duplicate_action

string

Action to take if the call would result in a duplicate asset. `IGNORE` means the call will ignore the duplicate and create a new asset. `REJECT` means the call will fail and no asset will be created. `UPDATE` means the best matched duplicate will be updated with the incoming changes according to the predefined rules. `REPLACE` means the best matched duplicate will be overwritten with the input values according to the predefined rules. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

201 - Created

metadata

CatalogResponseAssetMetadata

entity

object

href

string

attachments

CatalogAttachment

asset_id

string

input_asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get a data asset

GET /v2/data_assets/{data_asset_id}

Use this API to retrieve metadata about a data asset. The response document will contain three top-level fields:<br/>

  • 'metadata': contains metadata common to all types of assets
  • 'entity': contains metadata specific to the asset_type - in this case 'data_asset'
  • 'attachments': an array containing one item of metadata per attached resource<br/><br/>The data described by the above metadata is stored in attached resources. Examples of attached resources are database tables, csv files, word documents, extended metadata documents, etc. Because an item in the 'attachments' array only contains metadata about an attached resource, accessing the actual attached resource requires additional server calls. Exactly which additional server calls are needed depends on the kind of attached resource. Follow the steps below to access an attached resource.<br/><br/> Step 1: find the index i of the item in the above 'attachments' array whose 'asset_type' value matches the type of the attached resource you want to access. For a 'data_asset' attached resource look for the item i where 'attachments[i].asset_type' is 'data_asset'.<br/><br/>There are two important pairs of fields (among many others) which may appear in 'attachments[i]'. Only one of those pairs will actually appear. Which pair appears influences which steps to perform next.<br/>
  • Pair 1: 'connection_id' and 'connection_path':
    • The above two fields will appear in 'attachments[i]' if the value of 'attachments[i].is_remote' is true.
    • 'attachments[i].is_remote' WILL be true if the attached resource is a database table. In this case, 'attachments[i].connection_path' will contain a schema name and table name.
    • 'attachments[i].is_remote' MAY be true if the attached resource is, for example, a csv file. In this case, 'attachments[i].connection_path' will contain a folder path and file name.<br/><br/>If the above pair of fields are present in 'attachments[i]' then:<br/> Step 2: use the value of the 'attachments[i].connection_id' field to make a call to the GET /v2/connections/{connection_id} API. You'll need appropriate credentials.<br/> Step 3: use the values in the 'entity.properties' field of the result from Step 2 to either create a connection to the database containing the table or to retrieve the file.<br/><br/>Note: even if 'attachments[i].is_remote' is true and the above pair of fields are present in 'attachments[i]', if the attached resource is located in the catalog/project bucket then you may optionally perform the two steps discussed for Pair 2 ('object_key' and 'handle') below.<br/>
  • Pair 2: 'object_key' and 'handle':
    • The above two fields will appear in 'attachments[i]' if the value of 'attachments[i].is_remote' is false. In this case, 'attachments[i].handle' will contain information about the attached resource.<br/> Step 2: use the value of the 'attachments[i].id' field as the value for 'attachment_id' in a call to the GET /v2/assets/{asset_id}/attachments/{attachment_id} API. The value to use for 'asset_id' in the call to the attachments API is the same as the value that was used for 'data_asset_id' in the original call to the GET /v2/data_assets/{data_asset_id} API.<br/> Step 3: use the value in the 'url' field of the result from Step 2 to download (for example, with a browser) a copy of the file.

Request

Path Parameters

data_asset_id

Required *

string

data_asset_id

Query Parameters

catalog_id

string

catalog_id

project_id

string

project_id (only catalog_id is supported at this time)

space_id

string

space_id (only catalog_id is supported at this time)

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get columns of a data asset

GET /v2/data_assets/{data_asset_id}/columns

Use this API to retrieve columns of a data asset located in catalog or project. Access to an asset is controlled by a combination of the privacy level and the members of the asset. For a governed catalog, data assets are protected from unauthorized access by the governance policies that are defined in Data Catalog. Data assets in ungoverned catalogs are not subject to governance policies.

Request

Path Parameters

data_asset_id

Required *

string

data_asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

revision_id

string

Revision id (1, 2, 3, ...), or leave empty for the current asset version. Use 'latest' for the most recent revision.

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

limit

integer

The maximum number of items to return

bookmark

string

The bookmark for the next page of results, received from a previous call.

sort

string

Sorting the columns, e.g., 'data_asset.columns', '-column_info.column_info_quality_score', 'data_asset.columns,column_info.column_info_quality_score

skip

integer

Number of columns to skip, starting from the bookmark. Skip value can be greater than limit value. If skip value exceeds total number of columns, an empty response will be returned. Skip value cannot be less than zero. Default value of skip is zero. Skip value is added to bookmark, when non-null bookmark is passed and skip value is greater than 0. e.g. If limit = 10 and user has already retrieved 2 pages. Now, if user passes the bookmark equivalent to 2, with skip = 20, then the columns 40 to 49 will be retrieved. Skip value can be a greater than zero when bookmark is null. e.g. If limit = 10, user passes bookmark as null and skip = 5, then columns 5 to 14 are retrieved.

filter

string

Filter columns by name, e.g., 'A*'

Response

200 - OK

total_rows

integer

resources

array

bookmark

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

404 - Not Found

500 - Internal Server Error

Create a folder asset

POST /v2/folder_assets

You can use this API to add folder assets to a catalog. Folder assets are similar to folders or directories in a file system. In the same way that a directory in a file system can contain many files, a folder asset can represent groups of files or objects all sharing a common path. An example of a path may be '/sales_data/by_month/february'. There may be many different files with that common path, but we only need to register just the common path when we create a folder asset.<br/><br/>Along with other types of assets, such as data assets, folder assets share a common set of properties such as name, description, asset type, visibility, tags, classifications, etc. In addition to other types of assets, folder assets are denoted by a `folder_asset` json object within the common `entity` object. The `folder_asset` json object contains a `connection_id`, and a `connection_path`. E.g.,

``` { "metadata":{...}, "entity":{ "folder_asset":{ "connection_id":"f1fea17c-a7e5-49e4-9f8e-23cef3e11ed5", "connection_path":"/bucket1/folder1/folder1.1" } } } ``` <br/>A folder asset can be mediated by a connection. In other words, you can access the contents of the folder asset only through a connection in the connection service. The connection can be to any external data store such as DashDB, Salesforce.com,IBM's Cloud Object Storage, etc. You must specify the `connection_id` and the `connection_path` within the `folder_asset` json object. <br/><br/>Folder assets can also be local to the catalog or project, similar to local or referenced data attachments. For such a folder asset you don't need the connection_id in the `folder_asset` json. You only need to provide the connection_path. The API can use it's internal connection to asset storage associated with the catalog/project/space (Cloud Object Storage in IBM Cloud, or Asset Files storage in CPD) for accessing that folder.<br/><br/>A connection path is like the path of a folder or a directory in a file system. Using IBM Cloud Object Storage as an example, a `connection_path` for a folder object might be `/Bucket1/monthly_data_collection/March`. Any objects falling under that path are part of the folder asset. This API cannot show you those files directly. Instead, you can use your IBM Cloud Object Storage connection to traverse to that folder location and retrieve the files.

Request

Request Body

CatalogFolderAsset

Folder Asset Metadata

metadata

CatalogAssetMetadata

AssetMetadata Model

name

Required *

string

Choose Any Name for your Asset

asset_id

string

Unique identifier for the asset within this request for transient mapping purposes. Not persisted with the asset. Use source_system_history to retain for future reference

description

string

A longer description describes an asset.

tags

array

asset_type

Required *

string

asset type

origin_country

string

resource_key

string

identity_key

string

rov

object

asset_category

Required *

string

source_system

object

Source System Info

child_source_systems

array

source_system_history

array

History of external repository assets that were the source of an imported/synced/rehomed asset.

isManagedAsset

boolean

entity

Required *

object

attachments

array

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

201 - Created

metadata

CatalogResponseAssetMetadata

entity

object

href

string

attachments

CatalogAttachment

asset_id

string

input_asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get a folder asset

GET /v2/folder_assets/{asset_id}

Use this API to retrieve metadata about a folder asset.

Request

Path Parameters

asset_id

Required *

string

Enter the id of the folder asset whose metadata you want to retrieve.

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get a signed URL of an item to be downloaded

GET /v2/folder_assets/{asset_id}/contents

If you have created folder assets for things that you store in IBM Cloud Object Storage, you can download individual contents of that folder. Every item within a folder has a path within that folder. For example there may be a folder asset in IBM Cloud Object Storage whose path is `/bucket1/retail_sales/cosmetics`. Within that folder, there may be several individual files. You can download these files with this API. When you call the API, you will receive a URL that, when you invoke it with a GET HTTP command, you can download a file that is within that folder.

Request

Path Parameters

asset_id

Required *

string

Enter the id of the folder asset whose content you want to download.

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

path

Required *

string

The path to the object from where the folder leaves off. For example if your folder path is `/Bucket1/homedecore` and your object path is `/bathrooms/sinkaccessories/soapdish1000.jpg` then the API will return a signed URL that includes the full object key `/Bucket1/homedecore/bathrooms/sinkaccessories/soapdish1000.jpg`.

content_type

string

The type of content you will download. Default is `application/octet-stream`

content_disposition

string

content_disposition specifies how you want the content downloaded. The default is as an attachment (i.e. a separate file).

Response

200 - OK

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

List all assets in the trash (Marked for delete)

GET /v2/trashed_assets

Retrieve all assets in the trash (Marked for delete.

Request

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

older_than

string

older than the given timestamp. Format: "yyyy-MM-dd'T'hh:mm:ss[.sss]X" Example '2017-11-23T00:00:00-12', '2017-11-23T23:59:59.999Z', etc.

newer_than

string

newer than the given timestamp. Format: "yyyy-MM-dd'T'hh:mm:ss[.sss]X" Example '2017-11-23T00:00:00-12', '2017-11-23T23:59:59.999Z', etc.

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

limit

integer

limit

bookmark

string

bookmark

Response

201 - Created

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get count of all assets in the trash (Marked for delete)

GET /v2/trashed_assets/count

Get count of all assets in the trash (Marked for delete.

Request

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

200 - OK

trashed_assets_count

integer

Count of trashed assets

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Delete all assets from trash

DELETE /v2/trashed_assets/purge_all

Delete all assets from trash.

If number of assets in trash is less than or equal to 20 , the assets will be deleted synchrnonously and response will be 204 - No Content.

If number of assets in trash is more than 20, the assets will be deleted asynchrnonously, response will be 202 - Accepted and the status can be tracked using `/v2/trashed_assets/count`.

Request

Path Parameters

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

202 - Accepted

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Get a soft-deleted object from trash

GET /v2/trashed_assets/{asset_id}

Get a soft-deleted object from trash.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

allow_metadata_on_dpr_deny

boolean

Whether to allow access to metadata when the evaluation outcome of data protection rules is Deny.

evaluate_data_policies

boolean

Whether to evaluate data policies. Default value is True. When False, data policy is not evaluated. When this query parameter is false, allow_metadata_on_dpr_deny should be true.

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Delete an asset from the trash

DELETE /v2/trashed_assets/{asset_id}

Purge an asset from the trash.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

Response

204 - No Content

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

Restore an asset from the trash

POST /v2/trashed_assets/{asset_id}/restore

Restore an asset from the trash.

Request

Path Parameters

asset_id

Required *

string

asset_id

Query Parameters

catalog_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

project_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

space_id

string

You must provide either a catalog id, a project id, or a space id, but not more than one

exclude

string

Exclude columns from the asset result. Available value: columns. Default value is empty, which will return the complete asset, including the columns.

hide_deprecated_response_fields

boolean

Defaults to false. If true, deprecated fields are not included in the response. This parameter is provided as a way to check compatibility with future releases and remove duplicated information from responses. It has not been implemented for all deprecated fields. The primary fields that are omitted are collaborator_ids in the asset metadata rov and the owner_id field in the asset metadata.

duplicate_action

string

Action to take if the changes to an asset would make it a duplicate to other assets. `IGNORE` means the call will continue and update the asset anyway; as a result, the asset will become a duplicate to other assets. `REJECT` means the call will fail and the asset will not be changed. No value means the duplicate_action specified in catalogs/projects/spaces will be used.

Response

200 - OK

metadata

CatalogResponseAssetMetadata

entity

object

attachments

array

Depending on the API, either asset_attachments or attachments will be present.

href

string

asset_id

string

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal Server Error

List defined connections

GET /v2/connections

Lists defined connections.

Connections created with shared credentials will return secrets such as database passwords and API keys in clear text. Such secrets are stored encrypted but will be decrypted by the API when retrieved by the caller in order to access the data source defined by the connection. Clear text credentials are allowed because it is understood that the caller has already been explicitly added as a collabaorator in the project or catalog in which the connection is stored and is thus implicitly permitted access to the credentials required to connect to a data source.

Connections created with personal credentials will only display clear text credentials to the same user who provided them.

Use the following parameters to sort the results:

  • entity.name - ?_sort=+entity.name
  • metadata.create_time - ?_sort=-metadata.create_time

Use the following parameters to filter the results:

  • entity.name - ?entity.name=MyConnection
  • entity.datasource_type - ?entity.datasource_type=<asset_id>
  • entity.data_source_definition_asset_id - ?entity.data_source_definition_asset_id=<dsd_asset_id>
  • entity.context - ?entity.context=source
  • entity.properties - ?entity.properties={"name":"value"}
  • entity.flags - ?entity.flags=+personal_credentials
  • metadata.creator_id - ?metadata.creator_id=userid

Filtering is done by specifying the fields to filter on.

To filter on the properties of a connection, the exact values to compare must be provided in the entities.properties field and all values supplied must exactly match a property of a connection.

The entity.flags field specifies the flags a connection can have to be included in the list results. By default, all connections with no flags are returned.

Adding the name of a flag to entity.flags will add the connections with that flag to the list results. The name can be optionally prefixed with a plus sign (+) to indicate that it is being added.

Adding the name of a flag to entity.flags with a minus sign (-) prefix will remove those connections with that flag from the list results. All additions are done before the subtractions.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

Query Parameters

sort

string

The field to sort the results on, including whether to sort ascending (+) or descending (-), for example, sort=-metadata.create_time

start

string

The page token indicating where to start paging from.

limit

integer

The limit of the number of items to return, for example limit=50. If not specified a default of 100 will be used.

metadata.creator

string

The creator of the connection.

entity.name

string

The name of the connection.

entity.datasource_type

string

The data source type of the connection. To specify multiple data source types, use a comma-separated string, such as entity.datasource_type=<asset_id>,<asset_id>.

entity.data_source_definition_asset_id

string

The data source definition asset id assigned to the connection. To specify multiple data source definition asset ids, use a comma-separated string, such as entity.data_source_definition_asset_id=<dsd_asset_id>,<dsd_asset_id>.

entity.context

string

The context of the connection. Can be one of "source", "target", or "source,target".

entity.properties

string

The properties of the connection that must match for the connection to be included in the list.

entity.flags

string

A comma separated list of flags that must be present for the connection to be included in the list. If not provided, only connections with no flags will be returned.

interaction_properties

boolean

Whether to return information about source and target interaction properties.

decrypt_secrets

boolean

Whether to return decrypted secrets for unrestricted connections.

include_properties

boolean

Whether to return information about connection and interaction properties.

entity.persona

string

Specify the id or the name of a data source type persona that the connection should present. If the data source type does not support alternate personas, then the connection's data source type is its only persona.

offset

integer

The 0-based index of the first result to return, for example, offset=200. If not specified, the default offset of 0 is used.

Response

200 - Connections with metadata.

resources

array

List of connections

first

HrefModel

prev

HrefModel

next

HrefModel

last

HrefModel

offset

integer

The number of assets skipped before this page.

total_count

integer

The total number of assets available.

401 - You are not authorized to list the defined connections.

403 - You are not permitted to perform this action.

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The defined connections cannot be listed.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Define connection

POST /v2/connections

Defines a connection.

By default, a connection is created with shared credentials. Though credentials' secrets are stored encrypted, all credentials including secrets will be visible in clear text to API users who retrieve the connection and who are collaborators of the project or catalog in which a connection with shared credentials has been created.

Alternatively, a connection can be created with personal credentials by using the personal_credentials flag. The credentials' secrets will be visible only to the user who created the connection.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Request Body

ConnectionsConnectionEntity

The definition of the connection.

datasource_type

Required *

string

The id or the name of the data source type to connect to. For example "cfdcb449-1204-44ba-baa6-9a8a878e6aa7" or "db2".

data_source_definition_asset_id

string

The id of the data source definition asset related to connection. For example "cfdcb449-1204-44ba-baa6-9a8a878e6aa7".

data_source_definition_asset_name

string

The name of the data source definition asset related to connection. For example "Data privacy profile for DB2".

data_source_definition_searchable

string

The concatenation of values of conection properties identified as data source definition asset identity properties. For example "host1.fyre.ibm.com|12212|BLUEDB".

derived_properties

ConnectionsDerivedProperties

Properties that are not stored and obtained from CAMS, but calculated/derived on-the-fly by reading operation

data_source_definition_id

string

Id of an assigned Data Source Definition Asset

data_source_identity_properties

array

Identity properties that consititute id of the assigned datasource_type.

data_source_identity_mapping

object

Mapping of connection properties to CAMS query parameters.

description

string

The description of the connection.

directory_asset

ConnectionsDirectoryAsset

Folder that the connection asset lives in.

path

string

Folder ID that the connection asset lives in.

name

Required *

string

The name of the connection.

ref_catalog_id

string

The ID of the catalog that this connection refers to for properties values.

ref_asset_id

string

The ID of the connection in reference catalog that this connection refers to for properties values.

flags

array

Specifies how a connection is to be treated internally.

origin_country

string

Country which data originated from. - ISO 3166 Country Codes.

owner_id

string

Owner or creator of connection. Provided when a service ID token is used to create connection.

rov

ConnectionsConnectionRov

Rules of visibility for connections.

mode

integer

The Rules of Visibility mode. Value can be:

| mode | description| | 0 | Connection is searchable and viewable by everyone with access to the catalog or project associated with this connection | | 8 | Connection is searchable by everyone and cannot be viewed unless the user has proper view permissions | | 16 | Connection is searchable by users with proper view permissions |

member_roles

object

Contains map of key as user_iam_id and value as member_roles

properties

ConnectionsConnectionProperties

Connection properties.

interaction_properties

ConnectionsConnectionInteractionProperties

Interaction properties allowed for a connection.

source

array

The properties that can be set for a source interaction.

target

array

The properties that can be set for a target interaction.

source_system

ConnectionsCommonCustomObject

Custom data to be associated with a given object

source_system_history

array

asset_category

string

The asset category

child_source_systems

array

tags

array

location_definition

ConnectionsLocationDefinition

Indicates the location used by this connection.

physical_location_code

string

The code of the physical location.

sovereign_location_code

string

The code of the sovereign location.

resource_key

string

Resource key that should be set in connection asset metadata record instead of using a calculated one by the service.

Path Parameters

Query Parameters

test

boolean

Whether to test the connection before saving it. By default an attempt to establish a connection will be made, and the connection will not be saved if the connection cannot be established.

persist

boolean

Whether to persist assets or changes on assets. If set to false, it makes the service to perform all the actions on the way, execute testing, inject properties (like satellite properties or vault properties), if applicable, and then return the object as it would look like if persisted + with all the usual additioanl elements of response properties returned via Java API (like interaction_properties), but metadata record itself that gets filled with properties from the response from CAMS service is not filled, so it only contains those properties that are set directly from the entity taken from payload.

Response

201 - The connection was created.

metadata

ConnectionsConnectionAssetSystemMetadata

System metadata about an asset

entity

ConnectionsConnectionEntity

The connection definition.

400 - The connection test failed. See the error message for details.

trace

string

errors

array

401 - You are not authorized to define a connection.

403 - You are not permitted to perform this action.

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. A connection was not created.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Get connection

GET /v2/connections/{connection_id}

Gets details of a specific connection definition.

Connections created with shared credentials will return secrets such as database passwords and API keys in clear text. Such secrets are stored encrypted but will be decrypted by the API when retrieved by the caller in order to access the data source defined by the connection. Clear text credentials are allowed because it is understood that the caller has already been explicitly added as a collabaorator in the project or catalog in which the connection is stored and is thus implicitly permitted access to the credentials required to connect to a data source.

Connections created with personal credentials will only display clear text credentials to the same user who provided them.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

Query Parameters

entity.product

string

Specify the product the data source type must support to be returned. The available products are 'ai_factsheet', 'autoai', 'catalog', 'cde', 'context_hub', 'cpd', 'dashboardsonprem', 'datarefinery', 'datastage', 'datastage_scapi', 'decision_optimization', 'deployments', 'dph', 'dqr', 'dv', 'dvaas', 'dvaas_ga', 'dvonprem', 'federated_learning', 'governance', 'igc', 'instructlab', 'manta', 'manta_legacy', 'masking_flow', 'mde', 'mdi', 'notebook', 'orchestration_pipelines', 'replication', 'rstudio', 'spss_modeler', 'streamsets', 'udi' and 'wxbia'. If no entity.product is specified, no filtering is applied. To specify multiple products, use a comma-separated string, such as entity.product=catalog,datastage. To return datasource types for all products without needing to list them explicitly, use entity.product=all.

interaction_properties

boolean

Whether to return information about source and target interaction properties.

decrypt_secrets

boolean

Whether to return decrypted secrets for unrestricted connections.

functional_id

string

The function ID that, when specified, identifies which functional credentials to use for this operation instead of personal or shared credentials.

entity.persona

string

Specify the id or the name of a data source type persona that the connection should present. If the data source type does not support alternate personas, then the connection's data source type is its only persona.

Response

200 - The connection object.

metadata

ConnectionsConnectionAssetSystemMetadata

System metadata about an asset

entity

ConnectionsConnectionEntity

The connection definition.

401 - You are not authorized to get details about the connection.

403 - You are not permitted to perform this action.

404 - The connection cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The connection definition details cannot be retrieved.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Delete connection

DELETE /v2/connections/{connection_id}

Deletes a connection definition. This call does not check whether the connection is used by activities, data sets or other assets. The caller must check this before deleting a connection.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Response

204 - The connection was deleted.

401 - You are not authorized to delete a connection.

403 - You are not permitted to perform this action.

404 - The connection cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The connection was not deleted.

trace

string

errors

array

Update connection

PATCH /v2/connections/{connection_id}

Updates the definition of a connection.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Request Body

Fields to update within the connection.

Path Parameters

Query Parameters

test

boolean

Whether to test the connection before saving it. By default an attempt to establish a connection will be made, and the connection will not be saved if the connection cannot be established.

persist

boolean

Whether to persist assets or changes on assets. If set to false, it makes the service to perform all the actions on the way, execute testing, inject properties (like satellite properties or vault properties), if applicable, and then return the object as it would look like if persisted + with all the usual additioanl elements of response properties returned via Java API (like interaction_properties), but metadata record itself that gets filled with properties from the response from CAMS service is not filled, so it only contains those properties that are set directly from the entity taken from payload.

functional_id

string

The function ID that, when specified, identifies which functional credentials to use for this operation instead of personal or shared credentials.

Response

200 - The updated connection definition object.

datasource_type

string

The id or the name of the data source type to connect to. For example "cfdcb449-1204-44ba-baa6-9a8a878e6aa7" or "db2".

data_source_definition_asset_id

string

The id of the data source definition asset related to connection. For example "cfdcb449-1204-44ba-baa6-9a8a878e6aa7".

data_source_definition_asset_name

string

The name of the data source definition asset related to connection. For example "Data privacy profile for DB2".

data_source_definition_searchable

string

The concatenation of values of conection properties identified as data source definition asset identity properties. For example "host1.fyre.ibm.com|12212|BLUEDB".

derived_properties

ConnectionsDerivedProperties

Properties that are not stored and obtained from CAMS, but calculated/derived on-the-fly by reading operation

description

string

The description of the connection.

directory_asset

ConnectionsDirectoryAsset

Folder that the connection asset lives in.

name

string

The name of the connection.

ref_catalog_id

string

The ID of the catalog that this connection refers to for properties values.

ref_asset_id

string

The ID of the connection in reference catalog that this connection refers to for properties values.

flags

array

Specifies how a connection is to be treated internally.

origin_country

string

Country which data originated from. - ISO 3166 Country Codes.

owner_id

string

Owner or creator of connection. Provided when a service ID token is used to create connection.

rov

ConnectionsConnectionRov

Rules of visibility for connections.

properties

ConnectionsConnectionProperties

Connection properties.

interaction_properties

ConnectionsConnectionInteractionProperties

Interaction properties allowed for a connection.

source_system

ConnectionsCommonCustomObject

Custom data to be associated with a given object

source_system_history

array

asset_category

string

The asset category

child_source_systems

array

tags

array

location_definition

ConnectionsLocationDefinition

Indicates the location used by this connection.

resource_key

string

Resource key that should be set in connection asset metadata record instead of using a calculated one by the service.

400 - The connection test failed. See the error message for details.

trace

string

errors

array

401 - You are not authorized to update the connection definition.

403 - You are not permitted to perform this action.

404 - The connection cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The connection definition was not updated.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Discover assets

POST /v2/connections/assets

Discovers assets from the data source accessed via a connection description.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Request Body

ConnectionsConnectionEntity

The connection definition.

datasource_type

Required *

string

The id or the name of the data source type to connect to. For example "cfdcb449-1204-44ba-baa6-9a8a878e6aa7" or "db2".

data_source_definition_asset_id

string

The id of the data source definition asset related to connection. For example "cfdcb449-1204-44ba-baa6-9a8a878e6aa7".

data_source_definition_asset_name

string

The name of the data source definition asset related to connection. For example "Data privacy profile for DB2".

data_source_definition_searchable

string

The concatenation of values of conection properties identified as data source definition asset identity properties. For example "host1.fyre.ibm.com|12212|BLUEDB".

derived_properties

ConnectionsDerivedProperties

Properties that are not stored and obtained from CAMS, but calculated/derived on-the-fly by reading operation

data_source_definition_id

string

Id of an assigned Data Source Definition Asset

data_source_identity_properties

array

Identity properties that consititute id of the assigned datasource_type.

data_source_identity_mapping

object

Mapping of connection properties to CAMS query parameters.

description

string

The description of the connection.

directory_asset

ConnectionsDirectoryAsset

Folder that the connection asset lives in.

path

string

Folder ID that the connection asset lives in.

name

Required *

string

The name of the connection.

ref_catalog_id

string

The ID of the catalog that this connection refers to for properties values.

ref_asset_id

string

The ID of the connection in reference catalog that this connection refers to for properties values.

flags

array

Specifies how a connection is to be treated internally.

origin_country

string

Country which data originated from. - ISO 3166 Country Codes.

owner_id

string

Owner or creator of connection. Provided when a service ID token is used to create connection.

rov

ConnectionsConnectionRov

Rules of visibility for connections.

mode

integer

The Rules of Visibility mode. Value can be:

| mode | description| | 0 | Connection is searchable and viewable by everyone with access to the catalog or project associated with this connection | | 8 | Connection is searchable by everyone and cannot be viewed unless the user has proper view permissions | | 16 | Connection is searchable by users with proper view permissions |

member_roles

object

Contains map of key as user_iam_id and value as member_roles

properties

ConnectionsConnectionProperties

Connection properties.

interaction_properties

ConnectionsConnectionInteractionProperties

Interaction properties allowed for a connection.

source

array

The properties that can be set for a source interaction.

target

array

The properties that can be set for a target interaction.

source_system

ConnectionsCommonCustomObject

Custom data to be associated with a given object

source_system_history

array

asset_category

string

The asset category

child_source_systems

array

tags

array

location_definition

ConnectionsLocationDefinition

Indicates the location used by this connection.

physical_location_code

string

The code of the physical location.

sovereign_location_code

string

The code of the sovereign location.

resource_key

string

Resource key that should be set in connection asset metadata record instead of using a calculated one by the service.

Path Parameters

Query Parameters

path

Required *

string

Path of the asset.

limit

integer

The limit of the number of items to return, for example limit=50. If not specified a default of 100 will be used.

offset

integer

The 0-based index of the first result to return, for example, offset=200. If not specified, the default offset of 0 is used.

fetch

string

Specify whether to return the asset's metadata, the asset's data, interaction properties, connection properties, or data source type. If not specified, metadata is used by default. This parameter only applies when requesting details about a data set. To specify multiple fetch values, use a comma-separated string, such as fetch=data,metadata,interaction,connection,datasource_type.

detail

boolean

Specify whether to return additional asset-specific details. If not specified, these details are not returned.

context

string

Specify whether assets are discovered for the purpose of reading (source) or writing (target). If not specified, source is used by default.

properties

string

A JSON object containing a set of properties to configure aspects of the asset browsing.

filters

string

A JSON object containing a set of properties to define filtering of the assets to be returned.

Response

200 - The discovered assets.

description

string

A page from a collection of discovered assets.

path

string

The path of the asset.

catalog_path

string

The catalog path of the asset. For catalog-based connectors, the physical storage path is set in `path` and the original input path is set in this field.

id

string

An ID for the asset.

properties

ConnectionsDiscoveredAssetsProperties

Properties defining the returned assets.

asset_types

array

Discovered types

assets

array

Discovered assets

fields

array

Discovered fields

datasource_type

ConnectionsDatasourceType

The definition of a data source type.

connection_properties

ConnectionsConnectionProperties

Connection properties.

interaction_properties

ConnectionsDiscoveredAssetInteractionProperties

The interaction properties needed to find the asset.

extended_metadata

array

Extended metadata properties

data

object

The data returned when the fetch parameter contains the value "data".

details

ConnectionsDiscoveredAssetDetails

Details about a discovered asset.

first

HrefModel

prev

HrefModel

next

HrefModel

last

HrefModel

offset

integer

The number of assets skipped before this page.

total_count

integer

The total number of assets available.

logs

array

Log events created during the discovery of the assets.

401 - You are not authorized to discover assets.

403 - You are not permitted to perform this action.

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. No assets were found.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Discover assets

GET /v2/connections/{connection_id}/assets

Discovers assets from the data source accessed via the connection.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

connection_id

Required *

string

The ID of the connection.

Query Parameters

path

Required *

string

Path of the asset.

catalog_id

string

The ID of the catalog to use. catalog_id, project_id, or space_id is required.

project_id

string

The ID of the project to use. catalog_id, project_id, or space_id is required.

space_id

string

The ID of the space to use. catalog_id, project_id, or space_id is required.

userfs

boolean

true for a project needs assets managed by the /userfs API, i.e. if it has git integration

data_asset_id

string

The ID of the data asset.

data_asset_catalog_id

string

The ID of the catalog that contains the data asset.

data_asset_project_id

string

The ID of the project that contains the data asset.

data_asset_space_id

string

The ID of the space that contains the data asset.

limit

integer

The limit of the number of items to return, for example limit=50. If not specified a default of 100 will be used.

offset

integer

The 0-based index of the first result to return, for example, offset=200. If not specified, the default offset of 0 is used.

fetch

string

Specify whether to return the asset's metadata, the asset's data, interaction properties, connection properties, or data source type. If not specified, metadata is used by default. This parameter only applies when requesting details about a data set. To specify multiple fetch values, use a comma-separated string, such as fetch=data,metadata,interaction,connection,datasource_type.

detail

boolean

Specify whether to return additional asset-specific details. If not specified, these details are not returned.

context

string

Specify whether assets are discovered for the purpose of reading (source) or writing (target). If not specified, source is used by default.

properties

string

A JSON object containing a set of properties to configure aspects of the asset browsing.

filters

string

A JSON object containing a set of properties to define filtering of the assets to be returned.

Response

200 - The discovered assets.

description

string

A page from a collection of discovered assets.

path

string

The path of the asset.

catalog_path

string

The catalog path of the asset. For catalog-based connectors, the physical storage path is set in `path` and the original input path is set in this field.

id

string

An ID for the asset.

properties

ConnectionsDiscoveredAssetsProperties

Properties defining the returned assets.

asset_types

array

Discovered types

assets

array

Discovered assets

fields

array

Discovered fields

datasource_type

ConnectionsDatasourceType

The definition of a data source type.

connection_properties

ConnectionsConnectionProperties

Connection properties.

interaction_properties

ConnectionsDiscoveredAssetInteractionProperties

The interaction properties needed to find the asset.

extended_metadata

array

Extended metadata properties

data

object

The data returned when the fetch parameter contains the value "data".

details

ConnectionsDiscoveredAssetDetails

Details about a discovered asset.

first

HrefModel

prev

HrefModel

next

HrefModel

last

HrefModel

offset

integer

The number of assets skipped before this page.

total_count

integer

The total number of assets available.

logs

array

Log events created during the discovery of the assets.

401 - You are not authorized to discover assets in the data source accessed through the connection.

403 - You are not permitted to perform this action.

404 - The connection cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. No assets were discovered in the data source.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Discover data asset

GET /v2/connections/assets/{data_asset_id}

Discover a data asset.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

data_asset_id

Required *

string

The ID of the data asset.

Query Parameters

catalog_id

string

The ID of the catalog to use. catalog_id, project_id, or space_id is required.

project_id

string

The ID of the project to use. catalog_id, project_id, or space_id is required.

space_id

string

The ID of the space to use. catalog_id, project_id, or space_id is required.

userfs

boolean

true for a project needs assets managed by the /userfs API, i.e. if it has git integration

limit

integer

The limit of the number of items to return, for example limit=50. If not specified a default of 100 will be used.

offset

integer

The 0-based index of the first result to return, for example, offset=200. If not specified, the default offset of 0 is used.

fetch

string

Specify whether to return the asset's metadata, the asset's data, interaction properties, connection properties, or data source type. If not specified, metadata is used by default. This parameter only applies when requesting details about a data set. To specify multiple fetch values, use a comma-separated string, such as fetch=data,metadata,interaction,connection,datasource_type.

detail

boolean

Specify whether to return additional asset-specific details. If not specified, these details are not returned.

context

string

Specify whether assets are discovered for the purpose of reading (source) or writing (target). If not specified, source is used by default.

properties

string

A JSON object containing a set of properties to configure aspects of the asset browsing.

filters

string

A JSON object containing a set of properties to define filtering of the assets to be returned.

path

string

Path of the asset.

Response

200 - The discovered asset.

description

string

A page from a collection of discovered assets.

path

string

The path of the asset.

catalog_path

string

The catalog path of the asset. For catalog-based connectors, the physical storage path is set in `path` and the original input path is set in this field.

id

string

An ID for the asset.

properties

ConnectionsDiscoveredAssetsProperties

Properties defining the returned assets.

asset_types

array

Discovered types

assets

array

Discovered assets

fields

array

Discovered fields

datasource_type

ConnectionsDatasourceType

The definition of a data source type.

connection_properties

ConnectionsConnectionProperties

Connection properties.

interaction_properties

ConnectionsDiscoveredAssetInteractionProperties

The interaction properties needed to find the asset.

extended_metadata

array

Extended metadata properties

data

object

The data returned when the fetch parameter contains the value "data".

details

ConnectionsDiscoveredAssetDetails

Details about a discovered asset.

first

HrefModel

prev

HrefModel

next

HrefModel

last

HrefModel

offset

integer

The number of assets skipped before this page.

total_count

integer

The total number of assets available.

logs

array

Log events created during the discovery of the assets.

401 - You are not authorized to discover the asset.

403 - You are not permitted to perform this action.

404 - The asset cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. No assets were discovered in the data source.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

List actions

GET /v2/connections/{connection_id}/actions

Lists all supported actions for the connection.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

connection_id

Required *

string

The ID of the connection.

Query Parameters

catalog_id

string

The ID of the catalog to use. catalog_id, project_id, or space_id is required.

project_id

string

The ID of the project to use. catalog_id, project_id, or space_id is required.

space_id

string

The ID of the space to use. catalog_id, project_id, or space_id is required.

userfs

boolean

true for a project needs assets managed by the /userfs API, i.e. if it has git integration

Response

200 - The actions supported for the connection.

actions

array

The actions supported for the data source.

401 - You are not authorized to list the actions for the connection.

403 - You are not permitted to perform this action.

404 - The connection cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The actions for the connection cannot be listed.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Perform action

PUT /v2/connections/{connection_id}/actions/{action_name}

Performs an action on the data source accessed using the connection.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Request Body

ConnectionsConnectionActionConfiguration

The perform action request configuration.

Path Parameters

connection_id

Required *

string

The ID of the connection.

action_name

Required *

string

The name of the action to be performed. This list is expanded over time. The current actions are:

  • get_datasource_info - to get Data source info of a datasource.
  • get_dsd_details - to obtain Data Source Definition Asset details from a connector.
  • get_oauth2_tokens - to get refresh and authorization tokens for sources that support OAuth2.
  • get_record_count - to get the number of records available for the specified asset.
  • get_approx_record_count - to get the approximate number of records available for the specified asset.
  • get_signed_url - to get a signed URL for accessing a datasource.
  • test - to check if a connection can be established to the datasource.
  • validate - to validate the connection properties without establishing a connection.

functional_id behaviour:
When `functional_id` is provided, it is only applied for actions that establish an actual datasource connection: `test`, `get_datasource_info`, `get_oauth2_tokens`, `get_record_count`, `get_approx_record_count`, `get_signed_url`.

Query Parameters

catalog_id

string

The ID of the catalog to use. catalog_id, project_id, or space_id is required.

project_id

string

The ID of the project to use. catalog_id, project_id, or space_id is required.

space_id

string

The ID of the space to use. catalog_id, project_id, or space_id is required.

userfs

boolean

true for a project needs assets managed by the /userfs API, i.e. if it has git integration

functional_id

string

The function ID that, when specified, identifies which functional credentials to use for this operation instead of personal or shared credentials.

Response

200 - Any output produced by the action.

400 - The perform action request is invalid.

trace

string

errors

array

401 - You are not authorized to perform an action on a data source accessed through the connection.

403 - You are not permitted to perform this action.

404 - The connection cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. No action was performed on the data source.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Download a custom JDBC driver jar file

GET /v2/connections/files/{file_name}

Download a custom JDBC driver jar file

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

file_name

Required *

string

The name of custom JDBC driver jar file to download

Query Parameters

hash

Required *

string

The hash of custom JDBC driver jar file to download

Response

200 - The content of custom JDBC driver jar file.

401 - You are not authorized to get content of the custom JDBC driver jar file.

403 - You are not permitted to perform this action.

404 - The custom JDBC driver jar file cannot be found.

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The custom JDBC driver jar file cannot be retrieved.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Upload a custom JDBC driver jar file (deprecated - use /v2/connections/streamed_files instead)

POST /v2/connections/files/{file_name}

Upload a custom JDBC driver jar file and get back a signed handle in 'Location' header with a hash.

DEPRECATED: This endpoint loads the entire file into memory. Use `/v2/connections/streamed_files/{file_name}` instead for efficient streaming uploads of large files.

Request

Request Body

Path Parameters

file_name

Required *

string

The name of custom JDBC driver jar file to upload

Query Parameters

Response

201 - Uploaded custom JDBC driver jar file.

401 - You are not authorized to get content of the custom JDBC driver jar file.

403 - You are not permitted to perform this action.

404 - The custom JDBC driver jar file cannot be found.

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The custom JDBC driver jar file cannot be retrieved.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Delete a custom JDBC driver jar file

DELETE /v2/connections/files/{file_name}

Delete a custom JDBC driver jar file from internal repository

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

file_name

Required *

string

The name of custom JDBC driver jar file to delete

Query Parameters

hash

Required *

string

The hash of custom JDBC driver jar file to delete

Response

200 - The custom JDBC driver jar file was deleted.

401 - You are not authorized to get content of the custom JDBC driver jar file.

403 - You are not permitted to perform this action.

404 - The file cannot be found.

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The custom JDBC driver jar file cannot be retrieved.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

List custom JDBC drivers jar files

GET /v2/connections/files

List JDBC drivers jar files available in the internal repository that were uploaded by a customer (the drivers shipped along with connector library are not included here).

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

Query Parameters

limit

integer

The limit of the number of items to return, for example limit=50. If not specified a default of 100 will be used.

offset

integer

The 0-based index of the first result to return, for example, offset=200. If not specified, the default offset of 0 is used.

Response

200 - List of available custom JDBC drivers jar files

resources

array

List of uploaded files

offset

integer

The number of assets skipped before this page.

total_count

integer

The total number of assets available.

401 - You are not authorized to get the list of custom JDBC drivers jar files.

403 - You are not permitted to perform this action.

404 - The custom JDBC driver jar file cannot be found.

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The custom JDBC driver jar file cannot be retrieved.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

List defined types of data sources

GET /v2/datasource_types

Gets all defined types of data sources.

The following fields are available for use with the sort parameter:

  • entity.label - The name of the data source type in a readable form.
  • entity.type - The major type of the data source type.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

Query Parameters

sort

string

The field to sort the results on, including whether to sort ascending (+) or descending (-), for example, sort=-metadata.create_time

offset

integer

The 0-based index of the first result to return, for example, offset=200. If not specified, the default offset of 0 is used.

limit

integer

The limit of the number of items to return, for example limit=50. If not specified a default of 100 will be used.

connection_properties

boolean

Whether to return information about connection properties.

interaction_properties

boolean

Whether to return information about source and target interaction properties.

discovery

boolean

Whether to return information about discovery capabilities.

actions

boolean

Whether to return information about supported actions.

entity.environment

string

Specify the environment the data source types must support to be included in the returned list. The available environments are 'private', 'public' 'spark', 'streams', 'java', 'local' and 'external'. If no entity.environment is specified, the default for service's deploy environment is used. To specify multiple environments, use a comma-separated string, such as entity.environment=private,public. To return datasource types for all environments without needing to list them explicitly, use entity.environment=all.

entity.perspective

string

Specify the perspective the data source types must support to be included in the returned list. The available perspectives are 'ch', 'cpd', 'wx'. To specify multiple perspectives, use a comma-separated string, such as entity.perspective=cpd,wx. To return datasource types for all perspectives without needing to list them explicitly, omit entity.perspective parameter or provide entity.perspective=all.

entity.product

string

Specify the product the data source type must support to be returned. The available products are 'ai_factsheet', 'autoai', 'catalog', 'cde', 'context_hub', 'cpd', 'dashboardsonprem', 'datarefinery', 'datastage', 'datastage_scapi', 'decision_optimization', 'deployments', 'dph', 'dqr', 'dv', 'dvaas', 'dvaas_ga', 'dvonprem', 'federated_learning', 'governance', 'igc', 'instructlab', 'manta', 'manta_legacy', 'masking_flow', 'mde', 'mdi', 'notebook', 'orchestration_pipelines', 'replication', 'rstudio', 'spss_modeler', 'streamsets', 'udi' and 'wxbia'. If no entity.product is specified, no filtering is applied. To specify multiple products, use a comma-separated string, such as entity.product=catalog,datastage. To return datasource types for all products without needing to list them explicitly, use entity.product=all.

product_selector_scope

string

Scope of ui-only product selector property. Applies to output under common_properties key. Genreated ui contains additional checkbox to switch between first of the requested products and the rest. If only a single one is given it switches between that product and remaining products supported by the data source.

generate_transitive_conditions

boolean

Whether to generate extra conditions in common properties format that will make them behave in a transitive manner under default configuration options of Elyra i.e. when a condition is part of a chain it will enable/disable everything down the chain rather than just hiding the control. Support for this option has been removed. Option itself was not removed to preserve binary compatibility but it no longer has any effect.

show_data_source_definitions_only

boolean

Whether to filter the list of available datasource types and return only those that have their dataSourceDefinitionId parameter set and its value is the same as the value of the datasource type id. That means that returned are only datasource types which should have proper deep enforcement in Data Privacy Service supported and are the canonical types (not the connectors that use the same engine, but have a different flavor).

show_data_source_definition_section

boolean

Whether to show data source definition asset feature metadata properties or not.

origin_filter

string

Filter datasource types by connector origin. Valid values:

  • `forge`: connectors registered from Connector Forge.
  • `library`: built-in connectors.
  • `app_connect`: AppConnect-registered connectors.
  • `custom`: other custom-registered connectors.

If not specified, all datasource types are returned.

Response

200 - Collection of data source types.

resources

array

List of data source types

fips_noncompliant_resources

object

Contains map of key as resourceId and value as resourceName

first

HrefModel

prev

HrefModel

next

HrefModel

last

HrefModel

offset

integer

The number of assets skipped before this page.

total_count

integer

The total number of assets available.

401 - You are not authorized to list the defined types of data sources.

403 - You are not permitted to perform this action.

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. No data source types were retrieved.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Define data source type

POST /v2/datasource_types

Defines a data source type.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.1

Request

Request Body

ConnectionsCustomDatasourceTypeEntity

The definition of the data source type.

flight_info

ConnectionsCustomFlightServiceInfo

Information needed to connect to a custom Arrow Flight service.

flight_uri

string

The URI of the Arrow Flight service.

ssl_certificate

string

The SSL certificate of the Flight service.

ssl_certificate_validation

boolean

Validate that the SSL certificate returned by the Flight service is trusted.

base_datasource_type

string

The UUID of the base datasource type for this custom datasource type

name

string

A unique name, such as "dashdb".

locale

string

The locale of labels and descriptions.

label

string

A localized, displayable label such as, "IBM dashDB".

description

string

A localized, displayable description of the data source.

connectorGroup

string

A unique connectorGroup for group of connectors, such as "ibm_db2".

connectorGroupLabel

string

A localized, displayable connectorGrouplabel, such as "IBM Db2".

allowed_as_source

boolean

Whether the data source can be accessed as a source of data. That is, data can be read from the data source.

allowed_as_target

boolean

Whether the data source can be accessed as a target. That is, data can be written to the data source.

discovery

ConnectionsDatasourceTypeDiscovery

The definition of the discovery features of the data source type.

top_level_filters

array

Top level filters

asset_types

array

Asset types

path_properties

array

Path properties

properties

ConnectionsCommonCustomObject

Custom data to be associated with a given object

property_definitions

array

supported_environments

array

The list of environments where this data source type may be used.

supported_plans

array

The list of plans for which this data source is supported.

supported_products

array

The list of products for which this data source is supported.

status

string

The status of the data source.

child_source_systems

array

origin_country

string

Country which data originated from. - ISO 3166 Country Codes.

owner_id

string

Owner or creator of connection. Provided when a service ID token is used to create connection.

rov

ConnectionsConnectionRov

Rules of visibility for connections.

mode

integer

The Rules of Visibility mode. Value can be:

| mode | description| | 0 | Connection is searchable and viewable by everyone with access to the catalog or project associated with this connection | | 8 | Connection is searchable by everyone and cannot be viewed unless the user has proper view permissions | | 16 | Connection is searchable by users with proper view permissions |

member_roles

object

Contains map of key as user_iam_id and value as member_roles

source_system

ConnectionsCommonCustomObject

Custom data to be associated with a given object

source_system_history

array

tags

array

Tags associated with a data source type.

actions

array

The actions supported for the data source.

origin

ConnectionsDatasourceTypeOrigin

The origin of a datasource type connector. Carried through CAMS as an opaque field so the connection service can filter by connector source.

name

string

The origin of the connector. One of 'forge', 'library', 'app_connect', or 'custom'.

version

string

The version of Connector Forge used to create this connector. Present only when name is 'forge'.

localized_datasource_types

array

Response

201 - The data source type was created.

datasource_types

array

List of data source types

400 - The data source type definition is not valid. See the error message for details.

trace

string

errors

array

401 - You are not authorized to define a data source type.

403 - You are not permitted to perform this action.

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. A data source type was not created.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Get details for type of data source

GET /v2/datasource_types/{datasource_type}

Get details for type of data source.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

datasource_type

Required *

string

The data source type.

Query Parameters

connection_properties

boolean

Whether to return information about connection properties.

interaction_properties

boolean

Whether to return information about source and target interaction properties.

discovery

boolean

Whether to return information about discovery capabilities.

actions

boolean

Whether to return information about supported actions.

entity.environment

string

Specify the environment the data source types must support to be included in the returned list. The available environments are 'private', 'public' 'spark', 'streams', 'java', 'local' and 'external'. If no entity.environment is specified, the default for service's deploy environment is used. To specify multiple environments, use a comma-separated string, such as entity.environment=private,public. To return datasource types for all environments without needing to list them explicitly, use entity.environment=all.

entity.perspective

string

Specify the perspective the data source types must support to be included in the returned list. The available perspectives are 'ch', 'cpd', 'wx'. To specify multiple perspectives, use a comma-separated string, such as entity.perspective=cpd,wx. To return datasource types for all perspectives without needing to list them explicitly, omit entity.perspective parameter or provide entity.perspective=all.

entity.product

string

Specify the product the data source type must support to be returned. The available products are 'ai_factsheet', 'autoai', 'catalog', 'cde', 'context_hub', 'cpd', 'dashboardsonprem', 'datarefinery', 'datastage', 'datastage_scapi', 'decision_optimization', 'deployments', 'dph', 'dqr', 'dv', 'dvaas', 'dvaas_ga', 'dvonprem', 'federated_learning', 'governance', 'igc', 'instructlab', 'manta', 'manta_legacy', 'masking_flow', 'mde', 'mdi', 'notebook', 'orchestration_pipelines', 'replication', 'rstudio', 'spss_modeler', 'streamsets', 'udi' and 'wxbia'. If no entity.product is specified, no filtering is applied. To specify multiple products, use a comma-separated string, such as entity.product=catalog,datastage. To return datasource types for all products without needing to list them explicitly, use entity.product=all.

product_selector_scope

string

Scope of ui-only product selector property. Applies to output under common_properties key. Genreated ui contains additional checkbox to switch between first of the requested products and the rest. If only a single one is given it switches between that product and remaining products supported by the data source.

generate_transitive_conditions

boolean

Whether to generate extra conditions in common properties format that will make them behave in a transitive manner under default configuration options of Elyra i.e. when a condition is part of a chain it will enable/disable everything down the chain rather than just hiding the control. Support for this option has been removed. Option itself was not removed to preserve binary compatibility but it no longer has any effect.

show_data_source_definition_section

boolean

Whether to show data source definition asset feature metadata properties or not.

Response

200 - A data source type definition.

metadata

ConnectionsConnectionAssetSystemMetadata

System metadata about an asset

entity

ConnectionsDatasourceTypeEntity

The definition of a data source type.

401 - You are not authorized to retrieve the type details of the data source.

403 - You are not permitted to perform this action.

404 - The data source type details cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. No data source type details were retrieved.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

Delete data source type

DELETE /v2/datasource_types/{datasource_type}

Deletes a data source type definition. This call does not check whether the data source type is used by connections or other assets. The caller must check this before deleting a data source type.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Path Parameters

datasource_type

Required *

string

The data source type.

Query Parameters

Response

204 - The data source type was deleted.

401 - You are not authorized to delete a data source type.

403 - You are not permitted to perform this action.

404 - The data source type cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The connection was not deleted.

trace

string

errors

array

Update datasource type

PATCH /v2/datasource_types/{datasource_type}

Updates the definition of a datasource type.

Note: Include the `X-IBM-Client-Id` header to identify your application for logging and monitoring purposes. If not provided, the `User-Agent` header will be used as a fallback.

Request

Request Body

Fields to update within the data source type.

Path Parameters

datasource_type

Required *

string

The data source type.

Query Parameters

Response

200 - The updated data source type definition object.

flight_info

ConnectionsCustomFlightServiceInfo

Information needed to connect to a custom Arrow Flight service.

base_datasource_type

string

The UUID of the base datasource type for this custom datasource type

name

string

A unique name, such as "dashdb".

locale

string

The locale of labels and descriptions.

label

string

A localized, displayable label such as, "IBM dashDB".

description

string

A localized, displayable description of the data source.

connectorGroup

string

A unique connectorGroup for group of connectors, such as "ibm_db2".

connectorGroupLabel

string

A localized, displayable connectorGrouplabel, such as "IBM Db2".

allowed_as_source

boolean

Whether the data source can be accessed as a source of data. That is, data can be read from the data source.

allowed_as_target

boolean

Whether the data source can be accessed as a target. That is, data can be written to the data source.

discovery

ConnectionsDatasourceTypeDiscovery

The definition of the discovery features of the data source type.

properties

ConnectionsCommonCustomObject

Custom data to be associated with a given object

property_definitions

array

supported_environments

array

The list of environments where this data source type may be used.

supported_plans

array

The list of plans for which this data source is supported.

supported_products

array

The list of products for which this data source is supported.

status

string

The status of the data source.

child_source_systems

array

origin_country

string

Country which data originated from. - ISO 3166 Country Codes.

owner_id

string

Owner or creator of connection. Provided when a service ID token is used to create connection.

rov

ConnectionsConnectionRov

Rules of visibility for connections.

source_system

ConnectionsCommonCustomObject

Custom data to be associated with a given object

source_system_history

array

tags

array

Tags associated with a data source type.

actions

array

The actions supported for the data source.

origin

ConnectionsDatasourceTypeOrigin

The origin of a datasource type connector. Carried through CAMS as an opaque field so the connection service can filter by connector source.

localized_datasource_types

array

400 - The data source type patch request is not valid. See the error message for details.

trace

string

errors

array

401 - You are not authorized to update the data source type definition.

403 - You are not permitted to perform this action.

404 - The data source type cannot be found.

trace

string

errors

array

429 - The service is currently receiving more requests than it can process in a timely fashion. Please retry submitting your request later.

trace

string

errors

array

500 - An error occurred. The data source type definition was not updated.

trace

string

errors

array

504 - A timeout occurred when processing your request. Please retry later.

trace

string

errors

array

List environments.

GET /v2/environments

Returns a list of environments filtered by type, language or spark version in a project or space.

If no filter is provided, it returns all environments in the project or space, which includes all default environments that are available in every project or space and custom environments created by users.

You need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

project_id

string

The guid of the project.

space_id

string

The guid of the space.

types

string

Comma-separated list of environment types. Defaults to list of all types.

exclude_types

string

Comma-separated list of environment types. Takes precedence over types. Defaults to empty list.

exclude_languages

string

Comma-separated list of kernel languages. Defaults to empty list.

spark_versions

string

Comma-separated list of Spark versions. If provided, Spark environments will be filtered by these versions. Defaults to list of all default environments with supported Spark versions and all custom environments.

Response

200 -

400 -

401 -

403 -

Create a new environment.

POST /v2/environments

Returns a new environment with the provided parameters.

You need to specify either `project_id` or `space_id`.

Required body parameters vary dependent on environment types:

  • notebook: `type`, `name`, `display_name`, `hardware_specification`, `software_specification`, `tools_specification`
  • datastage: `type`, `name`, `display_name`, `hardware_specification`
  • other types: `type`, `name`, `display_name`, `hardware_specification`, `software_specification`

Request

Request Body

Path Parameters

Query Parameters

project_id

string

The guid of the project.

space_id

string

The guid of the space.

Response

201 -

400 -

401 -

403 -

429 -

Retrieve an environment.

GET /v2/environments/{environment_guid}

Returns an environment of a given ID. You need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

project_id

string

The guid of the project.

space_id

string

The guid of the space.

response_format

string

Format the response. Defaults to none.

embed_package_content

boolean

Whether to include conda_yml file content of custom package extensions in the response. Defaults to false.

Response

200 -

400 -

401 -

403 -

Delete an environment.

DELETE /v2/environments/{environment_guid}

Deletes an environment of a given ID. You need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

project_id

string

The guid of the project.

space_id

string

The guid of the space.

Response

204 -

400 -

401 -

403 -

Update an environment.

PATCH /v2/environments/{environment_guid}

Updates an environment of a given ID with the provided parameters. Returns the environment with updated properties. Only custom environments can be updated.

Request

Request Body

Path Parameters

Query Parameters

project_id

Required *

string

The guid of the project.

Response

200 -

400 -

401 -

403 -

List hardware specifications.

GET /v2/hardware_specifications

Returns a list of hardware specifications.

  1. If neither `project_id` nor `space_id` is given, it returns all global hardware specifications.
  2. If `project_id` or `space_id` is given, it returns all global and scoped hardware specifications. In this case, you need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

project_id

string

The guid of the project.

space_id

string

The guid of the space.

name

string

The name of the hardware specification. If specified, each of the hardware specification in the returned list will have the specified name.

Response

200 -

400 -

401 -

403 -

Create a new hardware specification.

POST /v2/hardware_specifications

Returns a hardware specification created with provided parameters.

You need to specify either `project_id` or `space_id`.

You can only provide exactly one of `nodes`, `spark` or `datastage` in the request body.

Request

Request Body

Path Parameters

Query Parameters

project_id

string

The guid of the project.

space_id

string

The guid of the space.

Response

201 -

400 -

401 -

403 -

409 -

Retrieve a hardware specification.

GET /v2/hardware_specifications/{hardware_specification_guid}

Returns a hardware specification of a given ID.

  1. To retrieve a global hardware specification, `project_id` or `space_id` is not required.
  2. To retrieve a scoped hardware specification that is scoped to a project or a space, you need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

project_id

string

The guid of the project.

space_id

string

The guid of the space.

Response

200 -

400 -

401 -

403 -

Delete a hardware specification.

DELETE /v2/hardware_specifications/{hardware_specification_guid}

Deletes a hardware specification of a given ID.

Only scoped hardware specifications can be deleted through the API.

You need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

project_id

string

The guid of the project.

space_id

string

The guid of the space.

Response

204 -

400 -

401 -

403 -

Update a hardware specification.

PATCH /v2/hardware_specifications/{hardware_specification_guid}

Updates a hardware specification of a given ID with the provided parameters.

Only scoped hardware specifications can be updated through the API.

Request

Request Body

Path Parameters

Query Parameters

project_id

Required *

string

The guid of the project.

Response

204 -

400 -

401 -

403 -

List software specifications.

GET /v2/software_specifications

Returns a list of software specifications.

  1. If neither `project_id` nor `space_id` is given, it returns all base software specifications.
  2. If `project_id` or `space_id` is given, it returns all base and derived software specifications. In this case, you need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project.

include_packages

string

String of comma-separated package names that refers to the packages that a software specification should contain. If specified, each of the software specification in the returned list will contain all of the packages specified in the query.

name

string

The name of the software specification. If specified, each of the software specification in the returned list will have the specified name.

Response

200 -

400 -

401 -

403 -

Create a new software specification.

POST /v2/software_specifications

Returns a software specification created with provided parameters.

You need to specify either `project_id` or `space_id`.

The parameters `name` and `base_software_specification` are required in the request body.

You can customize the software specification by adding any number of package extensions.

Request

Request Body

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project in which to create the software specification.

Response

201 -

400 -

401 -

403 -

409 -

Update a software specification.

PATCH /v2/software_specifications/{software_specification_guid}

Updates a software specification of a given ID with the provided parameters.

Only derived software specifications can be updated through the API.

Updatable fields are `name`, `description`, `display_name` and `package_extensions`.

You need to specify either `project_id` or `space_id`.

Request

Request Body

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project.

Response

204 -

400 -

401 -

403 -

Retrieve a software specification.

GET /v2/software_specifications/{software_specification_guid}

Returns a software specification of a given ID.

  1. To retrieve a base software specification, `project_id` or `space_id` is not required.
  2. To retrieve a derived software specification that is scoped to a project or a space, you need to specify either `project_id` or `space_id`. When a derived software specification is retrieved, the return value shows the software configuration inherited from the base software specification instead of the ID of the base software specification.

Request

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project.

Response

200 -

400 -

401 -

403 -

Delete a software specification.

DELETE /v2/software_specifications/{software_specification_guid}

Deletes a software specification of a given ID.

Only derived software specifications can be deleted through the API.

You need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project. The deleted software specification must be scoped to the specified project.

Response

204 -

400 -

401 -

403 -

Add a package extension to a software specification.

PUT /v2/software_specifications/{software_specification_guid}/package_extensions/{package_extension_guid}

When successful, the specified package extension is appended to the array `entity.software_specification.package_extensions`. It is then the last package extension in that array.

You need to specify either `project_id` or `space_id`.

The request is valid if and only if:
1. The software specification identified by `software_specification_guid` and the package extension identified by `package_extension_guid` exist in the same scope (either project or space).
2. A successful POST `/v2/package_extensions/{package_extension_guid}/upload_complete` has been called before this request is initiated. I.e., the upload of the referenced `pip_zip` or `conda_yml` file has been indicated to have been successful.
3. The user is authorized to update the software specification asset.

Request

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project.

Response

204 -

400 -

401 -

403 -

409 - Conflict. The software specification already references this package extension.

Remove a package extension from a software specification.

DELETE /v2/software_specifications/{software_specification_guid}/package_extensions/{package_extension_guid}

When successful, the specified package extension is removed from the array `entity.software_specification.package_extensions`.

You need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project.

Response

204 -

400 -

401 -

403 -

List package extensions.

GET /v2/package_extensions

Returns all package extensions within the given project or space. You need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project.

name

string

Returning only those package extensions that have a particular name.

type

string

Returning only those package extensions that have a particular type.

Response

200 -

400 -

401 -

403 -

Create a new package extension.

POST /v2/package_extensions

Returns the new package extension created in the given project or space. You need to specify either `project_id` or `space_id`.

For uploading the pip_zip or conda_yml, once you have created a package extension, the response also contains a pre-signed URL which allows you to upload its contents. When the upload is complete, you must call `POST /v2/package_extensions/{package_extension_guid}/upload_complete` to indicate to the API that the package extension is usable. If the `/upload_complete` returns successfully, the package extension is usable, i.e., can be assigned to a software specification.

Request

Request Body

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project in which to create the package extension.

Response

201 -

400 -

401 -

403 -

Mark file upload complete.

POST /v2/package_extensions/{package_extension_guid}/upload_complete

Indicates that the upload of the library file attached to the package extension is complete and this package extension is usable. You need to specify either `project_id` or `space_id`.

Request

Path Parameters

package_extension_guid

Required *

string

A UUID v4 identifying the package extension.

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project.

Response

204 -

400 -

401 -

403 -

Update a package extension.

PATCH /v2/package_extensions/{package_extension_guid}

Updates a package extension of a given ID with the provided parameters.

Request

Request Body

Path Parameters

Query Parameters

project_id

Required *

string

The guid of the project.

Response

204 -

400 -

401 -

403 -

Retrieve a package extension.

GET /v2/package_extensions/{package_extension_guid}

Retrieves a package extension of a given ID. You need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project.

Response

200 -

400 -

401 -

403 -

Delete a package extension.

DELETE /v2/package_extensions/{package_extension_guid}

Deletes a package extension of a given ID. You need to specify either `project_id` or `space_id`.

Request

Path Parameters

Query Parameters

space_id

string

The guid of the space.

project_id

string

The guid of the project.

Response

204 -

400 -

401 -

403 -

A update operation allowing you to update artifacts based on a simple query.

POST /v3/search/update_by_query

Execute an operation to update artifacts using a simple query for one or more specified microservices (provider_ids).

Request

Request Body

GlobalSearchRelationshipUpdateBody

last_updated_at

object

Milliseconds since Unix epoch.

query

string

script

string

provider_type_id_list

array

fields

array

Path Parameters

Query Parameters

Response

200 - OK

202 - Accepted

204 - No Content

206 - Partial Content

400 - Bad request

401 - Unauthorized

403 - Forbidden

500 - Internal error. Try again later.

503 - Service Unavailable

default - Success response content

Execute a query based on the Lucene Syntax

GET /v3/search

Execute a query and pass in a selection of words to search for or pass in a Lucene query. Your Lucene query can be as simple or as sophisticated as you like. Beware, however. If you plan on passing in a query directly from user input, make sure to set the 'isSimple' parameter to 'true' (the default is 'false'). Otherwise, Global Search will use the underlying query_string function that enforces a strict Lucene query syntax, and your query may return an exception if the user input includes reserved Lucene tokens or symbols that are used incorrectly. When the 'isSimple' parameter is set to true, Global Search will the ElasticSearch simple_query_string function that uses a modified Lucene syntax as follows:<br> <br> &nbsp;+ = AND operation<br> &nbsp;| = OR operation<br> &nbsp;- = NOT <br> &nbsp;&quot; wraps a phrase<br> &nbsp;* is a wildcard (you can't use it at the beginning of a word but you can use it alone to signify match all)<br> &nbsp;( and ) evaluates tokens inside brackets with higher precedence<br> <br> To use one of these characters literally, escape it with a preceding backslash. <br><br> Global Search allows users to search for assets and artifacts on the platform. The number of documents for all search results is limited to 10000. <br> <br> Please notice that the response shows all possible fields, which are not applicable for all types. For example "custom_attributes" are only applicable to assets currently, and even then only to certain custom attributes depending how they have been defined. Likewise, "categories" are only applicable to artifacts, etc. <br>

Request

Path Parameters

Query Parameters

query

Required *

string

The Search Query. Add a list of words being sought or use a Lucene query. Your Lucene query can be as simple or as sophisticated as you like.

limit

integer

The maximum number of items to return

isSimple

boolean

Use simple query string syntax

role

string

For governance artifacts limited by zone, limit with this role access.

auth_cache

boolean

Use cached authorization info for building ACL filters.

auth_scope

string

The ACL filters applied to the query.

Response

200 - OK

size

integer

Number of rows returned.

rows

array

Result items(glossary).

aggregations

object

Aggregation results (if any).

semantic_search_expansions

array

Terms added by semantic expansion (if any).

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal error. Try again later.

This API will return all available pre search filters

GET /v3/search/search_facet

This API will return all available pre search filters

Request

Path Parameters

Query Parameters

Response

200 - OK

size

integer

rows

array

400 - Bad Request

401 - Unauthorized

403 - Forbidden

500 - Internal error. Try again later.

Get list of jobs under a project or a space.

GET /v2/jobs

Lists the jobs in the specified project or space (either project_id or space_id must be set).

Request

Path Parameters

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

asset_ref

string

Optionally get all jobs associated with a particular asset.

asset_ref_type

string

Optionally get all jobs associated with the particular asset ref type.

run_id

string

The ID of the job run. Can be used to search parent job of a job run

limit

integer

The limit of the number of items to return, for example limit=50. If not specified a default of 100 will be used.

sort

string

The optional field to sort returned jobs on, for example sort=asset.name<string>. This field is passed directly to cams asset search.

next

string

The optional 'next' field from the response in string format, can be used to get the next batch. The response can contain up to 200 results in a batch, if there are more results, a 'next' field is returned in the response which can be used to get the next batch.

Response

200 - Success.

next

JobsAssetSearchNext

total_rows

integer

results

array

Array of all jobs.

400 - Bad request. See the error message for details.

code

string

target

ErrorTargetModel

message

string

more_info

string

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

404 - The resources you specified cannot be found.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Create a new job.

POST /v2/jobs

Creates a new job in the specified project or space (either project_id or space_id must be set).

Request

Request Body

JobsJobPostBody

The job to be created. Note: either asset_ref or asset_ref_type must be provided, not both. Either value_set or values_from must be provided, not both.

job

object

asset_ref

string

ID of associated asset to run. Note: asset_ref and asset_ref_type are mutually exclusive - provide only one, not both.

asset_ref_type

string

The type of asset to run. Note: asset_ref and asset_ref_type are mutually exclusive - provide only one, not both.

name

Required *

string

The name of the job

description

string

The description of the job.

schedule

string

A cron string defining when the job should be run. If an empty string is provided it means the job is not scheduled to run.

schedule_info

object

serving_name

string

A globally unique attribute to be used in place of the job id when sending calls. Must be a combination of lowercase alphanumeric and underscore characters, and must be between 1 and 36 characters.

retention_policy

object

configuration

Required *

object

job_parameters

array

Array of job parameters.

parameter_sets

array

Array of parameter sets.

Path Parameters

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

Response

201 - Created.

metadata

JobsAssetMetadata

AssetMetadata Model

entity

JobsJobEntity

The underlying job definition.

400 - Bad request. See the error message for details.

code

string

target

ErrorTargetModel

message

string

more_info

string

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Get the information of job identified by the ID.

GET /v2/jobs/{job_id}

Gets the info for a single job associated from the specified project or space (either project_id or space_id must be set).

Request

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

Response

200 - Success.

metadata

JobsAssetMetadata

AssetMetadata Model

entity

JobsJobEntity

The underlying job definition.

400 - Bad request. See the error message for details.

code

string

target

ErrorTargetModel

message

string

more_info

string

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

404 - The resources you specified cannot be found.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Delete a specific job.

DELETE /v2/jobs/{job_id}

Deletes a specific job in a project or space (either project_id or space_id must be set). If the deletion of the job and its runs will take some time to finish, then a 202 response will be returned and the deletion will continue asynchronously. All the jobs runs associated with the job will also be deleted. If the job is still running, it will not be deleted.

Request

Request Body

Optional body for delegation parameters.

passed_body

object

mode

string

Optional mode parameter for delegation

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

Response

204 - The requested operation completed successfully.

400 - Bad request. See the error message for details.

code

string

target

ErrorTargetModel

message

string

more_info

string

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

404 - The resources you specified cannot be found.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Update information of a job.

PATCH /v2/jobs/{job_id}

Updates specific attributes of a job in the specified project or space (either project_id or space_id must be set). You must specify the updates by using the JSON patch format, described in RFC 6902.

Request

Request Body

JobsJSONJobPatchModel

Updates to make to the job run.

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

Response

200 - Success.

metadata

JobsAssetMetadata

AssetMetadata Model

entity

JobsJobEntity

The underlying job definition.

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

404 - The resources you specified cannot be found.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Get the availability of a given serving_name

GET /v2/jobs/serving_name/{serving_name}

Gets the availability of a given serving_name, as serving_name must be globally unique. serving_name must be a combination of alphanumeric and underscore characters, and must be between 1 and 36 characters.

Request

Path Parameters

serving_name

Required *

string

The serving_name value of the job to be used in place of the job ID.

Query Parameters

Response

200 - Success.

results

array

400 - Bad request. See the error message for details.

code

string

target

ErrorTargetModel

message

string

more_info

string

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Get list of runs of a job.

GET /v2/jobs/{job_id}/runs

Lists the job runs for a specific job in the specified project or space (either project_id or space_id must be set). Only the metadata and certain elements of the entity component of each run are returned.

Request

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

next

string

The optional 'next' field from the response in string format, can be used to get the next batch. The response can contain up to 200 results in a batch, if there are more results, a 'next' field is returned in the response which can be used to get the next batch.

limit

integer

The limit of the number of items to return, for example limit=50. If not specified a default of 100 will be used.

states

array

A list of comma-separated job run states. Availble values: Completed, Failed, Canceled, Starting, Running, Queued, Canceling, Paused, Resuming, CompletedWithWarnings, CompletedWithErrors

Response

200 - Success.

next

JobsAssetSearchNext

total_rows

integer

results

array

Array of all jobs.

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Start a run for a job.

POST /v2/jobs/{job_id}/runs

Starts the specified job contained in a project or space (either project_id or space_id must be set).

Request

Request Body

JobsJobRunPostBody

The configuration of the job run to use. If not provided, use the configuration of the associated job.

job_run

Required *

object

name

string

The name of the job run

description

string

The description of the job run

configuration

object

job_parameters

array

Array of job parameters.

parameter_sets

array

Array of parameter sets.

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

Response

201 - The requested operation completed successfully.

metadata

JobsAssetJobRunMetadata

AssetJobRunMetadata Model

entity

JobsJobRunEntity

attachments

JobsAttachmentsArray

Array of attachments.

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Get a specific run of a job.

GET /v2/jobs/{job_id}/runs/{run_id}

Gets the info for a single job run from the specified project or space (either project_id or space_id must be set).

Request

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

run_id

Required *

string

The ID of the job run.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

skip_metrics

boolean

If set to true, metrics of the job run would not be fetched.

Response

200 - Success.

metadata

JobsAssetJobRunMetadata

AssetJobRunMetadata Model

entity

JobsJobRunEntity

attachments

JobsAttachmentsArray

Array of attachments.

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Delete a run.

DELETE /v2/jobs/{job_id}/runs/{run_id}

Delete the specified job run in a project or space (either project_id or space_id must be set).

Request

Request Body

Optional body for delegation parameters.

passed_body

object

mode

string

Optional mode parameter for delegation

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

run_id

Required *

string

The ID of the job run.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

Response

202 - The requested operation is in progress.

204 - The requested operation completed successfully.

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

404 - The resources you specified cannot be found.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Retrieve runtime log of a run.

GET /v2/jobs/{job_id}/runs/{run_id}/logs

Gets the logs for a job run in the specified project or space (either project_id or space_id must be set)

Request

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

run_id

Required *

string

The ID of the job run.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

limit

integer

The limit of the number of lines to return, for example limit=50. If not specified, all log will be returned.

Response

200 - Success.

results

array

Array of log string split by line

total_count

integer

Total number of lines available

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Cancel a run.

POST /v2/jobs/{job_id}/runs/{run_id}/cancel

Cancels a job run that is in the running state.

Request

Request Body

An empty body.

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

run_id

Required *

string

The ID of the job run.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

Response

204 - The requested operation completed successfully.

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Pause a run.

POST /v2/jobs/{job_id}/runs/{run_id}/pause

Pauses a job run that is in the running state.

Request

Request Body

An empty body.

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

run_id

Required *

string

The ID of the job run.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

Response

204 - The requested operation completed successfully.

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

Resume a run.

POST /v2/jobs/{job_id}/runs/{run_id}/resume

Resumes a job run that is in the paused state.

Request

Request Body

An empty body.

Path Parameters

job_id

Required *

string

The ID of the job to use. Each job has a unique ID. Alternatively, the serving_name value can be used.

run_id

Required *

string

The ID of the job run.

Query Parameters

project_id

string

The ID of the project to use. project_id or space_id is required.

space_id

string

The ID of the space to use. project_id or space_id is required.

Response

204 - The requested operation completed successfully.

401 - You are not authorized to access the service. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

403 - You are not permitted to perform this action. See response for more information.

code

string

target

ErrorTargetModel

message

string

more_info

string

default - An error occurred. See response for more information.

List projects

GET /v2/projects

Returns a list of projects filtered by the specified query parameters. By default, only projects that the authenticated user is a member of are returned. In IBM Cloud Pak for Data (CPD), all projects in the cluster are returned (regardless of project membership) if the authenticated user is assigned either the "Manage projects" or "Monitor project workloads" CPD permission. In IBM Cloud Pak for Data (CPDaaS), all projects associated with an IBM Cloud Account are returned (regardless of project membership) if the authenticated user is added to the IBM Cloud Account and assigned the IAM "Manager" role.

Request

Path Parameters

Query Parameters

bss_account_id

The BSS Account ID.

type

array

A list of comma-separated project types to use to filter the query results.

member

A project member to use to filter the query results.

roles

array

A list of comma-separated project roles to use to filter the query results. Must be used in conjunction with the "member" query parameter.

tag_names

string

A list of comma-separated tags to use to filter the query results. If multiple tags are specified, the query results will be filtered to show projects matching any of the tags. (e.g. tag1 OR tag2 OR... tagN).

name

A full or partial project name to use to filter the query results. This query parameter must be used in conjunction with the 'bss_account_id' query parameter. Use the 'match' query parameter to control they type of text matching performed. Project names are not unique and should not be used in place of project IDs.

match

string

The type of text matching to perform. This query parameter must be used in conjunction with the 'name' query parameter. The 'exact' value will match projects if the specified text matches the exact project name. The 'keyword' value will match projects if the specified text matches any keyword parsed from the project name.

project_ids

string

A list of comma-separated project IDs to use to filter the query results. This query parameter only works in conjunction with the 'member' query parameter.

include

array

A list of comma-separated project metadata sections to include in the query results.

limit

integer

The limit used to specify the maximum number of projects returned in the query results. Used for pagination in conjunction with the "bookmark" query parameter.

bookmark

The bookmark is an opaque key returned in the query results set that serves as a reference to the next page of query results. Specify the bookmark on subsquent query requests to retrieve the next page of query results. Used for pagination in conjunction with the "limit" query parameter.

skip

integer

Deprecated. Use of this query parameter exhibits poor performance characteristics. Use the more efficient "bookmark" query parameter instead. The offset to use to define the starting index of projects to return in the query results. Used for pagination in conjunction with the "limit" query parameter.

Response

200 -

401 -

403 -

429 -

Get project total

GET /v2/projects/total

Returns the total number of projects associated with the authenticated user in a BSS account. The maximum total number of projects returned will be capped at 10,000 projects (for database performance reasons).

Request

Path Parameters

Query Parameters

bss_account_id

The BSS Account ID.

type

array

A list of comma-separated project types to use to filter the query results.

member

A project member to use to filter the query results.

tag_names

string

A list of comma-separated tags to use to filter the query results. If multiple tags are specified, the query results will be filtered to show projects matching any of the tags. (e.g. tag1 OR tag2 OR... tagN).

Response

200 -

400 -

401 -

403 -

429 -

Get project

GET /v2/projects/{project_id}

Returns the metadata for a target project specified by ID.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

include

array

A list of comma-separated project metadata sections to include in the query results.

Response

200 -

204 -

400 -

401 -

403 -

404 -

429 -

Update project

PATCH /v2/projects/{project_id}

Partially updates the project with only a subset of properties.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

List members

GET /v2/projects/{project_id}/members

Returns the list of project members.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

roles

array

A list of comma-separated project roles to use to filter the query results.

user_names

array

A list of comma-separated usernames corresponding to project members that are used to filter the query results.

Response

200 -

400 -

401 -

403 -

404 -

429 -

Create members

POST /v2/projects/{project_id}/members

Adds new project members with the provided roles. A project must always have at least one admin.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Delete members

DELETE /v2/projects/{project_id}/members

Deletes members from the project that match the provided usernames.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

user_names

Required *

array

A list of comma-separated usernames corresponding to project members to remove from the project.

Response

204 -

400 -

401 -

403 -

404 -

429 -

Update members

PATCH /v2/projects/{project_id}/members

Change project member roles in a batch.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Get member

GET /v2/projects/{project_id}/members/{user_name}

Returns the project member with the specified 'user_name' if any.

Request

Path Parameters

project_id

Required *

The project ID.

user_name

Required *

The username of the project member.

Query Parameters

resolve_groups

boolean

A flag indicating whether to return a derived project member based on resolving user groups.

Response

200 -

400 -

401 -

403 -

404 -

429 -

Delete member

DELETE /v2/projects/{project_id}/members/{user_name}

Deletes a member with a given user name from a project with the given username.

Request

Path Parameters

project_id

Required *

The project ID.

user_name

Required *

The username of the project member.

Query Parameters

Response

204 -

400 -

401 -

403 -

404 -

429 -

Update project storage properties

PATCH /v2/projects/{project_id}/storage/properties

Update the storage properties associated with the target project specified by ID.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

List tags

GET /v2/projects/{project_id}/tags

Returns the list of project tags.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Create tags

POST /v2/projects/{project_id}/tags

Adds new tags to a project.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

201 -

400 -

401 -

403 -

404 -

422 -

429 -

Delete tags

DELETE /v2/projects/{project_id}/tags

Delete existing tags in a project. If no 'tag_names' are specified, then delete all existing tags in a project.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

tag_names

string

A list of comma-separated tags to use to filter the query results. If multiple tags are specified, the query results will be filtered to show projects matching any of the tags. (e.g. tag1 OR tag2 OR... tagN).

Response

204 -

400 -

401 -

403 -

404 -

429 -

Update tags

PATCH /v2/projects/{project_id}/tags

Adds new tags and removes existing tags from a project via a single bulk update operation.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

422 -

429 -

Create tag

POST /v2/projects/{project_id}/tags/{tag_name}

Add a new tag to a project.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

tag_name

Required *

The tag name.

Query Parameters

Response

201 -

400 -

401 -

403 -

404 -

422 -

429 -

Delete tag

DELETE /v2/projects/{project_id}/tags/{tag_name}

Delete an existing tag in a project.

Request

Path Parameters

project_id

Required *

The project ID.

tag_name

Required *

The tag name.

Query Parameters

Response

204 -

400 -

401 -

403 -

404 -

429 -

Get audit events settings

GET /v2/projects/{project_id}/settings/audit_events

Get audit events settings.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Update audit events settings

PUT /v2/projects/{project_id}/settings/audit_events

Update audit events settings.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Get access restrictions settings

GET /v2/projects/{project_id}/settings/access_restrictions

Get access restrictions settings.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Update access restrictions settings

PUT /v2/projects/{project_id}/settings/access_restrictions

Update access restrictions settings.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Get folders settings

GET /v2/projects/{project_id}/settings/folders

Get folders settings.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Update folders settings

PUT /v2/projects/{project_id}/settings/folders

Update folders settings.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Get JupyterLab integration

GET /v2/projects/{project_id}/integrations/jupyterlab

Get JupyterLab integration.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Update JupyterLab integration

PUT /v2/projects/{project_id}/integrations/jupyterlab

Update JupyterLab integration.

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Delete JupyterLab integration

DELETE /v2/projects/{project_id}/integrations/jupyterlab

Delete JupyterLab integration.

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

204 -

400 -

401 -

403 -

404 -

429 -

List tokens

GET /v2/projects/{project_id}/tokens

List tenant access tokens issued (created) for the project (tenant).

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Create token

POST /v2/projects/{project_id}/tokens

Issues (creates) a new tenant access token for the project (tenant).

Request

Request Body

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

201 -

400 -

401 -

403 -

404 -

429 -

Revoke all tokens

DELETE /v2/projects/{project_id}/tokens

Revokes (deletes) all tenant access tokens previously issued (created) for the project (tenant).

Request

Path Parameters

project_id

Required *

The project ID.

Query Parameters

Response

204 -

400 -

401 -

403 -

404 -

429 -

Get token

GET /v2/projects/{project_id}/tokens/{token_id}

Returns the metadata for a tenant access token specified by ID.

Request

Path Parameters

project_id

Required *

The project ID.

token_id

Required *

The token ID.

Query Parameters

Response

200 -

400 -

401 -

403 -

404 -

429 -

Revoke token

DELETE /v2/projects/{project_id}/tokens/{token_id}

Revokes (deletes) a single tenant access token previously issued (created) for the project (tenant).

Request

Path Parameters

project_id

Required *

The project ID.

token_id

Required *

The token ID.

Query Parameters

Response

204 -

400 -

401 -

403 -

404 -

429 -

Introspect token

GET /v2/projects/tokens/introspect

Validates a tenant access token specified via the Authorization HTTP header.

Request

Response

200 -

400 -

401 -

429 -

Create a new space

POST /v2/spaces

Creates a new space to scope other assets. Authorized user must have the following roles (see https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-iams)

  • Platform management role: Administrator
  • Service access role: Manager

On Public Cloud user is required to provide Cloud Object Storage instance details in the 'storage' property. On private CPD installations the default storage is used instead.

Request

Request Body

Spacesspace_request

Input payload for the space.

name

Required *

string

Name of space.

description

string

Description of space.

storage

Spacesstorage_request

Cloud Object Storage instance is required for spaces created on Public Cloud. On private CPD installations default storage is used instead. This flag is not supported on CPD.

resource_crn

string

A cloud resource name of the Cloud Object Storage instance.

delegated

boolean

Set to true of the COS instance is delegated by the account admin

plan_id

string

The unique ID of the plan associated with the COS instance. The value is 1e4e33e4-cfa6-4f12-9016-be594a6d5f87 for the One Rate plan.

properties

object

Storage properties.

compute

array

This flag is not supported on CPD.

tags

array

User-defined tags associated with a space.

generator

string

A consistent label used to identify a client that created a space. A generator must be comprised of the following characters - alphanumeric, dash, underscore, space.

stage

Spacesstage_request

Space production and stage name.

production

boolean

A boolean flag which specifies if a space is production or not. It cannot be modified.

name

string

Stage name. E.g. development, test, pre-production, production.

type

string

Space type.

settings

Spacessettings_entity

Space settings.

folders

object

The folders settings group.

access_restrictions

object

The access restrictions settings group.

Response

202 - Accepted

metadata

Spacesresource_meta

Common metadata for a resource.

entity

Spacesspace_entity

400 -

401 -

403 -

404 -

500 -

Retrieve the spaces

GET /v2/spaces

Retrieves the space list.

Request

Path Parameters

Query Parameters

start

string

Token representing first resource.

limit

number

The number of resources returned. Default value is 100. Max value is 200.

total_count

boolean

Include details about total number of resources. This flag is not supported on CPD 3.0.1.

id

string

Comma-separated list of ids to be returned. This flag is not supported on CPD 3.0.1.

tags

string

A list of comma-separated, user-defined tags to use to filter the query results.

include

string

A list of comma-separated space sections to include in the query results. Example: '?include=members'.

Available fields:

  • members (returns up to 100 members)
  • nothing (does not return space entity and metadata)

member

string

Filters the result list to only include spaces where the user with a matching user id is a member.

roles

string

Must be used in conjunction with the member query parameter. Filters the result set to include only spaces where the specified member has one of the roles specified.

Values:

* admin
* editor
* viewer
* job_operator (CPD only)

bss_account_id

string

Filtering by bss_account_id is allowed only for accredited services.

name

string

Filters the result list to only include space with specified name.

sub_name

string

Filters the result list to only include spaces which name contains specified case-insensitive substring

compute.crn

string

Filters the result list to only include spaces with specified compute.crn.

type

string

Filters the result list to only include space with specified type

Response

200 - OK.

total_count

integer

Computed explicitly only when 'total_count=true' query parameter is present. This is in order to avoid performance penalties.

limit

integer

The number of items to return in each page.

first

object

The reference to the first item in the current page.

next

object

A reference to the first item of the next page, if any.

resources

array

400 -

401 -

403 -

404 -

500 -

Retrieve the space

GET /v2/spaces/{space_id}

Retrieves the space with the specified identifier.

Request

Path Parameters

Query Parameters

include

string

A list of comma-separated space sections to include in the query results. Example: '?include=members'.

Available fields:

  • members (returns up to 100 members)
  • credentials (returns S3 bucket temporary credentials)
  • nothing (does not return space entity and metadata)

Response

200 - OK.

metadata

Spacesresource_meta

Common metadata for a resource.

entity

Spacesspace_entity

400 -

401 -

403 -

404 -

500 -

Delete the space

DELETE /v2/spaces/{space_id}

Deletes the space with the specified identifier.

Request

Response

202 - Accepted.

400 -

401 -

403 -

404 -

500 -

Update the space

PATCH /v2/spaces/{space_id}

Partially update this space. Allowed paths are: - /name - /description - /compute - /stage/name - /type - /settings/folders/enabled - /settings/access_restrictions/reporting/authorized

Request

Request Body

Input payload for the space.

Response

200 - OK.

metadata

Spacesresource_meta

Common metadata for a resource.

entity

Spacesspace_entity

400 -

401 -

403 -

404 -

500 -

Retrieve the space members

GET /v2/spaces/{space_id}/members

Retrieves the member list for the specified space.

Request

Path Parameters

Query Parameters

start

string

Token representing first resource.

limit

number

The number of resources returned. Default value is 100. Max value is 200.

total_count

boolean

Include details about total number of resources. This flag is not supported on CPD 3.0.1.

type

string

Find the member by 'type'.

role

string

Find the member by 'role'.

state

string

Find the member by 'state'.

Response

200 - OK.

total_count

integer

Computed explicitly only when 'total_count=true' query parameter is present. This is in order to avoid performance penalties.

limit

integer

The number of items to return in each page.

first

object

The reference to the first item in the current page.

next

object

A reference to the first item of the next page, if any.

resources

array

400 -

401 -

403 -

404 -

500 -

Add a member to space

POST /v2/spaces/{space_id}/members

Adds a member to the specified space.

Request

Request Body

Spacesmembers_request

Member information.

members

Required *

array

Response

200 - OK.

resources

array

400 -

401 -

403 -

404 -

500 -

Retrieve the space member information

GET /v2/spaces/{space_id}/members/{member_id}

Retrieves the member information for the member and space with the specified identifiers.

Request

Response

200 - OK.

id

string

The IAM ID of the space member. This field is required for space members with the 'active' state.

role

string

The role of the space member. Note: The 'job_operator' role is only available on CPD deployments.

state

string

The state of the space member. This field is only supported for members of type 'user'.

type

string

The space member type.

400 -

401 -

403 -

404 -

500 -

Remove the space member

DELETE /v2/spaces/{space_id}/members/{member_id}

Removes the specified member from the space.

Request

Response

204 - Deleted.

400 -

401 -

403 -

404 -

500 -

Update the space member

PATCH /v2/spaces/{space_id}/members/{member_id}

Partially update the member selected with the specified identifier. Allowed paths are: - /role - /state

Request

Request Body

The json patch.

Response

200 - Partially updated a member.

id

string

The IAM ID of the space member. This field is required for space members with the 'active' state.

role

string

The role of the space member. Note: The 'job_operator' role is only available on CPD deployments.

state

string

The state of the space member. This field is only supported for members of type 'user'.

type

string

The space member type.

400 -

401 -

403 -

404 -

500 -

Retrieve the asset exports

GET /v2/asset_exports

Retrieves the asset export list for the specified space, project, or catalog.

Request

Path Parameters

Query Parameters

start

string

Token representing first resource.

limit

number

The number of resources returned. Default value is 100. Max value is 200.

Response

200 - OK.

total_count

integer

Computed explicitly only when 'total_count=true' query parameter is present. This is in order to avoid performance penalties.

limit

integer

The number of items to return in each page.

first

object

The reference to the first item in the current page.

next

object

A reference to the first item of the next page, if any.

resources

array

400 -

401 -

403 -

404 -

500 -

Start the asset export process

POST /v2/asset_exports

Starts the asset export process for the specified space, project, or catalog. On CPD 3.0.1 assets export is supported only in the context of a space.

Request

Request Body

Spacesexport_entity_request

Export information.

name

Required *

string

description

string

assets

Required *

Spacesexport_assets

all_assets

boolean

asset_types

array

asset_ids

array

encryption_key

string

Encryption key used to encrypt the sensitive data during export.

format

string

Export format type.

module_keys

array

Response

202 - OK.

metadata

Spacesimport_export_meta

Common metadata for a import/export.

entity

Spacesexport_entity

400 -

401 -

403 -

404 -

500 -

Cancel the asset export process

DELETE /v2/asset_exports/{export_id}

Cancels the asset export process with the specified identifier.

Request

Path Parameters

Query Parameters

hard_delete

boolean

Default is false.

Response

204 - OK.

400 -

401 -

403 -

404 -

500 -

Retrieve the asset export

GET /v2/asset_exports/{export_id}

Retrieves the asset export with the specified identifier.

Request

Response

200 - OK.

metadata

Spacesimport_export_meta

Common metadata for a import/export.

entity

Spacesexport_entity

400 -

401 -

403 -

404 -

500 -

Download the asset export content

GET /v2/asset_exports/{export_id}/content

Downloads the content for the asset export process with the specified identifier.

Request

Response

200 - OK.

400 -

401 -

403 -

404 -

500 -

Retrieve the asset imports

GET /v2/asset_imports

Retrieves the asset import list for the specified space, project, or catalog.

Request

Path Parameters

Query Parameters

start

string

Token representing first resource.

limit

number

The number of resources returned. Default value is 100. Max value is 200.

Response

200 - OK.

total_count

integer

Computed explicitly only when 'total_count=true' query parameter is present. This is in order to avoid performance penalties.

limit

integer

The number of items to return in each page.

first

object

The reference to the first item in the current page.

next

object

A reference to the first item of the next page, if any.

resources

array

400 -

401 -

403 -

404 -

500 -

Start the asset import process

POST /v2/asset_imports

Starts the asset import process for the specified space, project, or catalog. On CPD 3.0.1 assets import is supported only in the context of a space.

Request

Request Body

Response

202 - OK.

metadata

Spacesimport_export_meta

Common metadata for a import/export.

entity

Spacesimport_entity

400 -

401 -

403 -

404 -

500 -

Cancel the asset import process

DELETE /v2/asset_imports/{import_id}

Cancels the asset import process with the specified identifier.

Request

Path Parameters

Query Parameters

hard_delete

boolean

Default is false.

Response

204 - OK.

400 -

401 -

403 -

404 -

500 -

Retrieve the asset import

GET /v2/asset_imports/{import_id}

Retrieves the asset import with the specified identifier.

Request

Response

200 - OK.

metadata

Spacesimport_export_meta

Common metadata for a import/export.

entity

Spacesimport_entity

400 -

401 -

403 -

404 -

500 -

Create project as a transaction

POST /transactional/v2/projects

Creates a new project with the provided parameters, including all the storage and credentials in a single transaction. This endpoint will create a new COS bucket using generated unique name, all credentials, asset container and call all the required atomic APIs to fully configure a new project. Attempts to use the duplicate project names will result in an error. <b>NOTE</b>: when creating projects programmatically, always use this endpoint, not /v2/projects. <br/><br/><br/> This endpoint can also be used to create a project from an exported watsonx.ai Studio .zip file. In this case, a new transaction is initiated to create assets under the project. A Transaction ID along with a URL is returned as a response of this API. As this transaction can take time, you can view the current status of the transaction using the returned URL.<br><b>NOTE</b>: This feature is only available in the private cloud.

Request

Request Body

TransactionalProjectsTransactionalProjectCreate

name

Required *

string

The name of the new project. The name must be a non-empty String. This does not need to be unique.

description

string

A description for the new project.

type

string

The project type. The "cpd" project type is used to classify IBM Cloud Pak for Data (CPD) projects. The "wx" project type is used to classify IBM watsonx projects. The "wca" project type is used to classify IBM watsonx Code Assistant projects. The "dpx" project type is used to classify IBM Data Product Exchange projects. The "wxbi" project type is used to classify IBM watsonx BI Assistant projects.

generator

Required *

string

A tag to indicate where this project was generated. This is only intended for use in metrics. It does not need to be unique and all consumers of this API should use a consistent string for their 'generator' field. The value is stored in the project metadata for future consumption in metrics.

public

boolean

A value of `true` makes the project public.

tags

array

List of user defined tags that are attached to the project.

enforce_members

boolean

Set to true of project members should be scoped to the account and/or SAML of the creator

storage

Required *

object

compute

array

List of computes to be associated with the project.

tools

array

List of tools to be associated with the project.

Path Parameters

Query Parameters

verify_unique_name

boolean

If enabled, the transaction fails if the project name is not unique.

Response

201 -

202 -

400 -

401 -

403 -

404 -

500 -

Delete project as a transaction

DELETE /transactional/v2/projects/{project_id}

Deletes a project with a given ID, deletes COS bucket and all the files in it, all credentials and asset container in the order reverse from the project creation transaction. When deleting projects programmatically, always use this endpoint, not /v2/projects/{project_id}.

Request

Path Parameters

project_id

Required *

The ID of the project to be deleted.

Query Parameters

Response

204 - No Content

400 -

401 -

403 -

404 -

500 -

Get status of import transaction

GET /transactional/v2/projects/{project_id}/transactions/{transaction_id}

Status of import transaction created using create project as a transaction API

Request

Path Parameters

project_id

Required *

The ID of the project on which transaction was created.

transaction_id

Required *

The transaction ID provided by create project as a transaction endpoint.

Query Parameters

Response

200 - OK

id

string

Project GUID.

name

string

Name of the project.

created_at

string

The date and time the status was created in UTC (ISO 8601)

updated_at

string

The date and time the status was last updated in UTC (ISO 8601)

status

string

Last known status of the transaction

description

string

Description of the last know transaction status

history

array

Description of all last know import status.

400 -

401 -

403 -

404 -

500 -