Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
pano_e
Partner - Contributor II
Partner - Contributor II

QlikView Automate Cluster Configuration Through API

We're trying to automate creating a QlikView Cluster (May 2022) and I'm having a bit of difficulty finding the relevant QlikView Management Service API calls to create the QVS Cluster - I can see there's QlikView-CLI on GitHub but the examples don't cover creating the cluster from scratch. 

Has anyone done this before/have some examples to work from? Potentially I can use Get-QVQVSSettings to get the current settings and update them but when building a new cluster it returns an empty object. 

Labels (2)
2 Solutions

Accepted Solutions
NadiaB
Support
Support

Hi @pano_e 

I haven't tried to do this before, but  looking at the documentation we have method to retrieve current QVS information GetQVSSettings
The object to work for should be QVSSettings, this one has another object called Cluster, this is probably the one needs to be changed programatically and once is done save back the QVSSettings that would include already the Cluster object:

The method to save changes is SaveQVSSettings

Methods documentation:
https://help.qlik.com/en-US/qlikview-developer/May2022/Subsystems/QMSAPIref/Content/PIX.Services.V12...

QVSSettings object documentation
https://help.qlik.com/en-US/qlikview-developer/May2022/Subsystems/QMSAPIref/Content/PIX.QMSAPI.DataO...

Hope it helps.

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm

View solution in original post

pano_e
Partner - Contributor II
Partner - Contributor II
Author

the issue we were having was that our QVPR was blank for a new instance. through the QMC we're able to populate this from scratch. for the QMS API we migrated over the default QVPR that exists on a new build and were able to use GetQVQVSSettings and also get a qvsid that let us save the changes. 

View solution in original post

5 Replies
Bill_Britt
Former Employee
Former Employee

Hi,

I don't know of an API call to do that.

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
pano_e
Partner - Contributor II
Partner - Contributor II
Author

I can use ServiceInfo to create the QlikViewServer object but I'm not sure how to save it. I can also create QVSSettings but when I save it using SaveQVSSettings nothing seems to change. I use the QVSID from ServiceInfo but I suspect I need to save ServiceInfo first but I'm not sure how to do that.

NadiaB
Support
Support

Hi @pano_e 

I haven't tried to do this before, but  looking at the documentation we have method to retrieve current QVS information GetQVSSettings
The object to work for should be QVSSettings, this one has another object called Cluster, this is probably the one needs to be changed programatically and once is done save back the QVSSettings that would include already the Cluster object:

The method to save changes is SaveQVSSettings

Methods documentation:
https://help.qlik.com/en-US/qlikview-developer/May2022/Subsystems/QMSAPIref/Content/PIX.Services.V12...

QVSSettings object documentation
https://help.qlik.com/en-US/qlikview-developer/May2022/Subsystems/QMSAPIref/Content/PIX.QMSAPI.DataO...

Hope it helps.

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm
pano_e
Partner - Contributor II
Partner - Contributor II
Author

Thank you for the detailed reply. I'm running into an issue where I'm testing with a new deployment so GetQVSSettings doesn't return any details. I'm trying to use QVSSettings to build the config and then SaveQVSettings to publish the changes - but it doesn't seem to make any changes. I suspect I have to do something with ServiceInfo and use the ID generated but I'm not sure how to apply ServiceInfo.

pano_e
Partner - Contributor II
Partner - Contributor II
Author

the issue we were having was that our QVPR was blank for a new instance. through the QMC we're able to populate this from scratch. for the QMS API we migrated over the default QVPR that exists on a new build and were able to use GetQVQVSSettings and also get a qvsid that let us save the changes.