Skip to content

Commit 25208fa

Browse files
Create KeyValueCreationFromDCIgroups.README.md
1 parent 89b6674 commit 25208fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This script automatically creates key-value entries for Configuration Items (CIs) that belong to query-based CMDB groups, ensuring consistent tagging and service association within the CMDB.
2+
It is particularly useful for maintaining Application-level key associations (key = "Application") dynamically — based on group membership from Query-Based Services (cmdb_ci_query_based_service).
3+
4+
This script automates the process of creating records in the cmdb_key_value table for all CIs belonging to query-based service groups (cmdb_ci_query_based_service) that are linked with CMDB groups.
5+
It ensures that:
6+
* Each CI gets a key-value pair where
key = “Application” and
value = <ServiceName> + “AS”
7+
* No duplicate key-value entries are created for the same CI.
8+
9+
10+
Build the Tag based mapping define the key and values for every application service and build the map,Here I am grouping CI's with DCI CI Groups.

0 commit comments

Comments
 (0)