az cosmosdb gremlin graph

注意

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。

管理 Azure Cosmos DB Gremlin 圖形。

命令

名稱 Description 類型 狀態
az cosmosdb gremlin graph create

在 Azure Cosmos DB Gremlin 資料庫下建立 Gremlin 圖形。

核心 GA
az cosmosdb gremlin graph delete

刪除 Azure Cosmos DB Gremlin 資料庫底下的 Gremlin 圖形。

核心 GA
az cosmosdb gremlin graph exists

檢查 Azure Cosmos DB Gremlin 圖形是否存在。

核心 GA
az cosmosdb gremlin graph list

列出 Azure Cosmos DB Gremlin 資料庫底下的 Gremlin 圖形。

核心 GA
az cosmosdb gremlin graph restore

還原相同帳戶內已刪除的 gremlin 圖形。

核心 GA
az cosmosdb gremlin graph restore (cosmosdb-preview 擴充功能)

還原相同帳戶內已刪除的 gremlin 圖形。

副檔名 預覽​​
az cosmosdb gremlin graph show

在 Azure Cosmos DB Gremlin 資料庫下顯示 Gremlin 圖形的詳細數據。

核心 GA
az cosmosdb gremlin graph throughput

在 Azure Cosmos DB 帳戶下管理 Gremlin 圖形的輸送量。

核心 GA
az cosmosdb gremlin graph throughput migrate

在自動調整和手動布建之間移轉 Gremlin Graph 的輸送量。

核心 GA
az cosmosdb gremlin graph throughput show

取得 Azure Cosmos DB Gremlin 資料庫下 Gremlin 圖形的輸送量。

核心 GA
az cosmosdb gremlin graph throughput update

更新 Azure Cosmos DB Gremlin 資料庫下 Gremlin 圖形的輸送量。

核心 GA
az cosmosdb gremlin graph update

更新 Azure Cosmos DB Gremlin 資料庫下的 Gremlin 圖形。

核心 GA

az cosmosdb gremlin graph create

在 Azure Cosmos DB Gremlin 資料庫下建立 Gremlin 圖形。

az cosmosdb gremlin graph create --account-name
                                 --database-name
                                 --name
                                 --partition-key-path
                                 --resource-group
                                 [--analytical-storage-ttl]
                                 [--conflict-resolution-policy]
                                 [--idx]
                                 [--max-throughput]
                                 [--throughput]
                                 [--ttl]

範例

建立 Azure Cosmos DB Gremlin 圖形。

az cosmosdb gremlin graph create -g MyResourceGroup -a MyAccount -d MyDatabase -n MyGraph --partition-key-path "/my/path" --idx @policy-file.json --ttl 1000 --throughput "700"

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

圖形名稱。

--partition-key-path -p

分割區索引鍵路徑,例如 『/address/zipcode』。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

選擇性參數

--analytical-storage-ttl

分析 TTL,啟用分析記憶體時。

--conflict-resolution-policy -c

衝突解決原則,您可以將它輸入為字串或檔案,例如 --conflict-resolution-policy 或 --conflict-resolution-policy @policy-file.json “{”mode“: ”lastWriterWins“, ”conflictResolutionPath“: ”/path“}”。

--idx

