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

按应用程序名称列出

获取给定应用程序的服务。

获取有关应用程序给定服务的所有服务的信息。 该信息包括服务实例的运行时属性。

请求

方法 请求 URI
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services?api-version=2018-07-01-preview

参数

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

subscriptionId

类型:字符串
必需:是

客户订阅标识符


resourceGroupName

类型:字符串
必需:是

Azure 资源组名称


applicationName

类型:字符串
必需:是

应用程序的标识。


api-version

类型:字符串
必需:是
默认

API 的版本。 此参数是必需的,其值必须为 2018-07-01-preview

响应

HTTP 状态代码 说明 响应架构
200 (正常) 确定
ServiceList

示例

ServiceGetAll

此示例演示如何列出给定应用程序的所有服务。

请求

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services?api-version=2018-07-01-preview

200 响应

正文
{
  "value": [
    {
      "name": "helloWorldService",
      "type": "Microsoft.ServiceFabricMesh/services",
      "properties": {
        "osType": "Linux",
        "codePackages": [
          {
            "name": "helloWorldCode",
            "image": "seabreeze/sbz-helloworld:1.0-alpine",
            "endpoints": [
              {
                "name": "helloWorldListener",
                "port": "80"
              }
            ],
            "resources": {
              "requests": {
                "memoryInGB": "1",
                "cpu": "1"
              }
            }
          },
          {
            "name": "helloWorldSideCar",
            "image": "seabreeze/sbz-helloworld-sidecar:1.0-alpine",
            "resources": {
              "requests": {
                "memoryInGB": "1",
                "cpu": "1"
              }
            }
          }
        ],
        "networkRefs": [
          {
            "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"
          }
        ],
        "description": "SeaBreeze Hello World Service.",
        "replicaCount": "1",
        "healthState": "Ok",
        "status": "Unknown"
      }
    }
  ]
}