az hpc-cache storage-target
Note
此参考是 Azure CLI(版本 2.3.0 或更高版本) 的 hpc 缓存 扩展的一部分。 该扩展会在首次运行 az hpc-cache storage-target 命令时自动安装。 了解更多关于扩展的信息。
用于管理 hpc 缓存存储目标的命令。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az hpc-cache storage-target list |
返回指定缓存的存储目标列表。 |
Extension | GA |
| az hpc-cache storage-target remove |
从缓存中删除存储目标。 可随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际删除可能会延迟,直到缓存再次正常运行。 请注意,如果缓存的数据要刷新到存储目标,则会在删除存储目标之前刷新数据。 |
Extension | GA |
| az hpc-cache storage-target show |
从缓存中返回存储目标。 |
Extension | GA |
az hpc-cache storage-target list
返回指定缓存的存储目标列表。
az hpc-cache storage-target list --cache-name
--resource-group
示例
StorageTargets_List
az hpc-cache storage-target list --resource-group "scgroup" --cache-name "sc1"
必需参数
缓存的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hpc-cache storage-target remove
从缓存中删除存储目标。 可随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际删除可能会延迟,直到缓存再次正常运行。 请注意,如果缓存的数据要刷新到存储目标,则会在删除存储目标之前刷新数据。
az hpc-cache storage-target remove --cache-name
--name
--resource-group
示例
StorageTargets_Delete
az hpc-cache storage-target remove --resource-group "scgroup" --cache-name "sc1" --name "st1"
必需参数
缓存的名称。
存储目标的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az hpc-cache storage-target show
从缓存中返回存储目标。
az hpc-cache storage-target show --cache-name
--name
--resource-group
示例
StorageTargets_Get
az hpc-cache storage-target show --resource-group "scgroup" --cache-name "sc1" --name "st1"
必需参数
缓存的名称。
存储目标的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |