Get Service

Gets the description of the specified service in an application resource.

Gets the description of the service resource.

Request

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

Parameters

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

applicationResourceName

Type: string
Required: Yes

Service Fabric application resource name.


serviceResourceName

Type: string
Required: Yes

Service Fabric service 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
ServiceResourceDescription

Examples

GetService

This example shows how to get a specific replica of a given service in an application resource.

Request

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

200 Response

Body
{
  "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": "2",
    "healthState": "Ok",
    "status": "Active"
  }
}