Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
yosuke-coupa
Partner - Contributor III
Partner - Contributor III

Need Example for OEM Workflow (REST API Data Connection creation)

Hello,

I am working on understanding the REST APIs to integrate Qlik into our own custom workflow.  I have questions regarding the scenario below:  

Assumption

  • QVF file with no data, references a space-agnostic Data Connection called 'my-data-connection' is available
  • A bot user authenticated with regional OAuth is making all API calls as a "backend service" i.e. they are operating as a tenant admin.

Steps

  1. Create a Shared Space (POST /api/v1/spaces)
  2. Import App with no data into Space (POST /api/v1/apps/import)
  3. Create Data Connection with name "my-data-connection" (POST /api/v1/data-connection)
  4. Reload data (POST /api/v1/reload)
  5. Add users and permissions, etc.  

Question

In step 3, the documentation around the parameters required to create a Data Connection is not very detailed.  We are working with MS SQL Server, and it isn't clear what the qConnectStatement should be.

  • Connection strings contain the user name and password, and it is unclear how to encrypt them with the API.  
  • Creating the Data Connection through the UI and observing the network traffic is not a good reference as it does not use the same calls as the publicly available REST API.
  • After trying several variations on the qConnectStatement, ultimately they all fail the data load with an error stating that the "Connector 'my-data-connection' not found".  In the UI, it manifests as an UI modal alert stating "Error connecting to the Sense service".
Labels (2)
2 Solutions

Accepted Solutions
DaveChannon
Employee
Employee

Hi @yosuke-coupa 

Currently our public APIs don't handle credentials, this is handled by the dcaas API (which is what you see in the console). You need to use both to create a connection today. As part of improving the usability of these APIs, we are building a new API to handle both data connection creation and credential management. This will remove the need to create the mysterious qConnectionStatement, and you'll pass just the attributes that you see in the wizard to the API.

Please ping your account team and ask them to connect with me, I can show you what we're working on and the timelines we're working to - MSSQL is currently planned in the first slice.

View solution in original post

DaveChannon
Employee
Employee

Hi @paulcalvet 

The first phase is currently in testing and we're working towards release. Athena should be in the second phase, currently planned for later this year. If you'd like to talk about what we're building, please feel free to reach out!

View solution in original post

4 Replies
DaveChannon
Employee
Employee

Hi @yosuke-coupa 

Currently our public APIs don't handle credentials, this is handled by the dcaas API (which is what you see in the console). You need to use both to create a connection today. As part of improving the usability of these APIs, we are building a new API to handle both data connection creation and credential management. This will remove the need to create the mysterious qConnectionStatement, and you'll pass just the attributes that you see in the wizard to the API.

Please ping your account team and ask them to connect with me, I can show you what we're working on and the timelines we're working to - MSSQL is currently planned in the first slice.

paulcalvet
Partner - Specialist
Partner - Specialist

Hello @DaveChannon ,

We have the same problem to create Athena connection with API.

Do you know when it will be available ?

Thanks.

DaveChannon
Employee
Employee

Hi @paulcalvet 

The first phase is currently in testing and we're working towards release. Athena should be in the second phase, currently planned for later this year. If you'd like to talk about what we're building, please feel free to reach out!

paulcalvet
Partner - Specialist
Partner - Specialist

Thank you Dave, I will see ho it works with the first connector and wait for Athena/

Regards