EdgeTargetCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/targets/{targetName}
  • Operation Id: Target_Get
  • Default Api Version: 2025-06-01
  • Resource: EdgeTargetResource
public virtual Azure.NullableResponse<Azure.ResourceManager.WorkloadOrchestration.EdgeTargetResource> GetIfExists(string targetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.WorkloadOrchestration.EdgeTargetResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.WorkloadOrchestration.EdgeTargetResource>
Public Overridable Function GetIfExists (targetName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of EdgeTargetResource)

Parameters

targetName
String

Name of the target.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

targetName is null.

Applies to