A

8 Messages

 • 

200 Points

Monday, April 10th, 2023 4:25 AM

Collibra API Help

Hello:

I used GET https://test-drive.collibra.com/rest/2.0/domains to get the response community_name = HR and type_name = Glossary.

I want to access the complete glossary shown in the attached image using API.

Please help me to identify which API I can use to get the Glossary response in detail.

Any help is greatly appreciated.

1.2K Messages

2 years ago

To retrieve the assets in your domain, you need to use the assets endpoint.

assets?domainId=00000000-0000-0000-0000-000000003114

8 Messages

 • 

200 Points

Hello Arthur:

Thanks for your reply. So for that, I need to search first for domains to get domainId? let me try, and I will update you.

Thank you again.

8 Messages

 • 

200 Points

Hello Arthur:

I am getting partial information, as shown in the image, after using the asset endpoint. I do not see a definition for Promotions.
{
“id”: “80d999ab-d8b1-4fb2-b7f8-1b6f70a61ab2”,
“createdBy”: “00000000-0000-0000-0000-000000900002”,
“createdOn”: 1653662479978,
“lastModifiedBy”: “00000000-0000-0000-0000-000000900002”,
“lastModifiedOn”: 1653662721125,
“system”: false,
“resourceType”: “Asset”,
“name”: “Promotions”,
“displayName”: “Promotions”,
“articulationScore”: 100.0,
“excludedFromAutoHyperlinking”: true,
“domain”: {
“id”: “65ca1a1c-3ab2-490d-9f46-aefd8e740ae1”,
“resourceType”: “Domain”,
“name”: “HR Glossary”
},
“type”: {
“id”: “00000000-0000-0000-0000-000000011001”,
“resourceType”: “AssetType”,
“name”: “Business Term”
},
“status”: {
“id”: “00000000-0000-0000-0000-000000005009”,
“resourceType”: “Status”,
“name”: “Accepted”
},
“avgRating”: 0.0,
“ratingsCount”: 0
},





























image

1.2K Messages

2 years ago

Yes, if you want the additional info, you have to query them.

attributes?assetId=00000000-0000-0000-0000-000000003114
relations?sourceId=00000000-0000-0000-0000-000000003114&targetId=00000000-0000-0000-0000-000000003114&sourceTargetLogicalOperator=OR

Another approach is to use the outputmodule query (see the trick about getting an outputmodule query from a viewId) => this allows to query the model to retrieve everything you could see in a domain view and more.

8 Messages

 • 

200 Points

No luck; still not seeing the definition for Promotions.

Can you please help me with how to use outputmodule query.

Is it I can find this in REST API?

1.2K Messages

2 years ago

If you’re not seeing the definition with the attributes rest API call, then you have another problem, because it should show up there.

For output module:

  • create a view with the information you’re looking for (like definition), save the view.
  • copy the view id
  • make a GET call to the following endpoint with the viewId as parameter
    image
  • fetch the result (the output module query) and make a POST call to the following endpoint with the query as body
    image

This will retrieve every information of that view.

8 Messages

 • 

200 Points

Hello Arthur:

I overlooked earlier, but this definitely helped ‘attributes?assetId=00000000-0000-0000-0000-000000003114’

I believe that I will follow what you mentioned about creating view. That will help me to get complete picture rather than running different API calls.

Thank you again for your help.

Loading...