Share via


Service Fabric List Service

指定した Service Fabric アプリケーション リソースで作成されたサービス リソースの一覧を取得します。

Service Fabric アプリケーション リソースで作成された、または作成中のすべてのサービス リソースを取得します。

Request

Method 要求 URI
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services?api-version=2017-07-01-preview

パラメーター

名前 Type 必須 場所
subscriptionId string はい パス
resourceGroupName string はい パス
clusterName string はい パス
applicationName string はい パス
api-version string はい クエリ

subscriptionId

: string
必須: はい

顧客サブスクリプション識別子。


resourceGroupName

: string
必須: はい

リソース グループの名前。


clusterName

: string
必須: はい

クラスター リソースの名前。


applicationName

: string
必須: はい

アプリケーション リソースの名前。


api-version

: string
必須: はい
既定値: 2017-07-01-preview

Service Fabric リソース プロバイダー API のバージョン。 これは必須のパラメーターであり、この仕様の値は "2017-07-01-preview" である必要があります。

応答

HTTP 状態コード 説明 応答スキーマ
200 (OK) 操作は正常に完了しました。
ServiceResourceList
その他すべての状態コード 詳細なエラー応答。
ErrorModel

使用例

サービス リソースの一覧を取得する

要求

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp/services?api-version=2017-07-01-preview

200 応答

本文
{
  "value": [
    {
      "type": "services",
      "location": "eastus",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp/services/myService",
      "name": "myCluster",
      "tags": {},
      "etag": "W/\"636462502183671257\"",
      "properties": {
        "provisioningState": "Updating",
        "serviceKind": "Stateless",
        "serviceTypeName": "myServiceType",
        "partitionDescription": {
          "partitionScheme": "Singleton"
        },
        "serviceLoadMetrics": [
          {
            "name": "metric1",
            "weight": "Low"
          }
        ],
        "instanceCount": "1"
      }
    }
  ],
  "nextLink": ""
}