Method: actions.executeTest

Full name: projects.locations.instances.integrations.actions.executeTest

Executes a test on a action definition script.

HTTP request


Path parameters

Parameters
name

string

Required. The resource name of the Action to test. Format: projects/{project}/locations/{location}/instances/{instance}/soar/integrations/{integration}/actions/{action}

Request body

The request body contains data with the following structure:

JSON representation
{
  "testCaseId": integer,
  "action": {
    object (IntegrationAction)
  },
  "scope": string,
  "integrationInstanceId": string
}
Fields
testCaseId

integer (uint32 format)

Required. The action test case.

action

object (IntegrationAction)

Required. The action which will be tested.

scope

string

Required. The action test scope.

integrationInstanceId

string

Required. The integration instance id to use.

Response body

Response message for ExecuteTest.

If successful, the response body contains data with the following structure:

JSON representation
{
  "output": string,
  "debugOutput": string,
  "resultJson": string,
  "resultName": string
}
Fields
output

string

Required. The script output.

debugOutput

string

Required. The script debug output.

resultJson

string

Optional. The result json if exists.

resultName

string

Optional. The script result.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.