indexing

POST /v1/indexing/datasources/{datasourcesId}/items/{itemsId}:push

Changed on

Pushes an item onto a queue for later polling and updating. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.

Request

  • Base URL
    https://cloudsearch.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud_search
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud_search
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud_search.indexing
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud_search.indexing

Path parameters

datasourcesId, string required
itemsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

Request body

PushItemRequest required
connectorName, string

The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}

debugOptions, DebugOptions

Shared request debug options for all cloudsearch RPC methods.

item, PushItem

Represents an item to be pushed to the indexing queue.

Response

Successful response

Item required

Represents a single object that is an item in the search index, such as a file, folder, or a database record.

acl, ItemAcl

Access control list information for the item. For more information see Map ACLs.

content, ItemContent

Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded.

itemType, 'UNSPECIFIED' | 'CONTENT_ITEM' | 'CONTAINER_ITEM' | 'VIRTUAL_CONTAINER_ITEM'

The type for this item.

metadata, ItemMetadata

Available metadata fields for the item.

name, string

The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters.

payload, string byte

Additional state connector can store for this item. The maximum length is 10000 bytes.

queue, string

Queue this item belongs to. The maximum length is 100 characters.

status, ItemStatus

This contains item's status and any errors.

structuredData, ItemStructuredData

Available structured data fields for the item.

version, string byte

Required. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to Handle revisions after manual deletes.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud_search was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud_search was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud_search.indexing was removed from the endpoint's security scheme Oauth2

    1 more change in this revision