MockableRedHatOpenShiftHcpSubscriptionResource.GetHcpOpenShiftVersionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a HcpOpenShiftVersion
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/locations/{location}/hcpOpenShiftVersions/{hcpOpenShiftVersionName}.
- Operation Id. : HcpOpenShiftVersions_Get.
- Default Api Version. : 2026-09-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RedHatOpenShiftHcp.HcpOpenShiftVersionResource>> GetHcpOpenShiftVersionAsync(Azure.Core.AzureLocation location, string hcpOpenShiftVersionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHcpOpenShiftVersionAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RedHatOpenShiftHcp.HcpOpenShiftVersionResource>>
override this.GetHcpOpenShiftVersionAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RedHatOpenShiftHcp.HcpOpenShiftVersionResource>>
Public Overridable Function GetHcpOpenShiftVersionAsync (location As AzureLocation, hcpOpenShiftVersionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HcpOpenShiftVersionResource))
Parameters
- location
- AzureLocation
The location for the resource.
- hcpOpenShiftVersionName
- String
The name of the HcpOpenShiftVersion.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
hcpOpenShiftVersionName is null.
hcpOpenShiftVersionName is an empty string, and was expected to be non-empty.