az batch task file
管理 Batch 任务文件。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az batch task file delete |
从运行任务的计算节点中删除指定的任务文件。 |
Core | GA |
| az batch task file download |
下载 Batch 任务文件的内容。 |
Core | GA |
| az batch task file list |
列出任务目录中的计算节点上的文件。 |
Core | GA |
| az batch task file show |
获取指定任务文件的属性。 |
Core | GA |
az batch task file delete
从运行任务的计算节点中删除指定的任务文件。
az batch task file delete --file-path
--job-id
--task-id
[--account-endpoint]
[--account-key]
[--account-name]
[--recursive {false, true}]
[--yes]
必需参数
要获取其内容的任务文件的路径。 Required.
包含任务的作业的 ID。 Required.
要检索其文件的任务的 ID。 Required.
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Batch 服务终结点。 或者,由环境变量设置:AZURE_BATCH_ENDPOINT。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch 帐户密钥。 或者,由环境变量设置:AZURE_BATCH_ACCESS_KEY。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch 帐户名称。 或者,按环境变量设置:AZURE_BATCH_ACCOUNT。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
是否删除目录的子级。 如果 filePath 参数表示目录而不是文件,则可以将递归设置为 true 以删除目录及其中的所有文件和子目录。 如果递归为 false,则目录必须为空或删除将失败。 默认值为无。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 batch task file download
下载 Batch 任务文件的内容。
az batch task file download --destination
--file-path
--job-id
--task-id
[--account-endpoint]
[--account-key]
[--account-name]
[--end-range]
[--if-modified-since]
[--if-unmodified-since]
[--start-range]
必需参数
目标文件或目录的路径。
要获取其内容的任务文件的路径。 Required.
包含任务的作业的 ID。 Required.
要检索其文件的任务的 ID。 Required.
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Batch 服务终结点。 或者,由环境变量设置:AZURE_BATCH_ENDPOINT。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch 帐户密钥。 或者,由环境变量设置:AZURE_BATCH_ACCESS_KEY。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch 帐户名称。 或者,按环境变量设置:AZURE_BATCH_ACCOUNT。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
要检索的字节范围。 如果未设置该文件,将检索到末尾。
| 属性 | 值 |
|---|---|
| Parameter group: | Pre-condition and Query Arguments |
一个时间戳,指示客户端已知资源的上次修改时间。 仅当服务上的资源自指定时间以来已修改时,才会执行该操作。
| 属性 | 值 |
|---|---|
| Parameter group: | Pre-condition and Query Arguments |
一个时间戳,指示客户端已知资源的上次修改时间。 仅当服务上的资源自指定时间以来已修改时,才会执行该操作。
| 属性 | 值 |
|---|---|
| Parameter group: | Pre-condition and Query Arguments |
要检索的字节范围。 如果未设置文件,将从头检索该文件。
| 属性 | 值 |
|---|---|
| Parameter group: | Pre-condition and Query Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 batch task file list
列出任务目录中的计算节点上的文件。
az batch task file list --job-id
--task-id
[--account-endpoint]
[--account-key]
[--account-name]
[--filter]
[--recursive {false, true}]
必需参数
包含任务的作业的 ID。 Required.
要列出其文件的任务的 ID。 Required.
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Batch 服务终结点。 或者,由环境变量设置:AZURE_BATCH_ENDPOINT。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch 帐户密钥。 或者,由环境变量设置:AZURE_BATCH_ACCESS_KEY。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch 帐户名称。 或者,按环境变量设置:AZURE_BATCH_ACCOUNT。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
OData $filter 子句。 有关构造此筛选器的详细信息,请参阅 https://free.blessedness.top/rest/api/batchservice/odata-filters-in-batch。
| 属性 | 值 |
|---|---|
| Parameter group: | Pre-condition and Query Arguments |
是否列出 Task 目录的子级。 此参数可与筛选器参数结合使用来列出特定类型的文件。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 batch task file show
获取指定任务文件的属性。
az batch task file show --file-path
--job-id
--task-id
[--account-endpoint]
[--account-key]
[--account-name]
[--if-modified-since]
[--if-unmodified-since]
必需参数
要获取其内容的任务文件的路径。 Required.
包含任务的作业的 ID。 Required.
要检索其文件的任务的 ID。 Required.
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Batch 服务终结点。 或者,由环境变量设置:AZURE_BATCH_ENDPOINT。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch 帐户密钥。 或者,由环境变量设置:AZURE_BATCH_ACCESS_KEY。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
Batch 帐户名称。 或者,按环境变量设置:AZURE_BATCH_ACCOUNT。
| 属性 | 值 |
|---|---|
| Parameter group: | Batch Account Arguments |
一个时间戳,指示客户端已知资源的上次修改时间。 仅当服务上的资源自指定时间以来已修改时,才会执行该操作。
| 属性 | 值 |
|---|---|
| Parameter group: | Pre-condition and Query Arguments |
一个时间戳,指示客户端已知资源的上次修改时间。 仅当服务上的资源自指定时间以来已修改时,才会执行该操作。
| 属性 | 值 |
|---|---|
| Parameter group: | Pre-condition and Query Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |