- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Returns all repos belonging to a project. The sizes of the repos are not set by repos.list. To get the size of a repo, use repos.get.
HTTP request
GET https://sourcerepo.googleapis.com/v1/{name=projects/*}/repos
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
The project ID whose repos should be listed. Values are of the form Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
pageSize |
Maximum number of repositories to return; between 1 and 500. If not set or zero, defaults to 100 at the server. |
pageToken |
Resume listing repositories where a prior ListReposResponse left off. This is an opaque token that must be obtained from a recent, prior ListReposResponse's nextPageToken field. |
Request body
The request body must be empty.
Response body
Response for repos.list. The size is not set in the returned repositories.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"repos": [
{
object ( |
Fields | |
---|---|
repos[] |
The listed repos. |
nextPageToken |
If non-empty, additional repositories exist within the project. These can be retrieved by including this value in the next ListReposRequest's pageToken field. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.