Share via


CommunicationDomainResource.GetSuppressionListResourceAsync Method

Definition

Get a SuppressionList resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/suppressionLists/{suppressionListName}
  • Operation Id: SuppressionLists_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.SuppressionListResource>> GetSuppressionListResourceAsync (string suppressionListName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSuppressionListResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.SuppressionListResource>>
override this.GetSuppressionListResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Communication.SuppressionListResource>>
Public Overridable Function GetSuppressionListResourceAsync (suppressionListName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SuppressionListResource))

Parameters

suppressionListName
String

The name of the suppression list.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

suppressionListName is null.

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

Applies to