- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#body.LegacyPlaybookGetEnabledWFCardsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#body.aspect_1)
- [ExecutionScope](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#ExecutionScope)
- [ApiPlaybookCard](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#ApiPlaybookCard)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#ApiPlaybookCard.SCHEMA_REPRESENTATION)
- [PlaybookType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#PlaybookType)

**Full name**: projects.locations.instances.legacyPlaybooks.legacyGetEnabledWFCards

Returns a list of all playbooks that are currently enabled and ready for execution.

### HTTP request

`POST https://{endpoint}/v1alpha/{instance}/legacyPlaybooks:legacyGetEnabledWFCards`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `instance` | `string` Required. The instance to get the enabled WFCards for. Format: projects/{project}/locations/{location}/instances/{instance} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "caseEnvironment": string, "executionScope": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#ExecutionScope`) } ``` |

| Fields ||
|---|---|
| `caseEnvironment` | `string` Optional. The environment to get the enabled WFCards for. |
| `executionScope` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#ExecutionScope`)`` Optional. Defines the execution scope of playbook. If this field is not provided, it defaults to `ALERT`. |

### Response body

LegacyPlaybookGetEnabledWFCardsResponse is a response for getting the enabled WFCards.

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

| JSON representation |
|---|
| ``` { "payload": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#ApiPlaybookCard`) } ] } ``` |

| Fields ||
|---|---|
| `payload[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#ApiPlaybookCard`)`` Optional. The enabled WFCards. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/chronicle`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `instance` resource:

- `chronicle.legacyPlaybooks.get`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## ExecutionScope

Defines the scope for which a playbook is designed to be executed.

| Enums ||
|---|---|
| `EXECUTION_SCOPE_UNSPECIFIED` | The scope is unspecified. |
| `ALERT` | The playbook is attached to an alert. |
| `CASE` | The playbook is attached to a case. |

## ApiPlaybookCard

ApiPlaybookCard represents a playbook card.

| JSON representation |
|---|
| ``` { "playbookName": string, "description": string, "playbookType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#PlaybookType`), "originalWorkflowDefinitionIdentifier": string, "workflowDefinitionIdentifier": string, "isDebugMode": boolean } ``` |

| Fields ||
|---|---|
| `playbookName` | `string` Required. PlaybookName is the name of the playbook. |
| `description` | `string` Optional. Description is the description of the playbook. |
| `playbookType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetEnabledWFCards#PlaybookType`)`` Required. PlaybookType is the type of the playbook. |
| `originalWorkflowDefinitionIdentifier` | `string` Required. OriginalWorkflowDefinitionIdentifier is the original workflow definition identifier. |
| `workflowDefinitionIdentifier` | `string` Required. WorkflowDefinitionIdentifier is the workflow definition identifier. |
| `isDebugMode` | `boolean` Optional. IsDebugMode indicates if the playbook is in debug mode. |

## PlaybookType

Playbook types to filter the workflow menu cards by.

| Enums ||
|---|---|
| `PLAYBOOK_TYPE_UNSPECIFIED` | Unspecified playbook type. |
| `REGULAR` | Regular playbook type. |
| `NESTED` | Nested playbook type. |