Method: settings.datasources.list

Lists datasources.

Note: This API requires an admin account to execute.

HTTP request

GET https://cloudsearch.googleapis.com/v1/settings/datasources

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
pageToken

string

Starting index of the results.

pageSize

integer

Maximum number of datasources to fetch in a request. The max value is 1000.

The default value is 1000.

debugOptions

object (DebugOptions)

Common debug options.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "sources": [
    {
      object (DataSource)
    }
  ],
  "nextPageToken": string
}
Fields
sources[]

object (DataSource)

nextPageToken

string

Token to retrieve the next page of results, or empty if there are no more results in the list.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud_search.settings.indexing
  • https://www.googleapis.com/auth/cloud_search.settings
  • https://www.googleapis.com/auth/cloud_search

For more information, see the Authorization guide.