Reverts the traffic target of a function from the 2nd gen copy to the original 1st gen function. After this operation, all new traffic is served by the 1st gen function.
HTTP request
POST https://cloudfunctions.googleapis.com/v2/{name}:rollbackFunctionUpgradeTraffic
Path parameters
Parameters
name
string
Required. The name of the function for which traffic target should be changed back to 1st gen from 2nd gen. It takes the form projects/{project}/locations/{location}/functions/{function}.
Authorization requires the following IAM permission on the specified resource name:
cloudfunctions.functions.generationUpgrade
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Operation.
[[["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-10-01 UTC."],[],[],null,[]]