Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QVS API Support

My question is if there is any help or guidance on how to use the QVS API besides the help file (which is not very helpful...).

It doesn't seem that there is much examples out there on how to use the QVS API. Please can anyone shed some light!

I need to use the API to get detailed license information, ie to whom is licenses assigned and usage, as well as reload scheduled information.

Any help would be appreciated!!!!

57 Replies
StefanBackstrand
Partner - Specialist
Partner - Specialist

Use the method GetDocumentTask(). It takes "DocumentTaskID" and "Scope" as parameters. You can get the Document task ID from a number of methods, but if you do not have it listed, you will probably have to go via GetSourceDocumentFolders, GetSourceDocumentNodes, GetTasksforDocument and then from there extract the task id and send into GetDocumentTask.

Not applicable
Author

Thank you Stefan. It worked fine.

I have another issues now. While I was developing the website, I could use the API. After I published the website, I get a "Forbidden" server error on the pages that uses the API. When I do a test to see who the current user identity is when running the website in the deployed environment, I get my username back so it should have worked.

Do you have any ideas how I could solve this?

Not applicable
Author

Stefan,

Thanks a lot for the help provided. I have succesfully created all the functions i need.

The problem is that i have done them in C#, but i have converted it to VB because i need to mix it up with another code i already have. Now when i converted it to VB, i had to convert also the classes ServiceKeyBehaviorExtensionElement, ServiceKeyClientMessageInspector and ServiceKeyEndpointBehavior, but something seems to not work because the function QMSClient.GetServices(ServiceTypes.QlikViewServer) doesn´t get me an ID that i can then pass to the other functions.

Do you have any ideas? Have you happened to work it out on VB?

thanks

Pablo

Not applicable
Author

Hello Amien, I cant find the the attachment for managing CALs etc you put in as a response to this topic. Could you put it up again for me, it would be very helpful for me - would save me hours

regards,

Johan

Not applicable
Author

Does anyone have an example for managing CALs using the API?

Not applicable
Author

I am also interested in finding out how to unassign a CAL programatically.  I am able to use the API to list the CALs but I can't find any methods to un-assign a CAL.  Below is how I am listing them:

QMSBackendClient apiClient = new QMSBackendClient();

ServiceKeyClientMessageInspector.ServiceKey = apiClient.GetTimeLimitedServiceKey();

List<ServiceInfo> qvsServices = apiClient.GetServices(ServiceTypes.QlikViewServer);

CALConfiguration NamedCALConfig = apiClient.GetCALConfiguration(qvsServices[0].ID, CALConfigurationScope.NamedCALs);
CALConfiguration.CALConfigurationNamedCALs namedcals = NamedCALConfig.NamedCALs;


foreach (AssignedNamedCAL cal in namedcals.AssignedCALs)
{

     Console.WriteLine(String.Concat(cal.UserName, "|", cal.QuarantinedUntil, "|", cal.LastUsed));

}

Not applicable
Author

Can you send me your code?  I am having a hard time trying to implement this into my current program.  I think I am missing a service reference somewhere.

Anonymous
Not applicable
Author

Hi Stefan,

I am able to create and built a sample in console application but the same is not working in ASP.net application.

Could you please provide a sample code or step by step guide using ASP.net application.

especially step 10-13 in Qlikview Management API help file.

Thank you.

Venkatesh

lhr
Employee
Employee

i think SaveCALConfiguration could be the call you are looking for.

Anonymous
Not applicable
Author

Can anyone help me

I am getting the following error when executing my project.

The type 'Qv_License_Management.Service_Support.ServiceKeyBehaviorExtensionElement, Qv_License_Management, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' registered for extension 'serviceKeyBehavior' could not be loaded. (C:\Users\e0615022\documents\visual studio 2010\Projects\Qv License Management\Qv License Management\bin\Debug\Qv License Management.vshost.exe.config line 12)

Attached my project.