v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13205188.5 KB
projects

Creates a 2nd Gen copy of the function configuration based on the 1st Gen function with the given name. This is the first step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Only 2nd Gen configuration is setup as part of this request and traffic continues to be served by 1st Gen.

post/v2/{+name}:setupFunctionUpgradeConfig

Path parameters

namestring required

Required. The name of the function which should have configuration copied for upgrade.

Request body

triggerServiceAccountstring

Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.

Response

Successful response