你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

获取有关服务群集代码的 nformation

获取有关指定位置中可用的 Service Fabric 群集代码版本的信息。

获取有关可用 Service Fabric 群集代码版本的信息。

请求

方法 请求 URI
GET /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions/{clusterVersion}?api-version=2018-02-01

参数

名称 类型 必须 位置
location 字符串 路径
subscriptionId 字符串 路径
clusterVersion 字符串 路径
api-version 字符串 查询

location

类型:字符串
必需:是

群集代码版本的位置。 这与群集位置不同。


subscriptionId

类型:字符串
必需:是

客户订阅标识符。


clusterVersion

类型:字符串
必需:是

群集代码版本。


api-version

类型:字符串
必需:是
默认值:2018-02-01

Service Fabric 资源提供程序 API 的版本。 这是必需参数,对于此规范,其值必须为“2018-02-01”。

响应

HTTP 状态代码 说明 响应架构
200 (正常) 操作已成功完成。
ClusterCodeVersionsListResult

示例

获取群集版本

请求

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/clusterVersions/6.1.480.9494?api-version=2018-02-01

200 响应

正文
{
  "value": [
    {
      "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/clusterVersions/6.1.480.9494",
      "name": "6.1.480.9494",
      "type": "Microsoft.ServiceFabric/locations/environments/clusterVersions",
      "properties": {
        "codeVersion": "6.1.480.9494",
        "supportExpiryUtc": "2018-06-15T23:59:59.9999999",
        "environment": "Windows"
      }
    }
  ]
}