aiosnow icon indicating copy to clipboard operation
aiosnow copied to clipboard

Add support for CMDB requests

Open SergioBlnc opened this issue 3 years ago • 1 comments

Allow to query from tables cmdb_ci*

SergioBlnc avatar Nov 21 '20 20:11 SergioBlnc

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

rbw avatar Nov 22 '20 23:11 rbw