Service Fabric 取得
取得 Service Fabric 應用程式資源。
取得在 Service Fabric 叢集資源中建立或正在建立的 Service Fabric 應用程式資源。
要求
方法 | 要求 URI |
---|---|
GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}?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 (確定) | 作業已成功完成。 |
ApplicationResource |
所有其他狀態碼 | 詳細的錯誤回應。 |
ErrorModel |
範例
取得應用程式
要求
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp?api-version=2017-07-01-preview
200 回應
主體
{
"type": "applications",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp",
"name": "myCluster",
"tags": {},
"etag": "W/\"636462502180261859\"",
"properties": {
"provisioningState": "Updating",
"typeName": "myAppType",
"typeVersion": "1.0",
"parameters": {
"param1": "value1"
},
"upgradePolicy": {
"applicationHealthPolicy": {
"considerWarningAsError": true,
"maxPercentUnhealthyDeployedApplications": "0",
"defaultServiceTypeHealthPolicy": {
"maxPercentUnhealthyServices": "0",
"maxPercentUnhealthyPartitionsPerService": "0",
"maxPercentUnhealthyReplicasPerPartition": "0"
}
},
"rollingUpgradeMonitoringPolicy": {
"failureAction": "Rollback",
"healthCheckRetryTimeout": "00:10:00",
"healthCheckWaitDuration": "00:02:00",
"healthCheckStableDuration": "00:05:00",
"upgradeDomainTimeout": "1.06:00:00",
"upgradeTimeout": "01:00:00"
},
"upgradeReplicaSetCheckTimeout": "01:00:00",
"forceRestart": false
},
"maximumNodes": "3",
"minimumNodes": "1",
"removeApplicationCapacity": false,
"metrics": [
{
"name": "metric1",
"reservationCapacity": "1",
"maximumCapacity": "3",
"totalApplicationCapacity": "5"
}
]
}
}