Skip to content

GraphQL Overview

Download GraphQL schema

Queries

Overview

agents

(...args)

Arguments

before
orderBy
limit
Int
Default:100
offset
Int
Default:0

Return type

AgentsResponse!
items
[Agent!]!,non-null
total
Int!,non-null
aggregations
Query sample
query agents(
  $filter: AgentFilter
  $before: DateTime
  $after: DateTime
  $orderBy: [AgentOrderByInput!]
  $limit: Int
  $offset: Int
) {
  agents(
    filter: $filter
    before: $before
    after: $after
    orderBy: $orderBy
    limit: $limit
    offset: $offset
  ) {
    items {
      __typename
      # ...AgentFragment
    }
    total 
    aggregations {
      __typename
      # ...AgentAggregationsFragment
    }
    metadata {
      __typename
      # ...AgentsResponseMetadataFragment
    }
  }
}
Variables
{ "filter": { "search": "Example String", "severity": { "__typename": "SeverityFilter" }, "platform": { "__typename": "PlatformFilter" }, "environment": { "__typename": "EnvironmentFilter" }, "accessibility": { "__typename": "AccessibilityFilter" }, "owner": { "__typename": "OwnerFilter" }, "tools": { "__typename": "ToolFilter" }, "findings": { "__typename": "FindingFilter" }, "id": { "__typename": "StringFilter" }, "usage": { "__typename": "UsageRangeFilter" }, "lastSession": { "__typename": "DateRangeFilter" }, "foundationalModel": { "__typename": "StringFilter" } }, "before": "Example Custom Scalar", "after": "Example Custom Scalar", "orderBy": [ { "field": "NAME", "direction": "ASC" } ], "limit": 40, "offset": 40 }
Response sample
{ "data": { "items": [ { "__typename": "Agent" } ], "total": 40, "aggregations": { "__typename": "AgentAggregations" }, "metadata": { "__typename": "AgentsResponseMetadata" } } }

agent

(id)

Arguments

id
ID!,non-nullrequired

Return type

