Share via


az hpc-cache storage-target

注意

此參考是 Azure CLI 的 hpc-cache 擴充功能的一部分 (2.3.0 版或更高版本)。 擴充功能會在您第一次執行 az hpc-cache storage-target 命令時自動安裝。 深入了解擴充功能。

管理 hpc cache storage target 的命令。

命令

名稱 Description 類型 狀態
az hpc-cache storage-target list

傳回指定快取儲存體目標的清單。

擴充 GA
az hpc-cache storage-target remove

從快取中移除儲存體目標。 您可以隨時允許此作業,但如果快取關閉或狀況不良,則實際移除儲存體目標可能會延遲,直到快取再次狀況良好為止。 請注意,如果快取有資料要排清至儲存體目標,則會先排清資料,再刪除儲存體目標。

擴充 GA
az hpc-cache storage-target show

從快取傳回儲存體目標。

擴充 GA

az hpc-cache storage-target list

傳回指定快取儲存體目標的清單。

az hpc-cache storage-target list --cache-name
                                 --resource-group

範例

儲存體Targets_List

az hpc-cache storage-target list --resource-group "scgroup" --cache-name "sc1"

必要參數

--cache-name

快取的名稱。

--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 hpc-cache storage-target remove

從快取中移除儲存體目標。 您可以隨時允許此作業,但如果快取關閉或狀況不良,則實際移除儲存體目標可能會延遲,直到快取再次狀況良好為止。 請注意,如果快取有資料要排清至儲存體目標,則會先排清資料,再刪除儲存體目標。

az hpc-cache storage-target remove --cache-name
                                   --name
                                   --resource-group

範例

儲存體Targets_Delete

az hpc-cache storage-target remove --resource-group "scgroup" --cache-name "sc1" --name "st1"

必要參數

--cache-name

快取的名稱。

--name

儲存體目標的名稱。

--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 hpc-cache storage-target show

從快取傳回儲存體目標。

az hpc-cache storage-target show --cache-name
                                 --name
                                 --resource-group

範例

儲存體Targets_Get

az hpc-cache storage-target show --resource-group "scgroup" --cache-name "sc1" --name "st1"

必要參數

--cache-name

快取的名稱。

--name

儲存體目標的名稱。

--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 來取得完整偵錯記錄。