How to call TIBCO Data Virtualization Web Service Operation introspectResourcesTask using curl?
book
Article ID: KB0072197
calendar_today
Updated On:
TIBCO Data Virtualization
|
8.3 and above
|
Description
This article explains the steps of how to call TDV Web Service operation introspectResourceTask using curl.
Issue/Introduction
This article explains how to call TIBCO Data Virtualization Web Service operation introspectResourceTask using curl.
Environment
All Supported OS
Resolution
curl command:
curl http://<TDV server IP>:<TDV base port>/services/system/admin/resource/resourcePort.ws \
-X POST \
-u admin:password!! \
-H 'Content-Type: text/xml; charset="utf-8"' \
-H 'SOAPAction: introspectResourcesTask' \
-d "@introspectResourcesTask.xml"
introspectResourceTask.xml:
<?xml version="1.1" encoding="utf-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body><resource:introspectResourcesTask xmlns:resource="http://www.compositesw.com/services/system/admin/resource" xmlns:common="http://www.compositesw.com/services/system/util/common">
<resource:path>shared/tdv_ds/L0_Physical/Datasources/Postgres_ds</resource:path>
<resource:plan>
<resource:updateAllIntrospectedResources>true</resource:updateAllIntrospectedResources>
<resource:failFast>false</resource:failFast>
<resource:commitOnFailure>false</resource:commitOnFailure>
<resource:autoRollback>true</resource:autoRollback>
<resource:scanForNewResourcesToAutoAdd>true</resource:scanForNewResourcesToAutoAdd>
<resource:entries>
<resource:entry>
<resource:resourceId>
<resource:path/>
<resource:type>DATA_SOURCE</resource:type>
<resource:subtype>NONE</resource:subtype>
</resource:resourceId>
<resource:action>ADD_OR_UPDATE_RECURSIVELY</resource:action>
<resource:attributes>
<common:attribute>
<common:name>autoAddChildren</common:name>
<common:type>BOOLEAN</common:type>
<common:value>true</common:value>
</common:attribute>
</resource:attributes>
</resource:entry>
</resource:entries>
</resource:plan>
</resource:introspectResourcesTask>
</soap-env:Body>
</soap-env:Envelope>
Note: change the path according to your data source path in TIBCO Data Virtualization.
Feedback
thumb_up
Yes
thumb_down
No