List By Application Name

Gets services of a given application.

Gets the information about all services of a given service of an application. The information includes the runtime properties of the service instance.

Request

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

Parameters

Name Type Required Location
subscriptionId string Yes Path
resourceGroupName string Yes Path
applicationName string Yes Path
api-version string Yes Query

subscriptionId

Type: string
Required: Yes

The customer subscription identifier


resourceGroupName

Type: string
Required: Yes

Azure resource group name


applicationName

Type: string
Required: Yes

The identity of the application.


api-version

Type: string
Required: Yes
Default: 2018-07-01-preview

The version of the API. This parameter is required and its value must be 2018-07-01-preview.

Responses

HTTP Status Code Description Response Schema
200 (OK) OK
ServiceList

Examples

ServiceGetAll

This example shows how to list all services of a given application.

Request

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 Response

Body
{
  "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"
      }
    }
  ]
}