[gelöst] method with filter into curl option
Verfasst: 26 Apr 2023, 19:45
Wie ist für curl die richtige Syntax um die Einträge gefilter zu bekommen? Ich finde keine Dokus dazu.
Auf dem Server funftioniert es mit:
Code: Alles auswählen
curl --insecure --user admin:password -H "Content-Type: application/json" --data '{"attributes": [???], "filter": "???" , "method": "productPropertyState_getObjects"}' https://1.2.3.4:4447/rpc
Code: Alles auswählen
opsi-cli --attributes propertyId,values jsonrpc execute productPropertyState_getObjects [] '{"objectId":"pcid.domain", "productId":"testprodct"}'