Get By Environment

Gets information about a Service Fabric cluster code version available for the specified environment.

Gets information about an available Service Fabric cluster code version by environment.

Request

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

Parameters

Name Type Required Location
location string Yes Path
environment string (enum) Yes Path
subscriptionId string Yes Path
clusterVersion 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.


clusterVersion

Type: string
Required: Yes

The cluster code version.


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

Get cluster version by environment

Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/clusterVersions/6.1.480.9494?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"
      }
    }
  ]
}