Reverts the traffic target of a function from the 2nd Gen copy to the original 1st Gen function. After this operation, all new traffic would be served by the 1st Gen.
HTTP request
POST https://cloudfunctions.googleapis.com/v2/{name}:rollbackFunctionUpgradeTraffic
Path parameters
| Parameters | |
|---|---|
name |
Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen. It takes the form Authorization requires the following IAM permission on the specified resource
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.