Get API Replica
Gets a specific replica of a given service.
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 | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}/replicas/{replicaName}?api-version=2018-07-01-preview |
Parameters
Name | Type | Required | Location |
---|---|---|---|
subscriptionId |
string | Yes | Path |
resourceGroupName |
string | Yes | Path |
applicationName |
string | Yes | Path |
serviceName |
string | Yes | Path |
replicaName |
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.
serviceName
Type: string
Required: Yes
The identity of the service.
replicaName
Type: string
Required: Yes
The identity of the service replica.
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 |
ServiceReplicaDescription |
Examples
ReplicaGet
Request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService/replicas/1?api-version=2018-07-01-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"
},
"events": [
{
"count": "3",
"firstTimestamp": "2018-04-05T22:37:20.9016844",
"lastTimestamp": "2018-04-06T06:36:06.0887046",
"name": "Created",
"message": "Container created and started.",
"type": "Normal"
},
{
"count": "1",
"firstTimestamp": "2018-04-06T06:34:00.6622454",
"lastTimestamp": "2018-04-06T06:34:00.6622454",
"name": "Stopped",
"message": "Container was stopped.",
"type": "Normal"
}
]
}
},
{
"name": "helloWorldSideCar",
"image": "seabreeze/sbz-helloworld-sidecar:1.0-alpine",
"resources": {
"requests": {
"memoryInGB": "1",
"cpu": "1"
}
},
"instanceView": {
"restartCount": "1",
"currentState": {
"state": "Running",
"exitCode": "0"
},
"previousState": {
"state": "NotSpecified",
"exitCode": "0"
},
"events": [
{
"count": "3",
"firstTimestamp": "2018-04-05T22:37:20.906688",
"lastTimestamp": "2018-04-06T06:36:06.0827003",
"name": "Created",
"message": "Container created and started.",
"type": "Normal"
},
{
"count": "1",
"firstTimestamp": "2018-04-06T06:34:00.656241",
"lastTimestamp": "2018-04-06T06:34:00.656241",
"name": "Stopped",
"message": "Container was stopped.",
"type": "Normal"
}
]
}
}
],
"networkRefs": [
{
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"
}
],
"replicaName": "1"
}