Share via


ApiManagementEmailTemplateCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}
  • Operation Id: EmailTemplate_Get
  • Default Api Version: 2023-03-01-preview
  • Resource: ApiManagementEmailTemplateResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ApiManagement.ApiManagementEmailTemplateResource>> GetIfExistsAsync (Azure.ResourceManager.ApiManagement.Models.TemplateName templateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : Azure.ResourceManager.ApiManagement.Models.TemplateName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ApiManagement.ApiManagementEmailTemplateResource>>
override this.GetIfExistsAsync : Azure.ResourceManager.ApiManagement.Models.TemplateName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.ApiManagement.ApiManagementEmailTemplateResource>>
Public Overridable Function GetIfExistsAsync (templateName As TemplateName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ApiManagementEmailTemplateResource))

Parameters

templateName
TemplateName

Email Template Name Identifier.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to