Language

EdgeActionCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}.
  • Operation Id. : EdgeActions_Get.
  • Default Api Version. : 2025-12-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.EdgeActions.EdgeActionResource> GetIfExists(string edgeActionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.EdgeActions.EdgeActionResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.EdgeActions.EdgeActionResource>
Public Overridable Function GetIfExists (edgeActionName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of EdgeActionResource)

Parameters

edgeActionName
String

The name of the Edge Action.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

edgeActionName is null.

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

Applies to