Method: projects.locations.runtimes.stop

停止代管筆記本執行階段。停止 GPU 執行個體,暫停 CPU 執行個體。詳情請參閱:https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance

HTTP 要求

POST https://notebooks.googleapis.com/v1/{name}:stop

路徑參數

參數
name

string

這是必要旗標,格式:projects/{projectId}/locations/{location}/runtimes/{runtimeId}

授權需要指定資源 name 的下列 IAM 權限:

  • notebooks.runtimes.stop

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "requestId": string
}
欄位
requestId

string

冪等要求 UUID。

回應主體

如果成功,回應主體會包含 Operation 的執行個體。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱Authentication Overview