Service Fabric の作成

Service Fabric アプリケーション リソースを作成または更新します。

指定した名前で Service Fabric アプリケーション リソースを作成または更新します。

Request

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

パラメーター

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

subscriptionId

: string
必須: はい

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


resourceGroupName

: string
必須: はい

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


clusterName

: string
必須: はい

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


applicationName

: string
必須: はい

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


api-version

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

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


parameters

種類: ApplicationResource
必須: はい

アプリケーション リソース。

応答

HTTP 状態コード 説明 応答スキーマ
202 (承認済み) 要求が受け入れられ、操作は非同期的に完了します。
ApplicationResource
その他すべての状態コード 詳細なエラー応答。
ErrorModel

使用例

ミニ数値パラメーターを使用してアプリケーションを配置する

要求

PUT 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
本文
{
  "type": "applications",
  "location": "eastus",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp",
  "name": "myCluster",
  "tags": {},
  "properties": {
    "typeName": "myAppType",
    "typeVersion": "1.0",
    "removeApplicationCapacity": false
  }
}

202 応答

ヘッダー
Retry-After: 10
Location: http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/5dce62ce-439b-47af-81d8-99ab14708e91?api-version=2017-07-01-preview
本文
{
  "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/\"636462502180261857\"",
  "properties": {
    "provisioningState": "Updating",
    "typeName": "myAppType",
    "typeVersion": "1.0",
    "removeApplicationCapacity": false
  }
}

最大パラメーターを使用してアプリケーションを配置する

要求

PUT 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
本文
{
  "type": "applications",
  "location": "eastus",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp",
  "name": "myCluster",
  "tags": {},
  "properties": {
    "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"
      }
    ]
  }
}

202 応答

ヘッダー
Retry-After: 10
Location: http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/9c2ce367-47ea-43de-b69e-c5a423da4557?api-version=2017-07-01-preview
本文
{
  "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"
      }
    ]
  }
}