List By Environment

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

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

Request

Method Request URI
GET /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/clusterVersions?api-version=2018-02-01

Parameters

Name Type Required Location
location string Yes Path
environment string (enum) Yes Path
subscriptionId string Yes Path
api-version string Yes Query

location

Type: string
Required: Yes

The location for the cluster code versions. This is different from cluster location.


environment

Type: string (enum)
Required: Yes

The operating system of the cluster. The default means all. Possible values include: 'Windows', 'Linux'


subscriptionId

Type: string
Required: Yes

The customer subscription identifier.


api-version

Type: string
Required: Yes
Default: 2018-02-01

The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2018-02-01" for this specification.

Responses

HTTP Status Code Description Response Schema
200 (OK) The operation completed successfully.
ClusterCodeVersionsListResult

Examples

List cluster versions by environment

Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/clusterVersions?api-version=2018-02-01

200 Response

Body
{
  "value": [
    {
      "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/clusterVersions/6.1.480.9494",
      "name": "6.1.480.9494",
      "type": "Microsoft.ServiceFabric/locations/environments/clusterVersions",
      "properties": {
        "codeVersion": "6.1.480.9494",
        "supportExpiryUtc": "2018-06-15T23:59:59.9999999",
        "environment": "Windows"
      }
    }
  ]
}