---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/locations/{location}/hcpOpenShiftVersions"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/locations/{location}/hcpOpenShiftVersions"
tags: ["HcpOpenShiftVersions"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/locations/{location}/hcpOpenShiftVersions

`GET /subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/locations/{location}/hcpOpenShiftVersions`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/locations/{location}/hcpOpenShiftVersions`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

List HcpOpenShiftVersion resources by SubscriptionLocationResource

## Parameters

- `../../../../../../common-types/resource-management/v6/types.json#/components/parameters/ApiVersionParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v6/types.json#/components/parameters/SubscriptionIdParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v6/types.json#/components/parameters/LocationParameter` (unresolved $ref)

## Response `200`

Azure operation completed successfully.

- HcpOpenShiftVersionListResult: The response of a HcpOpenShiftVersion list operation.
  - `value` HcpOpenShiftVersion[], required: The HcpOpenShiftVersion items on this page (unresolved $ref)
  - `nextLink` string, uri: The link to the next page of items

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/azure-red-hat-openshift-hosted-control-planes-service.md) - [All operations](https://skmtc.dev/azure/apis/azure-red-hat-openshift-hosted-control-planes-service/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/azure-red-hat-openshift-hosted-control-planes-service/revisions/807911088171?raw)
