- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
Fetches a blob from a repository.
HTTP request
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
repository |
Required. The format is projects/{project_number}/locations/{locationId}/repositories/{repositoryId}. Specifies the repository containing the blob. |
Query parameters
Parameters | |
---|---|
sha |
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 |
The SHA-1 hash of the blob. |
content |
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.