Get Services

Gets all the services in the application resource.

The operation returns the service descriptions of all the services in the application resource.

Request

Method Request URI
GET /Resources/Applications/{applicationResourceName}/Services?api-version=6.3-preview

Parameters

Name Type Required Location
applicationResourceName string Yes Path
api-version string Yes Query

applicationResourceName

Type: string
Required: Yes

Service Fabric application resource name.


api-version

Type: string
Required: Yes
Default: 6.3-preview

The version of the API. This parameter is required and its value must be '6.3-preview'.

Responses

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

Examples

GetServices

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

Request

GET http://localhost:19080/Resources/Applications/helloWorldApp/Services?api-version=6.3-preview

200 Response

Body
{
  "ContinuationToken": "",
  "Items": [
    {
      "name": "helloWorldService",
      "properties": {
        "osType": "Linux",
        "codePackages": [
          {
            "name": "helloWorldCode",
            "image": "seabreeze/sbz-helloworld:1.0-alpine",
            "endpoints": [
              {
                "name": "helloWorldListener",
                "port": "80"
              }
            ],
            "resources": {
              "requests": {
                "memoryInGB": "1",
                "cpu": "1"
              }
            }
          }
        ],
        "networkRefs": [],
        "description": "SeaBreeze Hello World Service.",
        "replicaCount": "1",
        "healthState": "Ok",
        "status": "Unknown"
      }
    }
  ]
}