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

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

Returns the list of predefined HTML view presets. Use this method to retrieve the available layout configurations for visualizing investigation data within the SecOps UI.

### HTTP request

`GET https://{endpoint}/v1alpha/{instance}/legacyPlaybooks:legacyGetHtmlViewPresets`

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 html view presets for. Format: projects/{project}/locations/{location}/instances/{instance} |

### Request body

The request body must be empty.

### Response body

LegacyPlaybookGetHtmlViewPresetsResponse is a response for getting html view presets.

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/legacyGetHtmlViewPresets#HtmlViewPreset`) } ] } ``` |

| Fields ||
|---|---|
| `payload[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacyPlaybooks/legacyGetHtmlViewPresets#HtmlViewPreset`)`` Optional. The html view presets. The Struct will contain the following fields: name: string identifier: string thumbnailBase64: string htmlCode: string htmlHeight: int |

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

## HtmlViewPreset

HtmlViewPreset represents a html view preset.

| JSON representation |
|---|
| ``` { "name": string, "identifier": string, "thumbnailBase64": string, "htmlCode": string, "htmlHeight": integer } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Name is the name of the html view preset. |
| `identifier` | `string` Required. Identifier is the identifier of the html view preset. |
| `thumbnailBase64` | `string` Optional. ThumbnailBase64 is the base64 thumbnail of the html view preset. |
| `htmlCode` | `string` Required. HtmlCode is the html code of the html view preset. |
| `htmlHeight` | `integer` Required. HtmlHeight is the height of the html view preset. |