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

Service Fabric 列表

获取在指定的 Service Fabric 群集资源中创建的应用程序资源的列表。

获取在 Service Fabric 群集资源中创建或创建过程中的所有应用程序资源。

请求

方法 请求 URI
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications?api-version=2017-07-01-preview

参数

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

subscriptionId

类型:字符串
必需:是

客户订阅标识符。


resourceGroupName

类型:字符串
必需:是

资源组的名称。


clusterName

类型:字符串
必需:是

群集资源的名称。


api-version

类型:字符串
必需:是
默认值:2017-07-01-preview

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

响应

HTTP 状态代码 说明 响应架构
200 (正常) 操作已成功完成。
ApplicationResourceList
所有其他状态代码 详细的错误响应。
ErrorModel

示例

获取应用程序资源列表

请求

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications?api-version=2017-07-01-preview

200 响应

正文
{
  "value": [
    {
      "type": "applications",
      "location": "eastus",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp",
      "name": "myCluster",
      "tags": {},
      "etag": "W/\"636462502180261858\"",
      "properties": {
        "provisioningState": "Updating",
        "typeName": "myAppType",
        "typeVersion": "1.0",
        "removeApplicationCapacity": false,
        "metrics": [
          {
            "name": "metric1",
            "reservationCapacity": "1",
            "maximumCapacity": "3",
            "totalApplicationCapacity": "5"
          }
        ]
      }
    }
  ],
  "nextLink": ""
}