Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CMDB requests #101

Open
SergioBlnc opened this issue Nov 21, 2020 · 1 comment
Open

Add support for CMDB requests #101

SergioBlnc opened this issue Nov 21, 2020 · 1 comment

Comments

@SergioBlnc
Copy link

SergioBlnc commented Nov 21, 2020

Allow to query from tables cmdb_ci*

@rbw
Copy link
Owner

rbw commented Nov 22, 2020

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: #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants