sfctl rpmsfctl rpm

查询并向修复管理器服务发送命令。Query and send commands to the repair manager service.

命令Commands

CommandCommand 说明Description
approve-forceapprove-force 强制批准给定的修复任务。Forces the approval of the given repair task.
deletedelete 删除已完成的修复任务。Deletes a completed repair task.
listlist 获取与给定筛选器匹配的修复任务列表。Gets a list of repair tasks matching the given filters.

sfctl rpm approve-forcesfctl rpm approve-force

强制批准给定的修复任务。Forces the approval of the given repair task.

此 API 支持 Service Fabric 平台;不应从代码直接使用它。This API supports the Service Fabric platform; it is not meant to be used directly from your code.

参数Arguments

参数Argument 说明Description
--task-id [必需]--task-id [Required] 修复任务的 ID。The ID of the repair task.
--version--version 修复任务的当前版本号。The current version number of the repair task. 如果值为非零,则仅当此值与修复任务的实际当前版本匹配时,请求才会成功。If non-zero, then the request will only succeed if this value matches the actual current version of the repair task. 如果值为零,则不执行版本检查。If zero, then no version check is performed.

全局参数Global Arguments

参数Argument 说明Description
--debug--debug 提高日志记录详细程度以显示所有调试日志。Increase logging verbosity to show all debug logs.
--help -h--help -h 显示此帮助消息并退出。Show this help message and exit.
--output -o--output -o 输出格式。Output format. 允许的值: json、jsonc、table、tsv。Allowed values: json, jsonc, table, tsv. 默认值: json。Default: json.
--query--query JMESPath 查询字符串。JMESPath query string. 有关详细信息和示例,请参阅 http://jmespath.org/。See http://jmespath.org/ for more information and examples.
--verbose--verbose 提高日志记录详细程度。Increase logging verbosity. 使用 --debug 获取完整的调试日志。Use --debug for full debug logs.

sfctl rpm deletesfctl rpm delete

删除已完成的修复任务。Deletes a completed repair task.

此 API 支持 Service Fabric 平台;不应从代码直接使用它。This API supports the Service Fabric platform; it is not meant to be used directly from your code.

参数Arguments

参数Argument 说明Description
--task-id [必需]--task-id [Required] 要删除的已完成修复任务的 ID。The ID of the completed repair task to be deleted.
--version--version 修复任务的当前版本号。The current version number of the repair task. 如果值为非零,则仅当此值与修复任务的实际当前版本匹配时,请求才会成功。If non-zero, then the request will only succeed if this value matches the actual current version of the repair task. 如果值为零,则不执行版本检查。If zero, then no version check is performed.

全局参数Global Arguments

参数Argument 说明Description
--debug--debug 提高日志记录详细程度以显示所有调试日志。Increase logging verbosity to show all debug logs.
--help -h--help -h 显示此帮助消息并退出。Show this help message and exit.
--output -o--output -o 输出格式。Output format. 允许的值: json、jsonc、table、tsv。Allowed values: json, jsonc, table, tsv. 默认值: json。Default: json.
--query--query JMESPath 查询字符串。JMESPath query string. 有关详细信息和示例,请参阅 http://jmespath.org/。See http://jmespath.org/ for more information and examples.
--verbose--verbose 提高日志记录详细程度。Increase logging verbosity. 使用 --debug 获取完整的调试日志。Use --debug for full debug logs.

sfctl rpm listsfctl rpm list

获取与给定筛选器匹配的修复任务列表。Gets a list of repair tasks matching the given filters.

此 API 支持 Service Fabric 平台;不应从代码直接使用它。This API supports the Service Fabric platform; it is not meant to be used directly from your code.

参数Arguments

参数Argument 说明Description
--executor-filter--executor-filter 应在列表中包含其声明任务的修复执行程序的名称。The name of the repair executor whose claimed tasks should be included in the list.
--state-filter--state-filter 以下值的按位 OR 运算,指定应在结果列表中包含哪些任务状态。A bitwise-OR of the following values, specifying which task states should be included in the result list.
  • 1 - 已创建1 - Created
  • 2 - 已声明2 - Claimed
  • 4 - 正在准备4 - Preparing
  • 8 - 已批准8 - Approved
  • 16 - 正在执行16 - Executing
  • 32 - 正在还原32 - Restoring
  • 64 - 已完成64 - Completed
--task-id-filter--task-id-filter 要匹配的修复任务 ID 前缀。The repair task ID prefix to be matched.

全局参数Global Arguments

参数Argument 说明Description
--debug--debug 提高日志记录详细程度以显示所有调试日志。Increase logging verbosity to show all debug logs.
--help -h--help -h 显示此帮助消息并退出。Show this help message and exit.
--output -o--output -o 输出格式。Output format. 允许的值: json、jsonc、table、tsv。Allowed values: json, jsonc, table, tsv. 默认值: json。Default: json.
--query--query JMESPath 查询字符串。JMESPath query string. 有关详细信息和示例,请参阅 http://jmespath.org/。See http://jmespath.org/ for more information and examples.
--verbose--verbose 提高日志记录详细程度。Increase logging verbosity. 使用 --debug 获取完整的调试日志。Use --debug for full debug logs.

后续步骤Next steps