Freigeben über


Nach Dienstname auflisten

Ruft Replikate eines bestimmten Diensts ab.

Ruft die Informationen zu allen Replikaten eines bestimmten Diensts einer Anwendung ab. Die Informationen enthalten die Laufzeiteigenschaften des Replikats instance.

Anforderung

Methode Anforderungs-URI
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}/replicas?api-version=2018-07-01-preview

Parameter

Name type Erforderlich Standort
subscriptionId Zeichenfolge Ja Pfad
resourceGroupName Zeichenfolge Ja Pfad
applicationName Zeichenfolge Ja Pfad
serviceName Zeichenfolge Ja Pfad
api-version Zeichenfolge Ja Abfrage

subscriptionId

Typ: Zeichenfolge
Erforderlich: Ja

Der Kundenabonnementbezeichner


resourceGroupName

Typ: Zeichenfolge
Erforderlich: Ja

Azure-Ressourcengruppenname


applicationName

Typ: Zeichenfolge
Erforderlich: Ja

Die Identität (ID) der Anwendung.


serviceName

Typ: Zeichenfolge
Erforderlich: Ja

Die Identität (ID) des Diensts.


api-version

Typ: Zeichenfolge
Erforderlich: Ja
Standard:

Die Version der API. Dieser Parameter ist erforderlich, und sein Wert muss sein 2018-07-01-preview.

Antworten

HTTP-Statuscode BESCHREIBUNG Antwortschema
200 (OK) OK
ServiceReplicaList

Beispiele

ReplicasGetAll

Anforderung

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

Antwort 200

Text
{
  "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"
    }
  ]
}