【发布时间】:2022-01-19 09:30:19
【问题描述】:
我正在尝试使用以下 API 资源管理器以编程方式在 CloudScheduler Google Cloud Platform 中创建 Cron 作业。
参考:Cloud Scheduler Documentation
即使我已授予用户Owner 权限并在Policy Troubleshooter 中验证它具有cloudscheduler.jobs.create,我仍然收到以下错误。
{
"error": {
"code": 403,
"message": "The principal (user or service account) lacks IAM permission \"cloudscheduler.jobs.create\" for the resource \"projects/cloud-monitoring-saurav/locations/us-central\" (or the resource may not exist).",
"status": "PERMISSION_DENIED"
}
}
【问题讨论】:
-
如何尝试创作?直接来自 API Explorer?在你的代码中?使用 CURL?
-
我直接从 API Explorer 和代码中尝试过。我尝试了两个不同的项目,并且能够在其中一个项目中成功运行。
标签: google-cloud-platform google-apis-explorer google-cloud-scheduler