且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用身份验证从Cloud Scheduler调用Cloud Function

更新时间:2023-12-05 20:04:46

1.我创建了一个Clod函数(与我的App Engine应用程序位于同一区域),该函数不允许公共访问

1.I created a clod function (in the same region as my App Engine Application), which does not allow public access

2.我创建了一个具有所有者角色的服务帐户

2.I created a service account with Owner role

3.我创建了云调度程序作业:

3.I created the cloud scheduler job:

url = https://europe-west2-my-project.cloudfunctions .net/my-function

oidc令牌

新创建的服务帐户

观众= https://europe-west2-my-project.cloudfunctions .net/my-function

一切正常.请仔细检查您的设置,因为它可以正常工作.

Everything worked as expected. Please double check your set up because it should work.