nmathar / opsi-api-wrapper Goto Github PK
View Code? Open in Web Editor NEWOPSI API Wrapper
Home Page: https://nmathar.github.io/opsi-api-wrapper/
OPSI API Wrapper
Home Page: https://nmathar.github.io/opsi-api-wrapper/
Add Example Code to jsdoc comments with asycn examples
echo '{ "method": "getProductStates_hash", "params": ["testclient.opsi.lan", ""], "id": 1 }'
List all Products with state for client
List product properties for product
change product properties
update state for product
install product for client
reset product state
show error for product if install failed
list product dependencies
if all function working i think of a refactoring by a typescript async version
better hardware info method "getHardwareInformation_hash"
more infos for all client array
add parentGroupId to object you get an uncatched error. I think the error catch should be result.error.message
{
"id": 1,
"result": null,
"error": {
"message": "Not a <class 'OPSI.Object.Group'>: '{u'description': u'this is a test', u'notes': u'huhu', u'parentGroupId': u'', u'type': u'HostGroup', u'id': u'test'}': Bad object id: ''",
"class": "ValueError"
}
}
Create interfaces
add interfaces to functions (updateGroup, updateClient)
{ ident: 'client01.opsi.lan',
description: 'Description',
created: '2019-02-19 18:11:10',
inventoryNumber: '',
ipAddress: null,
notes: '',
oneTimePassword: null,
lastSeen: '2019-02-19 18:11:10',
hardwareAddress: null,
opsiHostKey: 'c748d0b0d2015dfda0306dc0a862a612',
type: 'OpsiClient',
id: 'client01.opsi.lan' }
{ ident: 'group01',
description: 'Group description',
notes: '',
parentGroupId: null,
type: 'HostGroup',
id: 'group01' }
Move with this tool https://www.npmjs.com/package/vuepress-jsdoc to Vuepress
some test functions are not called
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.