Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
parviz_asoodehfard
Contributor III
Contributor III

Similar API call with different result (Full/get count)

I'm going to use Get count but I got 404 (No matching endpoint found).

I can use "Full" and I use the same parameters for "Get count". I assume the parameters (like header, method, certification, the way using session) should be the same. 

These are my URL for Full and Get count

FULL:
'https://xxx:4242/qrs/task/full?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&xrfkey=1234567890123456'
Get count:
'https://xxx:4242/qrs/task/count?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&xrfkey=1234567890123456'

 

and these are the way I call them in python:

import requests as req

session=req.Session()
cafile=(r'C:\Qlik files\client.pem',
r'C:\Qlik files\client_key.pem')


hd= { 'Pragma': 'no-cache',
'X-Qlik-User': 'UserDirectory=internal; UserId=sa_repository',
'x-Qlik-Xrfkey': '1234567890123456',
'Accept': 'application/json',
'Content-Type': 'application/json'}


method='GET'
#url='https://xxx:4242/qrs/task/full?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&xrfkey=1234567890123456'

url='https://xxx:4242/qrs/task/count?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&xrfkey=1234567890123456'
body=None

request=req.Request(method, url, headers=hd,json=body, auth=session.auth)
pr=session.prepare_request(request)
response = session.send(pr, cert=cafile, verify=False, allow_redirects=False)

print(response)

 

1 Solution

Accepted Solutions
Levi_Turner
Employee
Employee

/qrs/task/count does not exist but /qrs/reloadtask/count & /qrs/externalprogramtask/count & /qrs/usersynctask/count all exist.

/qrs/task is a synthetic list of all of the different types of tasks. In scrolling through the list of endpoints available for task, I am not seeing count as an option.

View solution in original post

1 Reply
Levi_Turner
Employee
Employee

/qrs/task/count does not exist but /qrs/reloadtask/count & /qrs/externalprogramtask/count & /qrs/usersynctask/count all exist.

/qrs/task is a synthetic list of all of the different types of tasks. In scrolling through the list of endpoints available for task, I am not seeing count as an option.