Set the project used for billing in "requester pays" Buckets.
GCS Buckets can be configured to charge the requester of an operation for all charges, as opposed to the project that owns the Bucket. Use this parameter when accessing such Buckets to control which project is charged. Note that the caller must have the right permissions in the billed project or the operation would fail.
See Also
https://cloud.google.com/storage/docs/requester-pays for a detailed description of the requester pays features, which charges are incurred by the requester, and the exact permissions that you must have to make such a request.
[[["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-04-02 UTC."],[[["The webpage provides a reference guide for the `UserProject` structure within the Google Cloud Storage C++ library, detailing its usage across multiple versions."],["The latest version available is 2.37.0-rc, with numerous prior versions listed, down to version 2.11.0, all providing the `UserProject` documentation."],["`UserProject` allows setting the billing project for \"requester pays\" buckets, enabling charges to be directed to the requester's project instead of the bucket owner."],["It is essential that the requester has the necessary permissions in the billed project to successfully perform the operation when using `UserProject` for \"requester pays\" buckets."],["The webpage contains a reference to a URL that further describes the full features of requester pays, the associated charges, and the permissions required."]]],[]]