Service Fabric 清單服務
取得在指定 Service Fabric 應用程式資源中建立的服務資源清單。
取得在 Service Fabric 應用程式資源中建立或程式中建立的所有服務資源。
要求
方法 | 要求 URI |
---|---|
GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services?api-version=2017-07-01-preview |
參數
名稱 | 類型 | 必要 | Location |
---|---|---|---|
subscriptionId | string | 是 | 路徑 |
resourceGroupName | string | 是 | 路徑 |
clusterName | string | 是 | 路徑 |
applicationName | 字串 | 是 | 路徑 |
api-version | string | 是 | 查詢 |
subscriptionId
類型:字串
必要:是
客戶訂用帳戶識別碼。
resourceGroupName
類型:字串
必要:是
資源群組的名稱。
clusterName
類型:字串
必要:是
叢集資源的名稱。
applicationName
類型:字串
必要:是
應用程式資源的名稱。
api-version
類型:字串
必要:是
預設值:2017-07-01-preview
Service Fabric 資源提供者 API 的版本。 這是必要的參數,而且此值必須是此規格的 「2017-07-01-preview」。
回應
HTTP 狀態碼 | 描述 | 回應結構描述 |
---|---|---|
200 (確定) | 作業已成功完成。 |
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": ""
}