v1

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

Creates the specified index. A newly created index's initial state is CREATING. On completion of the returned google.longrunning.Operation, the state will be READY. If the index already exists, the call will return an ALREADY_EXISTS status. During index creation, the process could result in an error, in which case the index will move to the ERROR state. The process can be recovered by fixing the data that caused the error, removing the index with delete, then re-creating the index with create. Indexes with a single property cannot be created.

post/v1/projects/{projectId}/indexes

Path parameters

projectIdstring required

Project ID against which to make the request.

Request body

projectIdstring

Output only. Project ID.

state'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'DELETING' | 'ERROR'

Output only. The state of the index.

ancestor'ANCESTOR_MODE_UNSPECIFIED' | 'NONE' | 'ALL_ANCESTORS'

Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.

indexIdstring

Output only. The resource ID of the index.

kindstring

Required. The entity kind to which this index applies.

Response

Successful response