Method: projects.repos.list

Returns all repos belonging to a project.

HTTP request

GET https://sourcerepo.googleapis.com/v1/{name=projects/*}/repos

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
name

string

The project ID whose repos should be listed. Values are of the form projects/<project>.

Authorization requires the following Google IAM permission on the specified resource name:

  • source.repos.list

Request body

The request body must be empty.

Response body

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

Response for repos.list.

JSON representation
{
  "repos": [
    {
      object(Repo)
    }
  ],
}
Fields
repos[]

object(Repo)

The listed repos.

Authorization

Requires the following OAuth scope:

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

For more information, see the Auth Guide.

Send feedback about...

Cloud Source Repositories