Udostępnij za pośrednictwem


HciClusterUpdateCollection.GetIfExists(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 Azure.NullableResponse<Azure.ResourceManager.Hci.HciClusterUpdateResource> GetIfExists (string updateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Hci.HciClusterUpdateResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Hci.HciClusterUpdateResource>
Public Overridable Function GetIfExists (updateName As String, Optional cancellationToken As CancellationToken = Nothing) As 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