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

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

Returns the complete history of saved versions for a specific playbook definition. Use this method to review past configurations or identify when logic changes occurred.

### HTTP request

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

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 workflow version logs for. Format: projects/{project}/locations/{location}/instances/{instance} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "workflowIdentifier": string } ``` |

| Fields ||
|---|---|
| `workflowIdentifier` | `string` Required. The identifier of the workflow to get the workflow version logs for. |

### Response body

LegacyPlaybookGetWorkFlowVersionLogsResponse is a response for getting the workflow version logs.

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/legacyGetWorkFlowVersionLogs#WorkflowVersionLog`) } ] } ``` |

| Fields ||
|---|---|
| `payload[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetWorkFlowVersionLogs#WorkflowVersionLog`)`` Optional. The workflow version logs. |

### 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).

## WorkflowVersionLog

WorkflowVersionLog represents a workflow version log.

| JSON representation |
|---|
| ``` { "workFlowIdentifier": string, "workflowName": string, "creationTimeUnixTimeInMs": string, "versionCreator": string, "versionComment": string } ``` |

| Fields ||
|---|---|
| `workFlowIdentifier` | `string` Required. WorkFlowIdentifier is the unique identifier of the workflow. |
| `workflowName` | `string` Required. WorkflowName is the name of the workflow. |
| `creationTimeUnixTimeInMs` | `string (https://developers.google.com/discovery/v1/type-format format)` Required. CreationTimeUnixTimeInMs is the creation time of the workflow version log. Represents DateTime CreationTimeUnixTimeInMs as unix time |
| `versionCreator` | `string` Required. VersionCreator is the creator of the workflow version. |
| `versionComment` | `string` Required. VersionComment is the comment of the workflow version. |