- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- TriggerEventChanges
- TriggerEventPropertyValue
- TriggerFieldChange
- TriggerAddedEntity
- AddedCaseComment
Full name: projects.locations.instances.legacyPlaybooks.legacyRunPlaybookInDebug
Executes a playbook in a simulation environment using provided test data. Use this method to verify automation logic and identify potential issues before deploying a playbook to production.
HTTP request
POST https://{endpoint}/v1alpha/{instance}/legacyPlaybooks:legacyRunPlaybookInDebug
Where {endpoint} is one of the supported service endpoints.
Path parameters
| Parameters | |
|---|---|
instance |
Required. The instance to run the playbook in debug for. Format: projects/{project}/locations/{location}/instances/{instance} |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "workflow": { object ( |
| Fields | |
|---|---|
workflow |
Required. The workflow to run the playbook in debug for. |
testCaseId |
Required. The test case id to run the playbook in debug for. |
triggerEventChanges |
Optional. Changes to the trigger event. |
Response body
Response object that holds identifiers of a playbook simulation / debug mode run. Those identifiers are used to fetch results for this specific run
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "workflowInstanceId": string, "newTestCaseId": string, "alertGroupIdentifier": string, "alertIdentifier": string, "newWorkflowIdentifier": string, "parsedNestedInputParameters": { string: string, ... }, "triggerMatches": boolean } |
| Fields | |
|---|---|
workflowInstanceId |
Required. Workflow instance id |
newTestCaseId |
Required. The new case id that this playbook will run on |
alertGroupIdentifier |
Required. The group id for the alert |
alertIdentifier |
Required. The alert identifier |
newWorkflowIdentifier |
Required. The new workflow identifier |
parsedNestedInputParameters |
Optional. Dictionary of inner input parameters An object containing a list of |
triggerMatches |
Required. Whether the trigger actually matched when we ran the simulation |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/chroniclehttps://www.googleapis.com/auth/chronicle.readonly
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the instance resource:
chronicle.legacyPlaybooks.update
For more information, see the IAM documentation.
TriggerEventChanges
TriggerEventChanges represents changes in a trigger event for playbook simulation.
| JSON representation |
|---|
{ "caseAssignee": { object ( |
| Fields | |
|---|---|
caseAssignee |
Optional. Details about the change in case assignee. |
alertPriority |
Optional. Details about the change in alert priority. |
casePriority |
Optional. Details about the change in case priority. |
caseStage |
Optional. Details about the change in case stage. |
addedCaseTag |
Optional. The tag that was added to the case. |
caseCustomField |
Optional. Details about a change in a case custom field. |
caseContextField |
Optional. Details about a change in a case context field. |
alertCustomField |
Optional. Details about a change in an alert custom field. |
alertContextField |
Optional. Details about a change in an alert context field. |
addedEntity |
Optional. The entity that was added to the case. |
addedCaseComment |
Optional. Details about a comment that was added to the case. |
TriggerEventPropertyValue
TriggerEventPropertyValue represents a property value transition.
| JSON representation |
|---|
{ "oldValue": string, "newValue": string } |
| Fields | |
|---|---|
oldValue |
Optional. The old value before the change. |
newValue |
Optional. The new value after the change. |
TriggerFieldChange
TriggerFieldChange represents a change in a specific field.
| JSON representation |
|---|
{
"property": string,
"propertyValue": {
object ( |
| Fields | |
|---|---|
property |
Required. The name of the property that changed. |
propertyValue |
Required. The original and new values of the property. |
TriggerAddedEntity
TriggerAddedEntity represents an entity added to the case.
| JSON representation |
|---|
{ "identifier": string, "type": string } |
| Fields | |
|---|---|
identifier |
Required. The unique identifier of the added entity. |
type |
Required. The type of the added entity (e.g., Host, User, IP). |
AddedCaseComment
AddedCaseComment represents a comment added to a case during simulation.
| JSON representation |
|---|
{ "body": string, "attachment": string } |
| Fields | |
|---|---|
body |
Optional. The text content of the comment. |
attachment |
Optional. The name of the attachment associated to comment. |