Skip to main content
The Context Graph Service provides access to the knowledge graph containing entities and their relationships from various data sources. Query AWS, Azure, Github, Custom integrations, and any other data source to understand topology, find dependencies, and enable intelligent agent operations.

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

Search nodes using structured filters:
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 machines
  • S3Bucket - S3 storage buckets
  • RDSInstance - RDS databases
  • EKSCluster - Kubernetes clusters
  • KMSKey - Encryption keys
  • AWSRole - IAM roles
  • AWSUser - IAM users
  • AWSPolicy - IAM policies
  • AWSVpc - Virtual private clouds
  • EC2SecurityGroup - Security groups
  • LoadBalancerV2 - Application/Network load balancers
Azure Integration:
  • AzureDisk - Managed disks
  • AzureStorageAccount - Storage accounts
  • AzureStorageBlobContainer - Blob containers
  • AzureResourceGroup - Resource groups
  • AzureSubscription - Azure subscriptions
Custom Integrations:
  • 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 relationships
  • USES - Usage dependencies
  • MEMBER_OF_AWS_VPC - VPC membership
  • ATTACHED_TO - Attachment relationships (volumes, NICs)
  • ASSOCIATED_WITH - General associations
  • POLICY - Policy attachments
  • TAGGED - Tag relationships
  • TRUSTS_AWS_PRINCIPAL - IAM trust relationships
  • ALLOWS_TRAFFIC_FROM - Security group rules
  • ROUTES_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

Next Steps

Control Plane Overview →

Learn about Control Plane services

API Reference →

Complete SDK API reference