依服務名稱列出
取得指定服務的複本。
取得應用程式指定服務之所有複本的相關資訊。 此資訊包括複本實例的執行時間屬性。
要求
方法 | 要求 URI |
---|---|
GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}/replicas?api-version=2018-07-01-preview |
參數
名稱 | 類型 | 必要 | Location |
---|---|---|---|
subscriptionId |
字串 | 是 | 路徑 |
resourceGroupName |
字串 | 是 | 路徑 |
applicationName |
字串 | 是 | 路徑 |
serviceName |
字串 | 是 | 路徑 |
api-version |
字串 | 是 | 查詢 |
subscriptionId
類型:字串
必要:是
客戶訂用帳戶識別碼
resourceGroupName
類型:字串
必要:是
Azure 資源群組名稱
applicationName
類型:字串
必要:是
應用程式的身分識別。
serviceName
類型:字串
必要:是
服務的身分識別。
api-version
類型:字串
必要:是
預設:2018-07-01-preview
API 的版本。 這個參數是必要的,而且其值必須是 2018-07-01-preview
。
回應
HTTP 狀態碼 | 描述 | 回應結構描述 |
---|---|---|
200 (確定) | 確定 |
ServiceReplicaList |
範例
ReplicasGetAll
要求
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService/replicas?api-version=2018-07-01-preview
200 回應
主體
{
"value": [
{
"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"
},
{
"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": "0"
}
]
}