Introspection APIs sample input - IntrospectResourcesTask and IntrospectResourcesResult
book
Article ID: KB0082811
calendar_today
Updated On:
Products
Versions
TIBCO Data Virtualization
All Versions
Description
IntrospectResourcesTask:
Introspection is the process of analyzing native resources in a data source and creating resources within the TDV that represent them. The introspection plan provides details on what exactly should be introspected. This includes resources to be added, updated, or removed; whether to update all previously introspected resources; introspection attributes for individual resources; and other options.
The introspection task is run within an independent background transaction on the server. It is not necessary to call introspectResourcesTask, within an explicit transaction in order to call introspectResourceResult or cancelServerTask. This background transaction survives across server restarts until it is completed.
Sample Input XML for IntrospectResourcesTask API -
This API is used to get the result for resources those are introspected by API introspectResourcesTask. Results are in the form of introspection change entries, which contain the path, type, and subtype of the resource that was introspected, the introspection action that occurred, and a message, if available, regarding introspection of that resource. Subsequent calls to this operation incrementally return the full set of results. If the block element is set and true, this operation blocks until the task is complete. Otherwise, this operation does not block. The page size controls the maximum number of change entries that are returned from this call.
After successful execution of introspectResourcesTask, you will recieve the task id for introspection task as an output. Copy the taskId ( for example : 11001) and replace the taskId in input_introspectResourcesResult xml.
Execute the API in studio and using the input_introspectResourcesResult xml
You should see the results for re-instrospection associated with given task id.
Sample Input XML for introspectResourcesResult API -