Compartilhar via


UpdateCollection.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
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Hci.UpdateResource>> GetIfExistsAsync (string updateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Hci.UpdateResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Hci.UpdateResource>>
Public Overridable Function GetIfExistsAsync (updateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of UpdateResource))

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