Query
query CommandTargetSummaries($targets: [CommandTargetSummaryInput!]!) {
commandTargetSummaries(targets: $targets) {
resourceKind
resourceId
commands {
id
name
description
targetKind
quickActionEnabled
quickActionIconKey
}
activeRuns {
id
commandId
displayNumber
status
}
recentRuns {
id
displayNumber
status
snapshotName
createdAt
}
}
}Variables
{
"targets": [
{
"resourceKind": "AGENT",
"resourceId": "id"
}
]
}Response
{
"data": {
"commandTargetSummaries": [
{
"resourceKind": "AGENT",
"resourceId": "id",
"commands": [
{
"id": "id",
"name": "string",
"description": "string",
"targetKind": "ANY_AGENT_HOME",
"quickActionEnabled": true,
"quickActionIconKey": "string"
}
],
"activeRuns": [
{
"id": "id",
"commandId": "id",
"displayNumber": 1,
"status": "QUEUED"
}
],
"recentRuns": [
{
"id": "id",
"displayNumber": 1,
"status": "QUEUED",
"snapshotName": "string",
"createdAt": "string"
}
]
}
]
}
}Queries
commandTargetSummaries
Batch eligible action metadata and compact run summaries for rendered resources.
QUERY
commandTargetSummaries(targets: [CommandTargetSummaryInput!]!): [CommandTargetSummary!]!Arguments
targets
required
Resource targets to retrieve in one batch; duplicate targets are combined.
Returns
resourceKind
Kind of resource whose commands or workflows are being observed.
resourceId
ID!
Identifier of the target resource.
commands
Eligible command definitions for this resource.
activeRuns
All active runs of eligible quick actions; never limited across different targets.
recentRuns
At most eight recent unarchived runs for this target, newest first.
Query
query CommandTargetSummaries($targets: [CommandTargetSummaryInput!]!) {
commandTargetSummaries(targets: $targets) {
resourceKind
resourceId
commands {
id
name
description
targetKind
quickActionEnabled
quickActionIconKey
}
activeRuns {
id
commandId
displayNumber
status
}
recentRuns {
id
displayNumber
status
snapshotName
createdAt
}
}
}Variables
{
"targets": [
{
"resourceKind": "AGENT",
"resourceId": "id"
}
]
}Response
{
"data": {
"commandTargetSummaries": [
{
"resourceKind": "AGENT",
"resourceId": "id",
"commands": [
{
"id": "id",
"name": "string",
"description": "string",
"targetKind": "ANY_AGENT_HOME",
"quickActionEnabled": true,
"quickActionIconKey": "string"
}
],
"activeRuns": [
{
"id": "id",
"commandId": "id",
"displayNumber": 1,
"status": "QUEUED"
}
],
"recentRuns": [
{
"id": "id",
"displayNumber": 1,
"status": "QUEUED",
"snapshotName": "string",
"createdAt": "string"
}
]
}
]
}
}