Share via


ApplicationSecurityGroupCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}
  • Operation Id: ApplicationSecurityGroups_Get
  • Default Api Version: 2024-03-01
  • Resource: ApplicationSecurityGroupResource
public virtual Azure.NullableResponse<Azure.ResourceManager.Network.ApplicationSecurityGroupResource> GetIfExists (string applicationSecurityGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.ApplicationSecurityGroupResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Network.ApplicationSecurityGroupResource>
Public Overridable Function GetIfExists (applicationSecurityGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ApplicationSecurityGroupResource)

Parameters

applicationSecurityGroupName
String

The name of the application security group.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

applicationSecurityGroupName is null.

Applies to