Udostępnij za pośrednictwem


HciClusterUpdateCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}
  • Operation Id: Updates_Get
  • Default Api Version: 2024-04-01
  • Resource: HciClusterUpdateResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Hci.HciClusterUpdateResource>> GetIfExistsAsync (string updateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Hci.HciClusterUpdateResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Hci.HciClusterUpdateResource>>
Public Overridable Function GetIfExistsAsync (updateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of HciClusterUpdateResource))

Parameters

updateName
String

The name of the Update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

updateName is null.

Applies to