Share via


DeviceUpdateInstanceCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/instances/{instanceName}
  • Operation Id: Instances_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceResource>> GetIfExistsAsync (string instanceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceResource>>
Public Overridable Function GetIfExistsAsync (instanceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of DeviceUpdateInstanceResource))

Parameters

instanceName
String

Instance name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

instanceName is null.

Applies to