Overview
The Context Graph is a graph database that stores:- Nodes: Entities from any source (cloud resources, databases, custom data, CSV imports, etc.)
- Relationships: Connections between entities (CONTAINS, USES, MEMBER_OF, custom relationships, etc.)
- Properties: Entity metadata and attributes from the source system
Quick Start
Graph Statistics
Get overview statistics about the graph:Filter by Integration
List Nodes
Basic Listing
Filter by Integration
Pagination Example
Get Specific Node
Retrieve details for a specific node by ID:Search Nodes
Structured Search
Search nodes using structured filters:Text Search
Search nodes by property values:Advanced Search with Pagination
Node Labels (Types)
List all node types in the graph:Filter Labels by Integration
Common Node Types
AWS Integration:EC2Instance- EC2 virtual machinesS3Bucket- S3 storage bucketsRDSInstance- RDS databasesEKSCluster- Kubernetes clustersKMSKey- Encryption keysAWSRole- IAM rolesAWSUser- IAM usersAWSPolicy- IAM policiesAWSVpc- Virtual private cloudsEC2SecurityGroup- Security groupsLoadBalancerV2- Application/Network load balancers
AzureDisk- Managed disksAzureStorageAccount- Storage accountsAzureStorageBlobContainer- Blob containersAzureResourceGroup- Resource groupsAzureSubscription- Azure subscriptions
- Custom node types defined by your data source
- Types are determined by the data structure and labels in your integration
Relationships
Get Node Relationships
Filter by Direction
Filter by Relationship Type
List All Relationship Types
Common Relationship Types
CONTAINS- Container/containment relationshipsUSES- Usage dependenciesMEMBER_OF_AWS_VPC- VPC membershipATTACHED_TO- Attachment relationships (volumes, NICs)ASSOCIATED_WITH- General associationsPOLICY- Policy attachmentsTAGGED- Tag relationshipsTRUSTS_AWS_PRINCIPAL- IAM trust relationshipsALLOWS_TRAFFIC_FROM- Security group rulesROUTES_TO_GATEWAY- Routing relationships
Subgraph Queries
Get a subgraph (portion of the graph) starting from a specific node:Use Cases for Subgraphs
Custom Cypher Queries
Execute custom Cypher queries for advanced graph operations:Advanced Cypher Examples
Integration Management
List available integrations in the graph:Health Check
Check the health of the Context Graph service:Practical Use Cases
1. Find All Production Entities
2. Analyze Entity Dependencies
3. Find Unused Entities
4. Security Audit
Error Handling
Best Practices
1. Use Pagination
2. Filter by Integration
3. Use Specific Queries
API Reference
Methods
| Method | Description |
|---|---|
health() | Check graph service health |
list_nodes(integration, skip, limit) | List all nodes with pagination |
get_node(node_id, integration) | Get specific node by ID |
search_nodes(search_data, integration, skip, limit) | Structured node search |
search_nodes_by_text(text_query, integration, skip, limit) | Text-based node search |
get_relationships(node_id, direction, relationship_type, integration, skip, limit) | Get node relationships |
get_subgraph(node_id, depth, integration) | Get subgraph from node |
list_labels(integration, skip, limit) | List all node types |
list_relationship_types(integration, skip, limit) | List all relationship types |
get_stats(integration, skip, limit) | Get graph statistics |
execute_query(query) | Execute custom Cypher query |
list_integrations(skip, limit) | List available integrations |