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 2024-05-15 UTC."],[[["This page details how to list projects associated with a billing account using the Cloud Billing API, requiring the `billing.resourceAssociations.list` IAM permission."],["The HTTP request utilizes a `GET` method to the provided URL, including a required `name` path parameter specifying the billing account."],["Optional query parameters, such as `pageSize` and `pageToken`, can be used to manage the number of results returned and navigate through paginated lists."],["The request body must be empty, and the successful response body contains a list of `ProjectBillingInfo` objects and a `nextPageToken` for pagination, if needed."],["Authorization to access this data requires one of the following OAuth scopes: `https://www.googleapis.com/auth/cloud-platform`, `https://www.googleapis.com/auth/cloud-billing`, or `https://www.googleapis.com/auth/cloud-billing.readonly`."]]],[]]