I am trying to get the summary of the fields using search/jobs api from python program.
When using the curl command, I am able to get only the required fields specified (as below) but using Python program, I am getting required fields and also the default fields like "source","host"
How do I include only the required fields in the response?
Using CURL:
POST:
curl -k -u uid:pwd https://localhost:8089/services/search/jobs -d status_buckets=1 -d rf=ID1 -d rf=ID2 -d search="search source = "test.txt""
GET:
curl -k -u uid:pwd https://localhost:8089/services/search/jobs//summary --get -d f=ID1 -d f=ID2
Using Python Program:
POST:
pdata = {'status_buckets':'1','rf':['ID1','ID2'],'search':source = "test.txt"}
resp = requests.post(url = API_EndPoint1, data = pdata)
GET:
gdata ={'f':['ID1','ID2']}
resp = requests.get(url = API_EndPoint2, data = gdata)
Thank you
... View more