# REST Resource: projects.instances.logicalViews

## Resource: LogicalView

A SQL logical view object that can be referenced in SQL queries.

| JSON representation |
|---|
| ``` { "name": string, "query": string, "etag": string, "deletionProtection": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The unique name of the logical view. Format: `projects/{project}/instances/{instance}/logicalViews/{logicalView}` |
| `query` | `string` Required. The logical view's select query. |
| `etag` | `string` Optional. The etag for this logical view. This may be sent on update requests to ensure that the client has an up-to-date value before proceeding. The server returns an ABORTED error on a mismatched etag. |
| `deletionProtection` | `boolean` Optional. Set to true to make the LogicalView protected against deletion. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.logicalViews/create` | Creates a logical view within an instance. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.logicalViews/delete` | Deletes a logical view from an instance. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.logicalViews/get` | Gets information about a logical view. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.logicalViews/getIamPolicy` | Gets the access control policy for an instance resource. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.logicalViews/list` | Lists information about logical views in an instance. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.logicalViews/patch` | Updates a logical view within an instance. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.logicalViews/setIamPolicy` | Sets the access control policy on an instance resource. |
| ### `https://docs.cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.logicalViews/testIamPermissions` | Returns permissions that the caller has on the specified instance resource. |