sfctl issfctl is

查询并向基础结构服务发送命令。Query and send commands to the infrastructure service.

命令Commands

命令Command 说明Description
commandcommand 针对给定基础结构服务实例调用管理命令。Invokes an administrative command on the given Infrastructure Service instance.
查询query 针对给定基础结构服务实例调用只读查询。Invokes a read-only query on the given infrastructure service instance.

sfctl is commandsfctl is command

针对给定基础结构服务实例调用管理命令。Invokes an administrative command on the given Infrastructure Service instance.

对于配置了一个或多个基础结构服务实例的群集,使用此 API 可向特定基础结构服务实例发送特定于基础结构的命令。For clusters that have one or more instances of the Infrastructure Service configured, this API provides a way to send infrastructure-specific commands to a particular instance of the Infrastructure Service. 可用命令及其相应的响应格式因运行群集的基础结构而异。Available commands and their corresponding response formats vary depending upon the infrastructure on which the cluster is running. 此 API 支持 Service Fabric 平台;不应从代码直接使用它。This API supports the Service Fabric platform; it is not meant to be used directly from your code.

参数Arguments

参数Argument 说明Description
--command [必需]--command [Required] 将调用的命令文本。The text of the command to be invoked. 命令内容特定于基础结构。The content of the command is infrastructure-specific.
--service-id--service-id 基础结构服务标识。The identity of the infrastructure service.

这是不包含“fabric:”URI 方案的基础结构服务全名。This is the full name of the infrastructure service without the 'fabric:' URI scheme. 只有运行多个基础结构服务实例的群集才需要此参数。This parameter required only for the cluster that has more than one instance of infrastructure service running.
--timeout -t--timeout -t 服务器超时,以秒为单位。Server timeout in seconds. 默认值: 60。Default: 60.

全局参数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 is querysfctl is query

针对给定基础结构服务实例调用只读查询。Invokes a read-only query on the given infrastructure service instance.

对于配置了一个或多个基础结构服务实例的群集,使用此 API 可向特定基础结构服务实例发送特定于基础结构的查询。For clusters that have one or more instances of the Infrastructure Service configured, this API provides a way to send infrastructure-specific queries to a particular instance of the Infrastructure Service. 可用命令及其相应的响应格式因运行群集的基础结构而异。Available commands and their corresponding response formats vary depending upon the infrastructure on which the cluster is running. 此 API 支持 Service Fabric 平台;不应从代码直接使用它。This API supports the Service Fabric platform; it is not meant to be used directly from your code.

参数Arguments

参数Argument 说明Description
--command [必需]--command [Required] 将调用的命令文本。The text of the command to be invoked. 命令内容特定于基础结构。The content of the command is infrastructure-specific.
--service-id--service-id 基础结构服务标识。The identity of the infrastructure service.

这是不包含“fabric:”URI 方案的基础结构服务全名。This is the full name of the infrastructure service without the 'fabric:' URI scheme. 只有运行多个基础结构服务实例的群集才需要此参数。This parameter required only for the cluster that has more than one instance of infrastructure service running.
--timeout -t--timeout -t 服务器超时,以秒为单位。Server timeout in seconds. 默认值: 60。Default: 60.

全局参数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