How can I publish a DV view using an API Call?

How can I publish a DV view using an API Call?

book

Article ID: KB0081258

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization 7.0.0 and higher

Description

How can I publish a DV view using an API Call?

Issue/Introduction

How can I publish a DV view using an API Call?

Resolution

The API call /services/webservices/system/admin/resource/operations/createLink may be used. This procedure creates a link in the /services directory that points to a TABLE or a PROCEDURE resource. The link effectively publishes a resource so that it can be consumed by external clients.

One thing to be aware of is that if the published resource (e.g. "mypubView1") already exists, the call will fail with a message of the type below:
    A resource named "mypubView1" already exists at path "/services/webservices/examples" with the same type.

in which case, you would need to delete "/services/databases/examples/mypubView1" before executing the call.