Method: projects.locations.instances.setAccelerator

更新單一執行個體的客層加速器。

HTTP 要求

PATCH https://notebooks.googleapis.com/v1/{name}:setAccelerator

路徑參數

參數
name

string

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

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

  • notebooks.instances.setAccelerator

要求主體

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

JSON 表示法
{
  "type": enum (AcceleratorType),
  "coreCount": string
}
欄位
type

enum (AcceleratorType)

這是必要旗標,這個加速器的類型。

coreCount

string (int64 format)

這是必要旗標,這個加速器的核心數。請注意,並非所有 typecoreCount 的組合都有效。如要瞭解有效組合,請參閱「Compute Engine 上的 GPU」。不支援 TPU。

回應主體

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

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview