easygcloud

Create a Cloud Scheduler HTTP job with OIDC authentication targeting Cloud Run

command

gcloud scheduler jobs create http daily-process --schedule="0 2 * * *" --uri=https://my-service-xyz.run.app/process --http-method=POST --oidc-service-account-email=scheduler-sa@my-project.iam.gserviceaccount.com

Command breakdown

Part of the Google Cloud CLI (gcloud) — Cloud Scheduler category.

gcloudschedulerjobscreatehttpdaily-process--schedule="02***"--uri=https://my-service-xyz.run.app/process--http-method=POST--oidc-service-account-email=scheduler-sa@my-project.iam.gserviceaccount.com
FlagPurpose
--scheduleSet to: "0
--uriSet to: https://my-service-xyz.run.app/process
--http-methodSet to: POST
--oidc-service-account-emailSet to: scheduler-sa@my-project.iam.gserviceaccount.com

Test your recall — not just your reading.

Practice with interactive quiz →