Udostępnij za pośrednictwem


Klaster usługi Service Fabric wymieniony przez grupy zasobów

Pobiera listę zasobów klastra usługi Service Fabric utworzonych w określonej grupie zasobów.

Pobiera wszystkie zasoby klastra usługi Service Fabric utworzone lub w trakcie tworzenia w grupie zasobów.

Żądanie

Metoda Identyfikator URI żądania
GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters?api-version=2018-02-01

Parametry

Nazwa Typ Wymagane Lokalizacja
resourceGroupName ciąg Tak Ścieżka
Subscriptionid ciąg Tak Ścieżka
api-version ciąg Tak Zapytanie

resourceGroupName

Typ: ciąg
Wymagane: Tak

Nazwa grupy zasobów.


subscriptionId

Typ: ciąg
Wymagane: Tak

Identyfikator subskrypcji klienta.


api-version

Typ: ciąg
Wymagane: Tak
Ustawienie domyślne: 2018-02-01

Wersja interfejsu API dostawcy zasobów usługi Service Fabric. Jest to wymagany parametr i dla tej specyfikacji musi być wartość "2018-02-01".

Odpowiedzi

Kod stanu HTTP Opis Response Schema
200 (OK) Operacja została ukończona pomyślnie.
ClusterListResult
Wszystkie inne kody stanu Szczegółowa odpowiedź na błąd.
ErrorModel

Przykłady

Wyświetlanie listy klastrów według grupy zasobów

Żądanie

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters?api-version=2018-02-01

200 Odpowiedź

Treść
{
  "value": [
    {
      "type": "Microsoft.ServiceFabric/clusters",
      "location": "eastus",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster",
      "name": "myCluster",
      "tags": {},
      "etag": "W/\"636462502169240745\"",
      "properties": {
        "provisioningState": "Succeeded",
        "clusterId": "92584666-9889-4ae8-8d02-91902923d37f",
        "clusterCodeVersion": "6.1.480.9494",
        "clusterState": "WaitingForNodes",
        "managementEndpoint": "https://myCluster.eastus.cloudapp.azure.com:19080",
        "clusterEndpoint": "https://eastus.servicefabric.azure.com",
        "certificateCommonNames": {
          "commonNames": [
            {
              "certificateCommonName": "abc.com",
              "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622"
            }
          ],
          "x509StoreName": "My"
        },
        "clientCertificateThumbprints": [
          {
            "isAdmin": false,
            "certificateThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A"
          }
        ],
        "clientCertificateCommonNames": [
          {
            "isAdmin": true,
            "certificateCommonName": "abc.com",
            "certificateIssuerThumbprint": "5F3660C715EBBDA31DB1FFDCF508302348DE8E7A"
          }
        ],
        "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",
            "applicationHealthPolicies": {
              "fabric:/myApp1": {
                "defaultServiceTypeHealthPolicy": {
                  "maxPercentUnhealthyServices": "0"
                },
                "serviceTypeHealthPolicies": {
                  "myServiceType1": {
                    "maxPercentUnhealthyServices": "100"
                  }
                }
              }
            }
          },
          "deltaHealthPolicy": {
            "maxPercentDeltaUnhealthyNodes": "0",
            "maxPercentUpgradeDomainDeltaUnhealthyNodes": "0",
            "maxPercentDeltaUnhealthyApplications": "0",
            "applicationDeltaHealthPolicies": {
              "fabric:/myApp1": {
                "defaultServiceTypeDeltaHealthPolicy": {
                  "maxPercentDeltaUnhealthyServices": "0"
                },
                "serviceTypeDeltaHealthPolicies": {
                  "myServiceType1": {
                    "maxPercentDeltaUnhealthyServices": "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"
          }
        ],
        "vmImage": "Windows",
        "azureActiveDirectory": {
          "tenantId": "6abcc6a0-8666-43f1-87b8-172cf86a9f9c",
          "clusterApplication": "5886372e-7bf4-4878-a497-8098aba608ae",
          "clientApplication": "d151ad89-4bce-4ae8-b3d1-1dc79679fa75"
        },
        "reliabilityLevel": "Silver",
        "reverseProxyCertificateCommonNames": {
          "commonNames": [
            {
              "certificateCommonName": "abc.com",
              "certificateIssuerThumbprint": "12599211F8F14C90AFA9532AD79A6F2CA1C00622"
            }
          ],
          "x509StoreName": "My"
        },
        "upgradeMode": "Manual",
        "availableClusterVersions": [
          {
            "codeVersion": "6.1.480.9494",
            "supportExpiryUtc": "2018-06-15T23:59:59.9999999",
            "environment": "Windows"
          }
        ],
        "addOnFeatures": [
          "RepairManager",
          "DnsService",
          "BackupRestoreService",
          "ResourceMonitorService"
        ]
      }
    },
    {
      "type": "Microsoft.ServiceFabric/clusters",
      "location": "eastus",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster2",
      "name": "myCluster2",
      "tags": {},
      "etag": "W/\"636462502164040075\"",
      "properties": {
        "provisioningState": "Succeeded",
        "clusterId": "2747e469-b24e-4039-8a0a-46151419523f",
        "clusterCodeVersion": "6.1.187.1",
        "clusterState": "WaitingForNodes",
        "managementEndpoint": "http://myCluster2.eastus.cloudapp.azure.com:19080",
        "clusterEndpoint": "https://eastus.servicefabric.azure.com",
        "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"
          }
        ],
        "vmImage": "Ubuntu",
        "reliabilityLevel": "Silver",
        "upgradeMode": "Manual",
        "availableClusterVersions": [
          {
            "codeVersion": "6.1.187.1",
            "supportExpiryUtc": "2018-06-15T23:59:59.9999999",
            "environment": "Linux"
          }
        ],
        "addonFeatures": [
          "RepairManager"
        ]
      }
    }
  ],
  "nextLink": ""
}