Lists the projects associated with a billing account. The current authenticated user must have the billing.resourceAssociations.list IAM permission, which is often given to billing account viewers.
HTTP request
GET https://cloudbilling.googleapis.com/v1/{name=billingAccounts/*}/projects
Required. The resource name of the billing account associated with the projects that you want to list. For example, billingAccounts/012345-567890-ABCDEF.
Query parameters
Parameters
pageSize
integer
Requested page size. The maximum page size is 100; this is also the default.
pageToken
string
A token identifying a page of results to be returned. This should be a nextPageToken value returned from a previous projects.list call. If unspecified, the first page of results is returned.
Request body
The request body must be empty.
Response body
Request message for ListProjectBillingInfoResponse.
If successful, the response body contains data with the following structure:
A list of ProjectBillingInfo resources representing the projects associated with the billing account.
nextPageToken
string
A token to retrieve the next page of results. To retrieve the next page, call projects.list again with the pageToken field set to this value. This field is empty if there are no more results to retrieve.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-14 UTC."],[[["\u003cp\u003eThis page details how to list projects associated with a billing account using the Cloud Billing API, requiring the \u003ccode\u003ebilling.resourceAssociations.list\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request utilizes a \u003ccode\u003eGET\u003c/code\u003e method to the provided URL, including a required \u003ccode\u003ename\u003c/code\u003e path parameter specifying the billing account.\u003c/p\u003e\n"],["\u003cp\u003eOptional query parameters, such as \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e, can be used to manage the number of results returned and navigate through paginated lists.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and the successful response body contains a list of \u003ccode\u003eProjectBillingInfo\u003c/code\u003e objects and a \u003ccode\u003enextPageToken\u003c/code\u003e for pagination, if needed.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to access this data requires one of the following OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e, \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-billing\u003c/code\u003e, or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-billing.readonly\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]