cherwellapi Routers
routers Base Class
Relationships Router
Cherwell Relationships Router
- class cherwellapi.routers.relationships.RelationshipsRouter(url, headers, user, password, client_id, ssl_verify)[source]
Bases:
CherwellRouterClass for interacting with Cherwell relationship functions
Get related business objects given a business object, record and relationship
Search Router
Cherwell Search Router
- class cherwellapi.routers.search.SearchRouter(url, headers, user, password, client_id, ssl_verify)[source]
Bases:
CherwellRouterClass for interacting with Cherwell search functions
Translation Router
The Cherwell translation router is a specialized router that allows common names to be used for business objects, records, fields, etc in a way that remains performant.
The first time a resource is queried the results are stored in the router allowing repeat queries within the same session to use cached data for rapid retrieval.
- class cherwellapi.routers.translation.TranslationRouter(url, headers, user, password, client_id, ssl_verify)[source]
Bases:
CherwellRouter- ci_index = None
Class translating Cherwell objects/ids into friendly names and vice versa
- get_ci_id(ci)[source]
Returns the business object id of a configuration item. Either the Name or Display Name may be used. Name is searched first by default.
- Parameters:
ci (str) – Name or Display name of the CI