Method: projects.locations.collections.dataConnector.acquireAccessToken

Uses the stored refresh token for the EUC user and the given connection and returns the generated access token and its details. Takes the access token from cache if available. Rotates the stored refresh token if needed.

HTTP request

POST https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}:acquireAccessToken

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The resource name of the connector for which a token is queried.

Request body

The request body must be empty.

Response body

Response message for the DataConnectorService.AcquireAccessToken method.

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

JSON representation
{
  "refreshTokenInfo": {
    object (RefreshTokenInfo)
  },
  "accessToken": string
}
Fields
refreshTokenInfo

object (RefreshTokenInfo)

Info about the stored refresh token used to create the access token.

accessToken

string

The created access token.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.