---
title: "Gets the list of Service Fabric cluster code versions available for the specified location."
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions"
tags: ["ClusterVersion"]
---

# Gets the list of Service Fabric cluster code versions available for the specified location.

`GET /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/clusterVersions`

Gets all available code versions for Service Fabric cluster resources by location.

## Path parameters

- `location` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` '2019-03-01-preview', required

## Response `200`

The operation completed successfully.

- ClusterCodeVersionsListResult — The list results of the Service Fabric runtime versions.
  - `value` ClusterCodeVersionsResult[]
    - `id` string — The identification of the result
    - `name` string — The name of the result
    - `type` string — The result resource type
    - `properties` ClusterVersionDetails — The detail of the Service Fabric runtime version result
      - `codeVersion` string — The Service Fabric runtime version of the cluster.
      - `supportExpiryUtc` string — The date of expiry of support of the version.
      - `environment` 'Windows' | 'Linux' — Cluster operating system, the default will be Windows
  - `nextLink` string — The URL to use for getting the next set of results.

---

[API](https://skmtc.net/azure/apis/servicefabricmanagementclient-2.md) · [All operations](https://skmtc.net/azure/apis/servicefabricmanagementclient-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/servicefabricmanagementclient-2/revisions/f0efff24604c/schema)
