ZAIN Ali
ZAIN Ali

Reputation: 105

Change attribute in GCP Cloud scheduler

I am trying to change some attributes dynamically, present in the Cloud Scheduler through the Cloud Functions. Is is possible that I can write a Cloud Function in Python to change the attribute(API token) present in the cloud scheduler? Or any other way I can achieve this. This can be done through gcloud shell using this script but I want to do this automation using a cronjob or code function. gcloud scheduler jobs update pubsub my_job --update-attributes=["name"="test","limit"="1000"]

Upvotes: 0

Views: 481

Answers (1)

guillaume blaquiere
guillaume blaquiere

Reputation: 75790

If you want to PATCH your scheduler, you can rely to that API. You have code sample in it, based on discovery API.

Upvotes: 2

Related Questions