latestOpenAPI 3.0.32026-08-10152216352.3 KB
eea119b4113f
Relationships
Get resource relationships
Retrieves the relationships/connections for a specific resource identified by its FRN. Returns an array of connected resources with their full asset details including metadata, state information, and relationship type.
Results are filtered based on the user's RBAC permissions - only connections to integrations the user has access to will be returned.
post/relationships
Request body
Example request
{
"frn": "aws_instance:us-east-1:i-0123456789abcdef0",
"integrationId": "60123456789abcdef1234567",
"level": 1
}Response
Successfully retrieved relationships
Example response
[
{
"id": "60123456789abcdef1234567:aws_instance:us-east-1:i-0123456789abcdef0",
"frn": "aws_instance:us-east-1:i-0123456789abcdef0",
"assetId": "arn:aws:ec2:us-east-1:012345678912:instance/i-0123456789abcdef0",
"resourceId": "i-0123456789abcdef0",
"integrationId": "60123456789abcdef1234567",
"accountId": "60123456789abcdef1234567",
"assetType": "aws_instance",
"name": "i-0123456789abcdef0",
"region": "us-east-1",
"provider": "aws",
"providerId": "012345678912",
"providerType": "cloud",
"providerSubType": "iaas",
"service": "ec2",
"connectionType": "Contains",
"type": "ASSET",
"hasOwnerTargets": true,
"state": "iacIgnored",
"prevState": "created",
"iacType": "unmanaged",
"isExcluded": true,
"firstSeen": "2025-06-29 14:13:27.050209723 +0000 UTC",
"updateAt": "2025-01-01T12:34:56.323161114Z",
"inventoryUpdateTime": "2025-01-01T12:34:56.323161114Z",
"lastResourceStateChange": "2025-06-29T14:15:24.283522147Z",
"tags": "{\"key1\": \"value1\", \"key2\": \"value2\"}",
"tagsList": [
"key1: value1"
],
"consoleURL": "https://us-east-1.console.aws.amazon.com/vpc/home?region=us-east-1#RouteTableDetails:RouteTableId=rtb-12345678",
"deleteCommand": "aws ec2 terminate-instances --instance-ids i-12345678"
}
]