REST Resource: projects.locations.environments

資源:環境

用於啟動筆記本執行個體的軟體環境定義。

JSON 表示法
{
  "name": string,
  "displayName": string,
  "description": string,
  "postStartupScript": string,
  "createTime": string,

  // Union field image_type can be only one of the following:
  "vmImage": {
    object (VmImage)
  },
  "containerImage": {
    object (ContainerImage)
  }
  // End of list of possible types for union field image_type.
}
欄位
name

string

僅供輸出。這個環境的名稱。格式:projects/{projectId}/locations/{location}/environments/{environmentId}

displayName

string

這個環境在使用者介面中的顯示名稱。

description

string

這個環境的簡短說明。

postStartupScript

string

Bash 指令碼的路徑,在筆記本執行個體完全啟動後自動執行。路徑必須是網址或 Cloud Storage 路徑。範例:"gs://path-to-file/file-name"

createTime

string (Timestamp format)

僅供輸出。建立這個環境的時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

聯集欄位 image_type。環境類型,可以是 VM 映像檔或容器映像檔。image_type 只能是下列其中一個設定:
vmImage

object (VmImage)

使用 Compute Engine VM 映像檔啟動筆記本執行個體。

containerImage

object (ContainerImage)

使用容器映像檔啟動筆記本執行個體。

方法

create

建立新的環境。

delete

刪除單一環境。

get

取得單一環境的詳細資料。

list

列出專案中的環境。