neo4j
setup
install
#sudo apt remove -y neo4j
#sudo rm -rf /usr/share/neo4j
sudo apt update -y
sudo apt install -y neo4j
cypher
create new node group
CREATE (n:Group {objectid:'9bc58e05-b7c9-48e1-82f2-3c7b59edc052', name: 'POLICY-CUSTOM', displayname:'Policy-custom', tenantid:'3ad13ed5-8b3b-4b90-b526-6bd36b1341f4'});
CREATE (n:Computer {objectid:'5b084d4d-559b-475a-9f69-429120080fc1', name: 'ENVIRONMENT-00000001', displayname:'Environment-00000001', tenantid:'3ad13ed5-8b3b-4b90-b526-6bd36b1341f4'});
CREATE (n:Computer {objectid:'e8948bec-c2b4-42d6-82b9-767f1052c120', name: 'ENVIRONMENT-00000002', displayname:'Environment-00000002', tenantid:'3ad13ed5-8b3b-4b90-b526-6bd36b1341f4'});
CREATE (n:Computer {objectid:'3f5d4a3a-1b20-496f-a08b-88d9c39bdf83', name: 'ENVIRONMENT-00000003', displayname:'Environment-00000003', tenantid:'3ad13ed5-8b3b-4b90-b526-6bd36b1341f4'});
MATCH (a:AZGroup {displayname: 'DTAPM_AppFwAdmin_U'}), (b:Group {name: 'POLICY-CUSTOM'}) CREATE (a)-[r:Owns]->(b);
MATCH (a:Group {name: 'POLICY-CUSTOM'}), (b:Computer {name: 'ENVIRONMENT-00000001'}) CREATE (a)-[r:Owns]->(b);
MATCH (a:Group {name: 'POLICY-CUSTOM'}), (b:Computer {name: 'ENVIRONMENT-00000002'}) CREATE (a)-[r:Owns]->(b);
MATCH (a:Group {name: 'POLICY-CUSTOM'}), (b:Computer {name: 'ENVIRONMENT-00000003'}) CREATE (a)-[r:Owns]->(b);