Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
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.
Hi,
I don't know of an API call to do that.
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.
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.
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.
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.