Get-ServiceFabricClusterConfiguration
获取独立部署的最新 JSON 格式群集配置。
语法
Default (默认值)
Get-ServiceFabricClusterConfiguration
[-UseApiVersion]
[-ApiVersion <String>]
[-TimeoutSec <Int32>]
[<CommonParameters>]
说明
Get-ServiceFabricClusterConfiguration cmdlet 获取最新的群集配置 JavaScript 对象表示法(JSON)格式。
若要运行此 cmdlet,必须先使用 Connect-ServiceFabricCluster cmdlet 建立连接。
此 cmdlet 仅适用于本地独立部署。 如果针对没有 UpgradeOrchestrationService Fabric 系统服务的群集执行,则请求将超时。
示例
示例 1:获取群集配置
PS C:\> Connect-ServiceFabricCluster -ConnectionEndpoint "ServiceFabric01.ContosoCloudApp.net:19000"
PS C:\> Get-ServiceFabricClusterConfiguration -UseApiVersion -ApiVersion 05-2017
第一个命令创建与指定群集的连接。
第二个命令获取 JSON 格式的最新群集配置。
参数
-ApiVersion
群集 json 配置上的 Api 版本。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TimeoutSec
Get-ServiceFabricClusterConfiguration cmdlet 获取最新的群集配置 JavaScript 对象表示法(JSON)格式。
若要运行此 cmdlet,必须先使用 Connect-ServiceFabricCluster cmdlet 建立连接。
此 cmdlet 仅适用于本地独立部署。 如果针对没有 UpgradeOrchestrationService Fabric 系统服务的群集执行,则请求将超时。
参数属性
| 类型: | Int32 |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-UseApiVersion
如果为 True,则表示需要 ApiVersion 参数。
参数属性
| 类型: | SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。