REST Resource: projects.locations.datastores

資源:Datastore

代表資料儲存庫資源。

JSON 表示法
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "description": string,
  "clusters": [
    string
  ],
  "nfsDatastore": {
    object (NfsDatastore)
  },
  "state": enum (State),
  "uid": string,
  "etag": string
}
欄位
name

string

僅供輸出。ID。這個資料儲存庫的資源名稱。資源名稱是無配置的 URI,遵循 https://cloud.google.com/apis/design/resource_names 中的慣例。例如:projects/my-project/locations/us-central1/datastores/datastore

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"

updateTime

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"

description

string

選用。這個資料儲存庫的使用者提供說明

clusters[]

string

僅供輸出。資料存放區所附加的叢集。

nfsDatastore

object (NfsDatastore)

這是必要旗標,NFS 資料儲存庫的設定。

state

enum (State)

僅供輸出。Datastore 的狀態。

uid

string

僅供輸出。系統為資源產生的專屬 ID。

etag

string

選用。更新和刪除要求中可能會傳送檢查碼,確保伺服器處理要求前,使用者提供的值為最新狀態。伺服器會根據要求中其他欄位的值計算檢查碼。

NfsDatastore

NFS 資料儲存庫設定。

JSON 表示法
{

  // Union field FileServiceOption can be only one of the following:
  "googleFileService": {
    object (GoogleFileService)
  },
  "thirdPartyFileService": {
    object (ThirdPartyFileService)
  },
  "googleVmwareFileService": {
    object (GoogleVmwareFileService)
  }
  // End of list of possible types for union field FileServiceOption.
}
欄位
聯集欄位 FileServiceOption。NFS Datastore 的檔案服務選項。FileServiceOption 只能是下列其中一個設定:
googleFileService

object (GoogleFileService)

Google 檔案服務設定

thirdPartyFileService

object (ThirdPartyFileService)

第三方檔案服務設定

googleVmwareFileService

object (GoogleVmwareFileService)

GCVE 檔案服務設定

GoogleFileService

Google 服務檔案服務設定

JSON 表示法
{

  // Union field FileServiceOption can be only one of the following:
  "netappVolume": string,
  "filestoreInstance": string
  // End of list of possible types for union field FileServiceOption.
}
欄位
聯集欄位 FileServiceOption。Google 服務檔案服務名稱 FileServiceOption 只能是下列其中一項:
netappVolume

string

Google NetApp Volume 資源名稱,例如 projects/my-project/locations/me-west1-b/volumes/my-volume

filestoreInstance

string

Google filestore 執行個體資源名稱,例如 projects/my-project/locations/me-west1-b/instances/my-instance

ThirdPartyFileService

第三方檔案服務設定

JSON 表示法
{
  "servers": [
    string
  ],
  "fileShare": string,
  "network": string
}
欄位
servers[]

string

這是必要旗標,NFS 檔案服務的伺服器 IP 位址。NFS v3:提供單一 IP 位址或 DNS 名稱。啟用 NFS 4.1 通訊協定支援後,未來可支援多部伺服器。

fileShare

string

這是必要旗標,必要掛接資料夾名稱

network

string

這是必要旗標,用於識別 NFS 存取網路的虛擬私有雲對等互連,NFS 虛擬私有雲的網路名稱,例如:projects/project-id/global/networks/my-network_id

GoogleVmwareFileService

這個類型沒有任何欄位。

Volume 訊息會擷取使用者輸入內容,以建立由 GCVE 管理的檔案服務

狀態

Datastore 的狀態

列舉
STATE_UNSPECIFIED 預設值。請一律不要使用這個值。
CREATING 正在建立 NFS 磁碟區。
ACTIVE NFS 磁碟區已啟用。
UPDATING 正在更新 NFS 磁碟區。
DELETING 正在刪除 NFS 磁碟區。

方法

create

在指定專案和位置建立新的 Datastore 資源。

delete

刪除 Datastore 資源。

get

依資源名稱擷取 Datastore 資源。

list

列出指定專案和位置中的 Datastore 資源。

patch

修改 Datastore 資源。