Agent
externalId
ID!,non-null
id
ID!,non-null
platform
Platform!,non-null
name
String!,non-null
environment
Environment!,non-null
owner
Owner!,non-null
accessibility
description
String
nodes
[Node!]!,non-null
edges
[Edge!]!,non-null
tools
[Tool!]!,non-null
createdAt
DateTime!,non-null
updatedAt
DateTime!,non-null
highestIssueSeverity
usage
findings
[Finding!]!,non-null
detections
isRuntimeProtected
Boolean
Query sample
query agent($id: ID!) {
  agent(id: $id) {
    externalId 
    id 
    platform {
      __typename
      # ...PlatformFragment
    }
    name 
    environment {
      __typename
      # ...EnvironmentFragment
    }
    owner {
      __typename
      # ...OwnerFragment
    }
    accessibility 
    description 
    nodes {
      id 
      name 
    }
    edges {
      connectionA 
      connectionB 
      direction 
      type 
    }
    tools {
      __typename
      # ...ToolFragment
    }
    createdAt 
    updatedAt 
    highestIssueSeverity {
      __typename
      # ...IssueFragment
    }
    usage {
      __typename
      # ...UsageFragment
    }
    findings {
      __typename
      # ...FindingFragment
    }
    detections {
      __typename
      # ...DetectionTypeAggregationFragment
    }
    isRuntimeProtected 
  }
}
Variables
{ "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
Response sample
{ "data": { "externalId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "platform": { "__typename": "Platform" }, "name": "Example String", "environment": { "__typename": "Environment" }, "owner": { "__typename": "Owner" }, "accessibility": "PUBLIC", "description": "Example String", "nodes": [ { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "name": "Example String" } ], "edges": [ { "connectionA": "Example String", "connectionB": "Example String", "direction": "ATOB", "type": "NORMAL" } ], "tools": [ { "__typename": "Tool" } ], "createdAt": "Example Custom Scalar", "updatedAt": "Example Custom Scalar", "highestIssueSeverity": { "__typename": "Issue" }, "usage": { "__typename": "Usage" }, "findings": [ { "__typename": "Finding" } ], "detections": [ { "__typename": "DetectionTypeAggregation" } ], "isRuntimeProtected": true } }

agentAudit

(...args)

Arguments

agentId
ID!,non-nullrequired
limit
Int
skip
Int
before

Return type

AgentAuditResponse!
items
total
Int!,non-null
Query sample
query agentAudit(
  $agentId: ID!
  $limit: Int
  $skip: Int
  $before: DateTime
  $after: DateTime
) {
  agentAudit(
    agentId: $agentId
    limit: $limit
    skip: $skip
    before: $before
    after: $after
  ) {
    items {
      __typename
      # ...AgentAuditFragment
    }
    total 
  }
}
Variables
{ "agentId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "limit": 40, "skip": 40, "before": "Example Custom Scalar", "after": "Example Custom Scalar" }
Response sample
{ "data": { "items": [ { "__typename": "AgentAudit" } ], "total": 40 } }

topAgentCountByOwner

(...args)

Arguments

limit
Int
before

Return type

[AgentCountByOwner!]!
owner
Owner!,non-null
count
Int!,non-null
Query sample
query topAgentCountByOwner(
  $filter: AgentFilter
  $limit: Int
  $before: DateTime
  $after: DateTime
) {
  topAgentCountByOwner(
    filter: $filter
    limit: $limit
    before: $before
    after: $after
  ) {
    owner {
      __typename
      # ...OwnerFragment
    }
    count 
  }
}
Variables
{ "filter": { "search": "Example String", "severity": { "__typename": "SeverityFilter" }, "platform": { "__typename": "PlatformFilter" }, "environment": { "__typename": "EnvironmentFilter" }, "accessibility": { "__typename": "AccessibilityFilter" }, "owner": { "__typename": "OwnerFilter" }, "tools": { "__typename": "ToolFilter" }, "findings": { "__typename": "FindingFilter" }, "id": { "__typename": "StringFilter" }, "usage": { "__typename": "UsageRangeFilter" }, "lastSession": { "__typename": "DateRangeFilter" }, "foundationalModel": { "__typename": "StringFilter" } }, "limit": 40, "before": "Example Custom Scalar", "after": "Example Custom Scalar" }
Response sample
{ "data": [ { "owner": { "__typename": "Owner" }, "count": 40 } ] }

topAgentCountByEnvironment

(...args)

Arguments

limit
Int
before

Return type

[AgentCountByEnvironment!]!
environment
Environment!,non-null
count
Int!,non-null
Query sample
query topAgentCountByEnvironment(
  $filter: AgentFilter
  $limit: Int
  $before: DateTime
  $after: DateTime
) {
  topAgentCountByEnvironment(
    filter: $filter
    limit: $limit
    before: $before
    after: $after
  ) {
    environment {
      __typename
      # ...EnvironmentFragment
    }
    count 
  }
}
Variables
{ "filter": { "search": "Example String", "severity": { "__typename": "SeverityFilter" }, "platform": { "__typename": "PlatformFilter" }, "environment": { "__typename": "EnvironmentFilter" }, "accessibility": { "__typename": "AccessibilityFilter" }, "owner": { "__typename": "OwnerFilter" }, "tools": { "__typename": "ToolFilter" }, "findings": { "__typename": "FindingFilter" }, "id": { "__typename": "StringFilter" }, "usage": { "__typename": "UsageRangeFilter" }, "lastSession": { "__typename": "DateRangeFilter" }, "foundationalModel": { "__typename": "StringFilter" } }, "limit": 40, "before": "Example Custom Scalar", "after": "Example Custom Scalar" }
Response sample
{ "data": [ { "environment": { "__typename": "Environment" }, "count": 40 } ] }

topAgentCountByPlatform

(...args)

Arguments

limit
Int
before

Return type

[AgentCountByPlatform!]!
platform
Platform!,non-null
count
Int!,non-null
Query sample
query topAgentCountByPlatform(
  $filter: AgentFilter
  $limit: Int
  $before: DateTime
  $after: DateTime
) {
  topAgentCountByPlatform(
    filter: $filter
    limit: $limit
    before: $before
    after: $after
  ) {
    platform {
      __typename
      # ...PlatformFragment
    }
    count 
  }
}
Variables
{ "filter": { "search": "Example String", "severity": { "__typename": "SeverityFilter" }, "platform": { "__typename": "PlatformFilter" }, "environment": { "__typename": "EnvironmentFilter" }, "accessibility": { "__typename": "AccessibilityFilter" }, "owner": { "__typename": "OwnerFilter" }, "tools": { "__typename": "ToolFilter" }, "findings": { "__typename": "FindingFilter" }, "id": { "__typename": "StringFilter" }, "usage": { "__typename": "UsageRangeFilter" }, "lastSession": { "__typename": "DateRangeFilter" }, "foundationalModel": { "__typename": "StringFilter" } }, "limit": 40, "before": "Example Custom Scalar", "after": "Example Custom Scalar" }
Response sample
{ "data": [ { "platform": { "__typename": "Platform" }, "count": 40 } ] }

topAgentCountByAccessibility

(...args)

Arguments

limit
Int
before

Return type

[AgentCountByAccessibility!]!
accessibility
count
Int!,non-null
Query sample
query topAgentCountByAccessibility(
  $filter: AgentFilter
  $limit: Int
  $before: DateTime
  $after: DateTime
) {
  topAgentCountByAccessibility(
    filter: $filter
    limit: $limit
    before: $before
    after: $after
  ) {
    accessibility 
    count 
  }
}
Variables
{ "filter": { "search": "Example String", "severity": { "__typename": "SeverityFilter" }, "platform": { "__typename": "PlatformFilter" }, "environment": { "__typename": "EnvironmentFilter" }, "accessibility": { "__typename": "AccessibilityFilter" }, "owner": { "__typename": "OwnerFilter" }, "tools": { "__typename": "ToolFilter" }, "findings": { "__typename": "FindingFilter" }, "id": { "__typename": "StringFilter" }, "usage": { "__typename": "UsageRangeFilter" }, "lastSession": { "__typename": "DateRangeFilter" }, "foundationalModel": { "__typename": "StringFilter" } }, "limit": 40, "before": "Example Custom Scalar", "after": "Example Custom Scalar" }
Response sample
{ "data": [ { "accessibility": "PUBLIC", "count": 40 } ] }

topAgentCountByDataSource

(...args)

Arguments

limit
Int
before

Return type

[AgentCountByDataSource!]!
dataSource
DataSource!,non-null
count
Int!,non-null
Query sample
query topAgentCountByDataSource(
  $filter: AgentFilter
  $limit: Int
  $before: DateTime
  $after: DateTime
) {
  topAgentCountByDataSource(
    filter: $filter
    limit: $limit
    before: $before
    after: $after
  ) {
    dataSource {
      __typename
      # ...DataSourceFragment
    }
    count 
  }
}
Variables
{ "filter": { "search": "Example String", "severity": { "__typename": "SeverityFilter" }, "platform": { "__typename": "PlatformFilter" }, "environment": { "__typename": "EnvironmentFilter" }, "accessibility": { "__typename": "AccessibilityFilter" }, "owner": { "__typename": "OwnerFilter" }, "tools": { "__typename": "ToolFilter" }, "findings": { "__typename": "FindingFilter" }, "id": { "__typename": "StringFilter" }, "usage": { "__typename": "UsageRangeFilter" }, "lastSession": { "__typename": "DateRangeFilter" }, "foundationalModel": { "__typename": "StringFilter" } }, "limit": 40, "before": "Example Custom Scalar", "after": "Example Custom Scalar" }
Response sample
{ "data": [ { "dataSource": { "__typename": "DataSource" }, "count": 40 } ] }

Mutations

Overview

Objects

Overview

Interfaces

Overview

Unions

Overview

Enums

Overview

Inputs

Overview

Scalars

Overview