EmailTemplate interface
Interface representing a EmailTemplate.
Methods
create |
Updates an Email Template. |
delete(string, string, string, string, Email |
Reset the Email Template to default template provided by the API Management service instance. |
get(string, string, string, Email |
Gets the details of the email template specified by its identifier. |
get |
Gets the entity state (Etag) version of the email template specified by its identifier. |
list |
Gets all email templates |
update(string, string, string, string, Email |
Updates API Management email template |
Method Details
createOrUpdate(string, string, string, EmailTemplateUpdateParameters, EmailTemplateCreateOrUpdateOptionalParams)
Updates an Email Template.
function createOrUpdate(resourceGroupName: string, serviceName: string, templateName: string, parameters: EmailTemplateUpdateParameters, options?: EmailTemplateCreateOrUpdateOptionalParams): Promise<EmailTemplateContract>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- templateName
-
string
Email Template Name Identifier.
- parameters
- EmailTemplateUpdateParameters
Email Template update parameters.
The options parameters.
Returns
Promise<EmailTemplateContract>
delete(string, string, string, string, EmailTemplateDeleteOptionalParams)
Reset the Email Template to default template provided by the API Management service instance.
function delete(resourceGroupName: string, serviceName: string, templateName: string, ifMatch: string, options?: EmailTemplateDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- templateName
-
string
Email Template Name Identifier.
- ifMatch
-
string
ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
The options parameters.
Returns
Promise<void>
get(string, string, string, EmailTemplateGetOptionalParams)
Gets the details of the email template specified by its identifier.
function get(resourceGroupName: string, serviceName: string, templateName: string, options?: EmailTemplateGetOptionalParams): Promise<EmailTemplateGetResponse>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- templateName
-
string
Email Template Name Identifier.
- options
- EmailTemplateGetOptionalParams
The options parameters.
Returns
Promise<EmailTemplateGetResponse>
getEntityTag(string, string, string, EmailTemplateGetEntityTagOptionalParams)
Gets the entity state (Etag) version of the email template specified by its identifier.
function getEntityTag(resourceGroupName: string, serviceName: string, templateName: string, options?: EmailTemplateGetEntityTagOptionalParams): Promise<EmailTemplateGetEntityTagHeaders>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- templateName
-
string
Email Template Name Identifier.
The options parameters.
Returns
Promise<EmailTemplateGetEntityTagHeaders>
listByService(string, string, EmailTemplateListByServiceOptionalParams)
Gets all email templates
function listByService(resourceGroupName: string, serviceName: string, options?: EmailTemplateListByServiceOptionalParams): PagedAsyncIterableIterator<EmailTemplateContract, EmailTemplateContract[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
The options parameters.
Returns
update(string, string, string, string, EmailTemplateUpdateParameters, EmailTemplateUpdateOptionalParams)
Updates API Management email template
function update(resourceGroupName: string, serviceName: string, templateName: string, ifMatch: string, parameters: EmailTemplateUpdateParameters, options?: EmailTemplateUpdateOptionalParams): Promise<EmailTemplateUpdateResponse>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- templateName
-
string
Email Template Name Identifier.
- ifMatch
-
string
ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
- parameters
- EmailTemplateUpdateParameters
Update parameters.
The options parameters.
Returns
Promise<EmailTemplateUpdateResponse>