Method: projects.locations.corpora.assets.generateRetrievalUrl

Generates a signed url for downloading the asset.

HTTP request

POST https://visionai.googleapis.com/v1alpha1/{name=projects/*/locations/*/corpora/*/assets/*}:generateRetrievalUrl

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The resource name of the asset to request signed url for. Format: projects/{project_number}/locations/{locationId}/corpora/{corpus_id}/assets/{assetId}

Request body

The request body must be empty.

Response body

Response message for assets.generateRetrievalUrl API.

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

JSON representation
{
  "signedUri": string
}
Fields
signedUri

string

A signed url to download the content of the asset.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.