Bagikan melalui


Dapatkan Layanan API

Mendapatkan properti layanan.

Operasi mengembalikan properti layanan.

Minta

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

Parameter

Nama Jenis Diperlukan Lokasi
subscriptionId string Ya Jalur
resourceGroupName string Ya Jalur
applicationName string Ya Jalur
serviceName string Ya Jalur
api-version string Ya Kueri

subscriptionId

Jenis: string
Diperlukan: Ya

Pengidentifikasi langganan pelanggan


resourceGroupName

Jenis: string
Diperlukan: Ya

Nama grup sumber daya Azure


applicationName

Jenis: string
Diperlukan: Ya

Identitas aplikasi.


serviceName

Jenis: string
Diperlukan: Ya

Identitas layanan.


api-version

Jenis: string
Diperlukan: Ya
Default: 2018-07-01-preview

Versi API. Parameter ini diperlukan dan nilainya harus 2018-07-01-preview.

Respons

Kode Status HTTP Deskripsi Skema Respons
200 (OK) OK
ServiceResourceDescription

Contoh

ServiceGet

Minta

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService?api-version=2018-07-01-preview

Respons 200

Isi
{
  "name": "helloWorldService",
  "type": "Microsoft.ServiceFabricMesh/services",
  "properties": {
    "osType": "Linux",
    "codePackages": [
      {
        "name": "helloWorldCode",
        "image": "seabreeze/sbz-helloworld:1.0-alpine",
        "endpoints": [
          {
            "name": "helloWorldListener",
            "port": "80"
          }
        ],
        "resources": {
          "requests": {
            "memoryInGB": "1",
            "cpu": "1"
          }
        }
      },
      {
        "name": "helloWorldSideCar",
        "image": "seabreeze/sbz-helloworld-sidecar:1.0-alpine",
        "resources": {
          "requests": {
            "memoryInGB": "1",
            "cpu": "1"
          }
        }
      }
    ],
    "networkRefs": [
      {
        "name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"
      }
    ],
    "description": "SeaBreeze Hello World Service.",
    "replicaCount": "2",
    "healthState": "Ok",
    "status": "Unknown"
  }
}