v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1336153187.7 KB
projects

Creates a materialized view within an instance.

post/v2/{+parent}/materializedViews

Path parameters

parentstring required

Required. The parent instance where this materialized view will be created. Format: projects/{project}/instances/{instance}.

Query parameters

materializedViewIdstring

Required. The ID to use for the materialized view, which will become the final component of the materialized view's resource name.

Request body

etagstring

Optional. The etag for this materialized 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. Views: SCHEMA_VIEW, REPLICATION_VIEW, FULL.

deletionProtectionboolean

Set to true to make the MaterializedView protected against deletion. Views: SCHEMA_VIEW, REPLICATION_VIEW, FULL.

clusterStatesobject

Output only. Map from cluster ID to per-cluster materialized view state. If it could not be determined whether or not the materialized view has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with STATE_NOT_KNOWN state. Views: REPLICATION_VIEW, FULL.

namestring

Identifier. The unique name of the materialized view. Format: projects/{project}/instances/{instance}/materializedViews/{materialized_view} Views: SCHEMA_VIEW, REPLICATION_VIEW, FULL.

querystring

Required. Immutable. The materialized view's select query. Views: SCHEMA_VIEW, FULL.

Response

Successful response