The purpose of my topic is: retrieve the name of machines which has the "actionRequest" Setup.
Via the web interface of opsi: https://XXX.yourdomain.fr/interface/extend/configed (opsiconfd interface page)
The Path on: interface / extend / configed
The Method on: productOnClient_getHashes
I get a list of my computer park:
Code: Alles auswählen
{
"id": 1,
"result": [
{
"actionProgress": "",
"actionResult": "successful",
"clientId": "ORDINATEUR1",
"modificationTime": "2014-02-10 15:01:35",
"actionRequest": "none",
"targetConfiguration": "installed",
"productVersion": "9.20",
"productType": "LocalbootProduct",
"type": "ProductOnClient",
"lastAction": "setup",
"packageVersion": "3",
"actionSequence": -1,
"installationStatus": "installed",
"productId": "7-zip"
},
{
"actionProgress": "",
"actionResult": "successful",
"clientId": "ORDINATEUR2",
"modificationTime": "2014-02-12 12:43:20",
"actionRequest": "setup",
"targetConfiguration": "installed",
"productVersion": "9.20",
"productType": "LocalbootProduct",
"type": "ProductOnClient",
"lastAction": "setup",
"packageVersion": "3",
"actionSequence": -1,
"installationStatus": "installed",
"productId": "7-zip"
},
So I would find a way to retrieve only the name and productId of computers with the attribute "actionRequest" set to "setup".
I read a topic on the use of SOAP's, I also throw in the parsing of an HTML page to sort the computers via the source code of the web page in python but I think its not clean.
Do you have any advice to give me to reach my goal ??
Thank you much