Method: featureViews.generateFetchAccessToken

Full name: projects.locations.featureOnlineStores.featureViews.generateFetchAccessToken

RPC to generate an access token for the given feature view. FeatureViews under the same FeatureOnlineStore share the same access token.

Endpoint

post https://{service-endpoint}/v1beta1/{featureView}:generateFetchAccessToken

Where {service-endpoint} is one of the supported service endpoints.

Path parameters

featureView string

FeatureView resource format projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}

Request body

The request body must be empty.

Response body

Response message for FeatureOnlineStoreService.GenerateFetchAccessToken.

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

Fields
accessToken string

The OAuth 2.0 access token.

expireTime string (Timestamp format)

token expiration time. This is always set

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

JSON representation
{
  "accessToken": string,
  "expireTime": string
}