05.02.2013 Views

opsi manual opsi version 4.0.2 - opsi Download - uib

opsi manual opsi version 4.0.2 - opsi Download - uib

opsi manual opsi version 4.0.2 - opsi Download - uib

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>opsi</strong> <strong>manual</strong> <strong>opsi</strong> <strong>version</strong> <strong>4.0.2</strong><br />

• attributes<br />

• filter<br />

34 / 193<br />

The attributes parameter is used query only for some properties of an object. If you are using attributes the returned<br />

object has all attribute keys, but only values the attribute you asked for and for all attributes which are used to<br />

identify this object. All other attributes have the value none.<br />

For Example you will get by calling the method product_getObjects with attributes:["name"] for the product javavm:<br />

"onceScript": None,<br />

"ident": "javavm;1.6.0.20;2",<br />

"windowsSoftwareIds": None,<br />

"description": None,<br />

"setupScript": None,<br />

"changelog": None,<br />

"customScript": None,<br />

"advice": None,<br />

"uninstallScript": None,<br />

"userLoginScript": None,<br />

"name": "Sun Java Runtime Environment",<br />

"priority": None,<br />

"packageVersion": "2",<br />

"productVersion": "1.6.0.20",<br />

"updateScript": None,<br />

"productClassIds": None,<br />

"alwaysScript": None,<br />

"type": "LocalbootProduct",<br />

"id": "javavm",<br />

"licenseRequired": None<br />

If you like to not ask for attributes but want to use the second parameter filter you have to give as attribute parameter<br />

[].<br />

The parameter filter is used to define which objects you want to get. For example if you are using the filter {<br />

"id":"javavm" } on the method product_getObjects you will get only the object(s) which describe the product javavm.<br />

If you are using methods which expecting one ore more objects, these objects have to be given as JSON objects or as<br />

array of JSON objects.<br />

The most important objects are:<br />

• auditHardwareOnHost (client specific hardware information)<br />

• auditHardware (client independent hardware information)<br />

• auditSoftwareOnClient (client specific software information)<br />

• auditSoftware (client independent software information)<br />

• auditSoftwareToLicensePool (license management)<br />

• configState (administration of client host parameters)<br />

• config (administration of host parameter defaults)<br />

• group (group administration)<br />

• host (server and clients)<br />

• licenseContract (license management)<br />

• licenseOnClient (license management)<br />

• licensePool (license management)<br />

• objectToGroup (group administration)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!