aiosnow
aiosnow copied to clipboard
Add support for CMDB requests
Allow to query from tables cmdb_ci*
Hello,
This should be possible already, you need to declare a custom TableModel
, using one or more aiosnow.fields
. Here's a totally unrelated Issue with some CMDB schemas: https://github.com/rbw/aiosnow/issues/96.
The idea is to ship more declared TableModel
models using ServiceNow default schemas, with the library, such as the ones you mention, but right now they doesn't exist - so you'll need to roll your own (which is pretty straightforward), and decide whether you want to share them.
To get started, I suggest you read these:
Model documentation https://aiosnow.readthedocs.io/en/latest/usage/model/index.html
Query documentation https://aiosnow.readthedocs.io/en/latest/usage/query/index.html
...and check out the working examples: https://github.com/rbw/aiosnow/tree/master/examples