Skip to main content

Config Types

With "Config Types" we define where we store the inventory values (which Table storage), which scripts we want to use for List and Object Observation, some UI properties for the portal like search fields, etc.

Config type JSON definition

{
"properties": [...],
"id": "<uniquename for configtype>",
"name": "<friendly name for the portal>",
"tableName": "<tableStorage>",
"partitionName": "<partition>",
"enabled": true,
.... ,
"listObservation": "<configTypeId>/List",
"objectObservation": "<configTypeId>/Object",
"searchProperties": ["id", "displayName", ...],
"uiProperties": {...}
}

All Config types from JSON files are imported in the database when Governor API starts. Then we could use API to add more types or modify existing ones. As best practice is a good idea to have in JSON format too for the next restart because if not the auto-import task could overwrite our changes.