Does anyone familiar with Google Cloud functions triggered by RTDB know the best way to view an existing functions trigger path? The issue I have is when I go to copy a function (one version for dev, another for production) it doesn't copy the trigger path, and some of my triggers I can't remember the full path.
Anyone know how I can either: a)preserve the trigger path when copying a function or b)look up the full trigger path on the original function? Also need help with the trigger type (create, update, write)
Thanks All!
CodePudding user response:
From the gcloud CLI, you should use the command
gcloud functions describe yourFunctionName --region=regionName
The output of this command will include eventTrigger.resource which is the path of the trigger and eventTrigger.eventType which is the trigger type.
