ContainerServiceSafeguardsAvailableVersionCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/safeguardsVersions/{version}.
  • Operation Id. : SafeguardsAvailableVersions_GetSafeguardsVersions.
  • Default Api Version. : 2026-04-02-preview.
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerService.ContainerServiceSafeguardsAvailableVersionResource>> GetIfExistsAsync(string version, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerService.ContainerServiceSafeguardsAvailableVersionResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ContainerService.ContainerServiceSafeguardsAvailableVersionResource>>
Public Overridable Function GetIfExistsAsync (version As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ContainerServiceSafeguardsAvailableVersionResource))

Parameters

version
String

Safeguards version.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

version is null.

version is an empty string, and was expected to be non-empty.

Applies to