編製索引原則,您可以將它輸入為字串或檔案, 例如,-idx 或 --idx @policy-file.json “{”indexingMode“: ”consistent“, ”automatic“: true, ”includedPaths“: [{”path“: ”/*“}], ”excludedPaths“: [{ ”path“: ”/headquarters/employees/?“}, { ”path“: ”/\“_etag\”/?“}}”。

預設值: { "indexingMode": "consistent", "automatic": true, "includedPaths": [ { "path": "/*" } ], "excludedPaths": [ { "path": "/\"_etag\"/?" } ] }
--max-throughput

輸送量資源上限可以調整為 (RU/秒)。 提供資源啟用自動調整時。 最小值可以是 4000 (RU/秒)。

--throughput

Gremlin 圖表的輸送量(RU/秒)。 預設值為 400。 如果資料庫具有共用輸送量,除非圖形應具有專用輸送量,否則請省略此參數。

--ttl

預設 TTL。 如果值遺失或設定為 「-1」,則專案不會過期。 如果值設定為 「n」 則專案會在上次修改時間之後的 「n」 秒到期。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb gremlin graph delete

刪除 Azure Cosmos DB Gremlin 資料庫底下的 Gremlin 圖形。

az cosmosdb gremlin graph delete --account-name
                                 --database-name
                                 --name
                                 --resource-group
                                 [--yes]

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

圖形名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

選擇性參數

--yes -y

不提示確認。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb gremlin graph exists

檢查 Azure Cosmos DB Gremlin 圖形是否存在。

az cosmosdb gremlin graph exists --account-name
                                 --database-name
                                 --name
                                 --resource-group

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

圖形名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb gremlin graph list

列出 Azure Cosmos DB Gremlin 資料庫底下的 Gremlin 圖形。

az cosmosdb gremlin graph list --account-name
                               --database-name
                               --resource-group

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb gremlin graph restore

還原相同帳戶內已刪除的 gremlin 圖形。

az cosmosdb gremlin graph restore --account-name
                                  --database-name
                                  --name
                                  --resource-group
                                  [--restore-timestamp]

範例

還原相同帳戶內已刪除的 gremlin 圖形。

az cosmosdb gremlin graph restore --resource-group resource_group --account-name database_account_name --database-name parent_database_name --name name_of_graph_needs_to_be_restored --restore-timestamp 2020-07-13T16:03:41+0000

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

CosmosDB Gremlin 資料庫名稱的名稱。

--name -n

CosmosDB Gremlin 圖形名稱的名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

選擇性參數

--restore-timestamp -t

圖形必須還原至的時間戳。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb gremlin graph restore (cosmosdb-preview 擴充功能)

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

還原相同帳戶內已刪除的 gremlin 圖形。

az cosmosdb gremlin graph restore --account-name
                                  --database-name
                                  --name
                                  --resource-group
                                  [--disable-ttl {false, true}]
                                  [--restore-timestamp]

範例

還原相同帳戶內已刪除的 gremlin 圖形。

az cosmosdb gremlin graph restore --resource-group resource_group --account-name database_account_name --database-name parent_database_name --name name_of_graph_needs_to_be_restored --restore-timestamp 2020-07-13T16:03:41+0000

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

CosmosDB Gremlin 資料庫名稱的名稱。

--name -n

CosmosDB Gremlin 圖形名稱的名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

選擇性參數

--disable-ttl
預覽

啟用或停用已停用ttl還原。

接受的值: false, true
--restore-timestamp -t

圖形必須還原至的時間戳。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb gremlin graph show

在 Azure Cosmos DB Gremlin 資料庫下顯示 Gremlin 圖形的詳細數據。

az cosmosdb gremlin graph show --account-name
                               --database-name
                               --name
                               --resource-group

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

圖形名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb gremlin graph update

更新 Azure Cosmos DB Gremlin 資料庫下的 Gremlin 圖形。

az cosmosdb gremlin graph update --account-name
                                 --database-name
                                 --name
                                 --resource-group
                                 [--analytical-storage-ttl]
                                 [--idx]
                                 [--ttl]

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--database-name -d

資料庫名稱。

--name -n

圖形名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

選擇性參數

--analytical-storage-ttl

分析 TTL,啟用分析記憶體時。

--idx

編製索引原則,您可以將它輸入為字串或檔案, 例如,-idx 或 --idx @policy-file.json “{”indexingMode“: ”consistent“, ”automatic“: true, ”includedPaths“: [{”path“: ”/*“}], ”excludedPaths“: [{ ”path“: ”/headquarters/employees/?“}, { ”path“: ”/\“_etag\”/?“}}”。

--ttl

預設 TTL。 如果值遺失或設定為 「-1」,則專案不會過期。 如果值設定為 「n」 則專案會在上次修改時間之後的 「n」 秒到期。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。