Hello all,
I try to make python script using cpapi SDK.
When i try to run a where-used command i have an error
Code :
where_used = client.api_query("where-used","standard",payload={"name" : "dummy"})
if where_used.success is False:
print("Failed:\n{}".format(where_used.error_message))
exit(1)
print(where_used)
Result :
Failed:
code: generic_err_invalid_parameter_name
message: Unrecognized parameter [limit]
And indeed in Json request i have this, seems that limit parameter is added somewhere on the SDK
"request": {
"headers": {
"Accept": "*/*",
"Content-Length": 72,
"Content-Type": "application/json",
"User-Agent": "python-api-wrapper",
"X-chkp-sid": "I9L3kLZoRAVLTC_KVoD-KD3mu8oKhE6QlX4TJCQyIxs"
},
"payload": {
"details-level": "standard",
"limit": 50,
"name": "dummy",
"offset": 0
},
"url": "/web_api/v1.8/where-used"
},
"response": {
"data": {
"code": "generic_err_invalid_parameter_name",
"message": "Unrecognized parameter [limit]"
},
"status_code": 400
Should i use wrong parameters in client.api_query ?
Thanls for your help