共用方式為


更新 Service Fabric 叢集資源

更新 Service Fabric 叢集資源的設定。

使用指定的名稱更新 Service Fabric 叢集資源的組態。

要求

方法 要求 URI
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}?api-version=2018-02-01

參數

名稱 類型 必要 Location
resourceGroupName string 路徑
clusterName string 路徑
subscriptionId string 路徑
api-version string 查詢
parameters ClusterUpdateParameters body

resourceGroupName

類型:字串
必要:是

資源群組的名稱。


clusterName

類型:字串
必要:是

叢集資源的名稱。


subscriptionId

類型:字串
必要:是

客戶訂用帳戶識別碼。


api-version

類型:字串
必要:是
預設值:2018-02-01

Service Fabric 資源提供者 API 的版本。 這是必要的參數,而且此值必須是此規格的 「2018-02-01」。


參數

類型ClusterUpdateParameters
必要:是

參數,其中包含用來更新叢集組態的屬性值和屬性名稱。

回應

HTTP 狀態碼 描述 回應結構描述
200 (確定) 作業已成功完成。
Cluster
202 (已接受) 已接受要求,且作業會以非同步方式完成。
Cluster
所有其他狀態碼 詳細的錯誤回應。
ErrorModel

範例

修補叢集

要求

PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster?api-version=2018-02-01
主體
{
  "type": "Microsoft.ServiceFabric/clusters",
  "location": "eastus",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster",
  "name": "myCluster",
  "tags": {
    "a": "b"
  },
  "properties": {
    "nodeTypes": [
      {
        "name": "nt1vm",
        "clientConnectionEndpointPort": "19000",
        "httpGatewayEndpointPort": "19007",
        "applicationPorts": {
          "startPort": "20000",
          "endPort": "30000"
        },
        "ephemeralPorts": {
          "startPort": "49000",
          "endPort": "64000"
        },
        "isPrimary": true,
        "vmInstanceCount": "5",
        "durabilityLevel": "Bronze"
      },
      {
        "name": "testnt1",
        "clientConnectionEndpointPort": "0",
        "httpGatewayEndpointPort": "0",
        "applicationPorts": {
          "startPort": "1000",
          "endPort": "2000"
        },
        "ephemeralPorts": {
          "startPort": "3000",
          "endPort": "4000"
        },
        "isPrimary": false,
        "vmInstanceCount": "3",
        "durabilityLevel": "Bronze"
      }
    ],
    "reliabilityLevel": "Bronze",
    "upgradeMode": "Default"
  }
}

202 回應

標題
Retry-After: 10
Location: http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/1ca6e48d-70ca-4e43-b652-3b0522f64d67?api-version=2018-02-01
主體
{
  "type": "Microsoft.ServiceFabric/clusters",
  "location": "eastus",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster",
  "name": "myCluster",
  "tags": {
    "a": "b"
  },
  "etag": "W/\"636462502169240744\"",
  "properties": {
    "provisioningState": "Succeeded",
    "clusterId": "92584666-9889-4ae8-8d02-91902923d37f",
    "clusterCodeVersion": "6.1.480.9494",
    "clusterState": "WaitingForNodes",
    "managementEndpoint": "http://myCluster.eastus.cloudapp.azure.com:19080",
    "clusterEndpoint": "https://eastus.servicefabric.azure.com",
    "certificateCommonNames": {
      "commonNames": [
        {
          "certificateCommonName": "abc.com",
          "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622"
        }
      ],
      "x509StoreName": "My"
    },
    "clientCertificateThumbprints": [],
    "clientCertificateCommonNames": [],
    "fabricSettings": [
      {
        "name": "UpgradeService",
        "parameters": [
          {
            "name": "AppPollIntervalInSeconds",
            "value": "60"
          }
        ]
      }
    ],
    "upgradeDescription": {
      "forceRestart": false,
      "upgradeReplicaSetCheckTimeout": "00:10:00",
      "healthCheckWaitDuration": "00:00:30",
      "healthCheckStableDuration": "00:00:30",
      "healthCheckRetryTimeout": "00:05:00",
      "upgradeTimeout": "01:00:00",
      "upgradeDomainTimeout": "00:15:00",
      "healthPolicy": {
        "maxPercentUnhealthyNodes": "0",
        "maxPercentUnhealthyApplications": "0"
      },
      "deltaHealthPolicy": {
        "maxPercentDeltaUnhealthyNodes": "0",
        "maxPercentUpgradeDomainDeltaUnhealthyNodes": "0",
        "maxPercentDeltaUnhealthyApplications": "0"
      }
    },
    "diagnosticsStorageAccountConfig": {
      "storageAccountName": "diag",
      "protectedAccountKeyName": "StorageAccountKey1",
      "blobEndpoint": "https://diag.blob.core.windows.net/",
      "queueEndpoint": "https://diag.queue.core.windows.net/",
      "tableEndpoint": "https://diag.table.core.windows.net/"
    },
    "nodeTypes": [
      {
        "name": "nt1vm",
        "clientConnectionEndpointPort": "19000",
        "httpGatewayEndpointPort": "19007",
        "applicationPorts": {
          "startPort": "20000",
          "endPort": "30000"
        },
        "ephemeralPorts": {
          "startPort": "49000",
          "endPort": "64000"
        },
        "isPrimary": true,
        "vmInstanceCount": "5",
        "durabilityLevel": "Bronze"
      },
      {
        "name": "testnt1",
        "clientConnectionEndpointPort": "0",
        "httpGatewayEndpointPort": "0",
        "applicationPorts": {
          "startPort": "1000",
          "endPort": "2000"
        },
        "ephemeralPorts": {
          "startPort": "3000",
          "endPort": "4000"
        },
        "isPrimary": false,
        "vmInstanceCount": "3",
        "durabilityLevel": "Bronze"
      }
    ],
    "reliabilityLevel": "Bronze",
    "upgradeMode": "Automatic",
    "availableClusterVersions": [
      {
        "codeVersion": "6.1.480.9494",
        "supportExpiryUtc": "2018-06-15T23:59:59.9999999",
        "environment": "Windows"
      }
    ]
  }
}