Method: projects.locations.repositories.fetchBlob

Fetches a blob from a repository.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
repository

string

Required. The format is projects/{project_number}/locations/{locationId}/repositories/{repositoryId}. Specifies the repository containing the blob.

Query parameters

Parameters
sha

string

Required. The SHA-1 hash of the blob to retrieve.

Request body

The request body must be empty.

Response body

Response message containing the content of a blob.

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

JSON representation
{
  "sha": string,
  "content": string
}
Fields
sha

string

The SHA-1 hash of the blob.

content

string

The content of the blob, encoded as base64.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the repository resource:

  • securesourcemanager.repositories.fetch

For more information, see the IAM documentation.