Converting a DBKey to a URI


If you have the DBKey of an object, you can get its URI by using the BLCLI command, GenericObject : getRESTfulURI.

The syntax is:

GenericObject getRESTfulURI dbKey

For example:


GenericObject getRESTfulURI  DBKey:SDeviceModelKeyImpl:8-2000034

This is the use case for the id prefix — after you have obtained the URI, you can pass in the URI with RESTful commands that use the id prefix. (See URI-syntax-examples.)

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Server Automation 26.1