All URIs are relative to http://localhost/rest/2.0
Method | HTTP request | Description |
---|---|---|
add_asset | POST /assets | Add asset |
add_assets | POST /assets/bulk | Add multiple assets |
add_tags_to_asset | POST /assets/{assetId}/tags | Add tags |
change_asset | PATCH /assets/{assetId} | Change asset |
change_assets | PATCH /assets/bulk | Change multiple assets |
find_assets | GET /assets | Find assets |
get_asset | GET /assets/{assetId} | Get asset |
get_asset_breadcrumb | GET /assets/{assetId}/breadcrumb | Get asset breadcrumb |
get_asset_tags | GET /assets/{assetId}/tags | Get asset tags |
remove_asset | DELETE /assets/{assetId} | Remove asset |
remove_assets | DELETE /assets/bulk | Remove assets |
remove_tags_from_asset | DELETE /assets/{assetId}/tags | Remove tags |
set_asset_attributes | PUT /assets/{assetId}/attributes | Set asset attributes |
set_asset_relations | PUT /assets/{assetId}/relations | Set asset relations |
set_asset_responsibilities | PUT /assets/{assetId}/responsibilities | Set asset responsibilities |
set_tags_for_asset | PUT /assets/{assetId}/tags | Set asset tags |
AssetImpl add_asset(add_asset_request=add_asset_request)
Add asset
Adds a new asset to a domain
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
add_asset_request = collibra_core.AddAssetRequest() # AddAssetRequest | The properties of the asset to be added (optional)
try:
# Add asset
api_response = api_instance.add_asset(add_asset_request=add_asset_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->add_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
add_asset_request | AddAssetRequest | The properties of the asset to be added | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Asset successfully added. | - |
400 | An asset with the given ID already exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[AssetImpl] add_assets(add_asset_request=add_asset_request)
Add multiple assets
Adds multiple assets in one go
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
add_asset_request = [collibra_core.AddAssetRequest()] # list[AddAssetRequest] | The properties of the assets to be added (optional)
try:
# Add multiple assets
api_response = api_instance.add_assets(add_asset_request=add_asset_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->add_assets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
add_asset_request | list[AddAssetRequest] | The properties of the assets to be added | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Assets successfully added. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Tag] add_tags_to_asset(asset_id, add_asset_tags_request=add_asset_tags_request)
Add tags
Adds tags to the asset with the given ID.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
add_asset_tags_request = collibra_core.AddAssetTagsRequest() # AddAssetTagsRequest | The tags to be added to a given asset (optional)
try:
# Add tags
api_response = api_instance.add_tags_to_asset(asset_id, add_asset_tags_request=add_asset_tags_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->add_tags_to_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset | |
add_asset_tags_request | AddAssetTagsRequest | The tags to be added to a given asset | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Tags added | - |
400 | No asset with the given ID exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AssetImpl change_asset(asset_id, change_asset_request=change_asset_request)
Change asset
Changes the asset with the given ID as specified by the given request. Only properties that are specified in this request and have not null
values are updated. All other properties are ignored.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset to be changed
change_asset_request = collibra_core.ChangeAssetRequest() # ChangeAssetRequest | The properties of the assets to be changed (optional)
try:
# Change asset
api_response = api_instance.change_asset(asset_id, change_asset_request=change_asset_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->change_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset to be changed | |
change_asset_request | ChangeAssetRequest | The properties of the assets to be changed | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The changed asset | - |
400 | No asset with the given ID exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[AssetImpl] change_assets(change_asset_request=change_asset_request)
Change multiple assets
Changes multiple assets in one go
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
change_asset_request = [collibra_core.ChangeAssetRequest()] # list[ChangeAssetRequest] | The properties of the assets to be changed (optional)
try:
# Change multiple assets
api_response = api_instance.change_assets(change_asset_request=change_asset_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->change_assets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
change_asset_request | list[ChangeAssetRequest] | The properties of the assets to be changed | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Assets changed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AssetPagedResponse find_assets(offset=offset, limit=limit, name=name, name_match_mode=name_match_mode, domain_id=domain_id, community_id=community_id, type_id=type_id, status_id=status_id, tag_names=tag_names, type_inheritance=type_inheritance, exclude_meta=exclude_meta, sort_field=sort_field, sort_order=sort_order)
Find assets
Returns assets matching the given search criteria. Only parameters that are specified in this request and have not null
values are used for filtering. All other parameters are ignored. By default a result containing 1000 assets is returned.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
offset = 0 # int | The first result to retrieve. If not set (offset = <code>0</code>), results will be retrieved starting from row <code>0</code>. (optional) (default to 0)
limit = 0 # int | The maximum number of results to retrieve. If not set (limit = <code>0</code>), the default limit will be used. (optional) (default to 0)
name = 'name_example' # str | The name of the asset to search for (either display name or full name). (optional)
name_match_mode = 'ANYWHERE' # str | The match mode used to compare <code>name</code>. (optional) (default to 'ANYWHERE')
domain_id = 'domain_id_example' # str | The ID of the domain to find the assets in. (optional)
community_id = 'community_id_example' # str | The ID of the community to find the assets in. (optional)
type_id = ['type_id_example'] # list[str] | The list of IDs of the asset types. The returned assets are of one of types specified by this parameter. (optional)
status_id = ['status_id_example'] # list[str] | The list of IDs of the statuses. The returned assets have one of statuses specified by this parameter. (optional)
tag_names = ['tag_names_example'] # list[str] | The list of names of tags. The returned assets have one of tags with names specified by this parameter. (optional)
type_inheritance = True # bool | Whether the type inheritance for the asset type filtering should be applied or not. (optional) (default to True)
exclude_meta = True # bool | The exclude meta flag. If this is set to true then the assets from meta domains will not be returned<br/>(meta domains are the domains which were not created by the user manually). (optional) (default to True)
sort_field = 'NAME' # str | The field that should be used as reference for sorting. (optional) (default to 'NAME')
sort_order = 'ASC' # str | The order of sorting. (optional) (default to 'ASC')
try:
# Find assets
api_response = api_instance.find_assets(offset=offset, limit=limit, name=name, name_match_mode=name_match_mode, domain_id=domain_id, community_id=community_id, type_id=type_id, status_id=status_id, tag_names=tag_names, type_inheritance=type_inheritance, exclude_meta=exclude_meta, sort_field=sort_field, sort_order=sort_order)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->find_assets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
offset | int | The first result to retrieve. If not set (offset = <code>0</code>), results will be retrieved starting from row <code>0</code>. | [optional] [default to 0] |
limit | int | The maximum number of results to retrieve. If not set (limit = <code>0</code>), the default limit will be used. | [optional] [default to 0] |
name | str | The name of the asset to search for (either display name or full name). | [optional] |
name_match_mode | str | The match mode used to compare <code>name</code>. | [optional] [default to 'ANYWHERE'] |
domain_id | str | The ID of the domain to find the assets in. | [optional] |
community_id | str | The ID of the community to find the assets in. | [optional] |
type_id | list[str] | The list of IDs of the asset types. The returned assets are of one of types specified by this parameter. | [optional] |
status_id | list[str] | The list of IDs of the statuses. The returned assets have one of statuses specified by this parameter. | [optional] |
tag_names | list[str] | The list of names of tags. The returned assets have one of tags with names specified by this parameter. | [optional] |
type_inheritance | bool | Whether the type inheritance for the asset type filtering should be applied or not. | [optional] [default to True] |
exclude_meta | bool | The exclude meta flag. If this is set to true then the assets from meta domains will not be returned<br/>(meta domains are the domains which were not created by the user manually). | [optional] [default to True] |
sort_field | str | The field that should be used as reference for sorting. | [optional] [default to 'NAME'] |
sort_order | str | The order of sorting. | [optional] [default to 'ASC'] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Search ran successfully | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AssetImpl get_asset(asset_id)
Get asset
Returns the asset having the given ID.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
try:
# Get asset
api_response = api_instance.get_asset(asset_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->get_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Asset found | - |
401 | User lacks view permission | - |
404 | Asset not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[NamedResourceReferenceImpl] get_asset_breadcrumb(asset_id)
Get asset breadcrumb
Returns the list of resources that lead to the asset identified by the given ID.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
try:
# Get asset breadcrumb
api_response = api_instance.get_asset_breadcrumb(asset_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->get_asset_breadcrumb: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset |
list[NamedResourceReferenceImpl]
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The asset breadcrumb | - |
401 | User lacks view permission | - |
404 | Asset not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Tag] get_asset_tags(asset_id)
Get asset tags
Returns all tags of the asset with the given ID.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
try:
# Get asset tags
api_response = api_instance.get_asset_tags(asset_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->get_asset_tags: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The asset tags | - |
400 | No asset with the given ID exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_asset(asset_id)
Remove asset
Removes an asset identified by given ID.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
try:
# Remove asset
api_instance.remove_asset(asset_id)
except ApiException as e:
print("Exception when calling AssetsApi->remove_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | Asset removed | - |
400 | No asset with the given ID exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_assets(request_body=request_body)
Remove assets
Removes multiple assets.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
request_body = ['request_body_example'] # list[str] | The IDs of the assets to be removed (optional)
try:
# Remove assets
api_instance.remove_assets(request_body=request_body)
except ApiException as e:
print("Exception when calling AssetsApi->remove_assets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
request_body | list[str] | The IDs of the assets to be removed | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | Assets successfully removed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove_tags_from_asset(asset_id, remove_asset_tags_request=remove_asset_tags_request)
Remove tags
Removes tags from the asset with the given ID.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
remove_asset_tags_request = collibra_core.RemoveAssetTagsRequest() # RemoveAssetTagsRequest | The tags to be removed from given asset (optional)
try:
# Remove tags
api_instance.remove_tags_from_asset(asset_id, remove_asset_tags_request=remove_asset_tags_request)
except ApiException as e:
print("Exception when calling AssetsApi->remove_tags_from_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset | |
remove_asset_tags_request | RemoveAssetTagsRequest | The tags to be removed from given asset | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | Tags removed | - |
400 | No asset with the given ID exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Attribute] set_asset_attributes(asset_id, set_asset_attributes_request=set_asset_attributes_request)
Set asset attributes
Replaces all attributes of the asset with the given ID (of given attribute type) with the attributes from the request, except matching attributes, which are retained.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
set_asset_attributes_request = collibra_core.SetAssetAttributesRequest() # SetAssetAttributesRequest | The attributes to be set on the given asset (optional)
try:
# Set asset attributes
api_response = api_instance.set_asset_attributes(asset_id, set_asset_attributes_request=set_asset_attributes_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->set_asset_attributes: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset | |
set_asset_attributes_request | SetAssetAttributesRequest | The attributes to be set on the given asset | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Attributes changed | - |
400 | No asset with the given ID exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[RelationImpl] set_asset_relations(asset_id, set_asset_relations_request=set_asset_relations_request)
Set asset relations
Sets relations for the asset with the given ID. All the relations described by this request will replace the existing ones (identified with asset as one end, relation type and direction of the relation).
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
set_asset_relations_request = collibra_core.SetAssetRelationsRequest() # SetAssetRelationsRequest | The relations to be set on given asset (optional)
try:
# Set asset relations
api_response = api_instance.set_asset_relations(asset_id, set_asset_relations_request=set_asset_relations_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->set_asset_relations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset | |
set_asset_relations_request | SetAssetRelationsRequest | The relations to be set on given asset | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The changed relations | - |
400 | No asset with the given ID exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[ResponsibilityImpl] set_asset_responsibilities(asset_id, set_asset_responsibilities_request=set_asset_responsibilities_request)
Set asset responsibilities
Sets responsibilities for the asset with the given ID. All the relations described by this request will replace the existing ones (identified with asset as one end, relation type and direction of the relation).
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
set_asset_responsibilities_request = collibra_core.SetAssetResponsibilitiesRequest() # SetAssetResponsibilitiesRequest | The relations to be set on given asset (optional)
try:
# Set asset responsibilities
api_response = api_instance.set_asset_responsibilities(asset_id, set_asset_responsibilities_request=set_asset_responsibilities_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->set_asset_responsibilities: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset | |
set_asset_responsibilities_request | SetAssetResponsibilitiesRequest | The relations to be set on given asset | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The changed responsibilities | - |
400 | No asset with the given ID exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Tag] set_tags_for_asset(asset_id, set_asset_tags_request=set_asset_tags_request)
Set asset tags
Sets tags for the asset with the given ID. The asset will contain only those tags specified in the request.
- Basic Authentication (basicAuth):
from __future__ import print_function
import time
import collibra_core
from collibra_core.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost/rest/2.0
# See configuration.py for a list of all supported configuration parameters.
configuration = collibra_core.Configuration(
host = "http://localhost/rest/2.0"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = collibra_core.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with collibra_core.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = collibra_core.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The ID of the asset
set_asset_tags_request = collibra_core.SetAssetTagsRequest() # SetAssetTagsRequest | The tags to be set on given asset (optional)
try:
# Set asset tags
api_response = api_instance.set_tags_for_asset(asset_id, set_asset_tags_request=set_asset_tags_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->set_tags_for_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset | |
set_asset_tags_request | SetAssetTagsRequest | The tags to be set on given asset | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The changed tags | - |
400 | No asset with the given ID exists | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]