Please help with the correct way to filter via REST API - All the below options return everything...
cmdbuild_url = "http://172.29.126.125:8080/cmdbuild/services/rest/v2/classes/AWSServer/cards"
#data = "{filter: '{\"attribute\":{\"simple\":{\"attribute\":\"CODE\",\"operator\":\"EQUALS\",\"value\":[\"FCP-AL-WEB-RN03\"]}}}'}"
data = '{"CQL":"from AWSServer WHERE Description CONTAINS \'linux\'"}'
#data = "{filter: '{\"cql\": \"from AWSServer where InstanceID EQUALS \'i-049347a98af506541\'\"}'}"
#data = "{filter: {'CODE': 'FCP-AL-WEB-RN03'}}"
headers = {'Content-type': 'application/json', 'Accept': '*/*', 'CMDBuild-Authorization': sessionid }
r = requests.get(cmdbuild_url, data=json.dumps(data), headers=headers)
pprint (r.json())