Get Replica

Gets a specific replica of a given service in an application resource.

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

Request

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

Parameters

Name Type Required Location
applicationResourceName string Yes Path
serviceResourceName string Yes Path
replicaName 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.


replicaName

Type: string
Required: Yes

Service Fabric replica 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
ServiceResourceReplicaDescription

Examples

GetReplica

This example shows how to get the description of the specified service in an application resource.

Request

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

200 Response

Body
{
  "osType": "Linux",
  "codePackages": [
    {
      "name": "helloWorldCode",
      "image": "seabreeze/sbz-helloworld:1.0-alpine",
      "endpoints": [
        {
          "name": "helloWorldListener",
          "port": "80"
        }
      ],
      "resources": {
        "requests": {
          "memoryInGB": "1",
          "cpu": "1"
        }
      },
      "instanceView": {
        "restartCount": "1",
        "currentState": {
          "state": "Running",
          "exitCode": "0"
        },
        "previousState": {
          "state": "NotSpecified",
          "exitCode": "0"
        }
      }
    }
  ],
  "networkRefs": [],
  "replicaName": "0s"
}