使用调度程序GCP自动启动/停止实例VM

时间:2019-10-18 00:33:20

标签: google-cloud-platform

我正在尝试通过Scheduler,运行作业以关闭并打开实例。 已经创建了服务帐户,设置了一些权限,尝试了几次,但是每次我运行作业时都会出现身份验证错误。 我在做什么错了?

{
 httpRequest: {…}
 insertId: "10wqtpjg1aco1ta"
 jsonPayload: {
  @type: "type.googleapis.com/google.cloud.scheduler.logging.AttemptFinished"
  jobName: "projects / manifest-welder-xxxxx / locations / us-central1 / jobs / Stop16Solution"
  status: "PERMISSION_DENIED"
  targetType: "HTTP"
  url: "https://compute.googleapis.com/compute/v1/projects/manifest-welder-xxxxx/zones/us-central1-a/instances/server16solution/stop"
 }
 logName: "projects / manifest-welder-254710 / logs / cloudscheduler.googleapis.com% 2Fexecutions"
 receiveTimestamp: "2019-10-17T23: 23: 46.369687313Z"
 resource: {…}
 severity: "ERROR"
 timestamp: "2019-10-17T23: 23: 46.369687313Z"
}

enter image description here

0 个答案:

没有答案