Skip to main content

email_services

Creates, updates, deletes, gets or lists an email_services resource.

Overview

Nameemail_services
TypeResource
Idazure.communication.email_services

Fields

The following fields are returned by SELECT queries:

Success. The response describe the corresponding EmailService resource.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectThe properties of the service.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, emailServiceNameGet the EmailService and its properties.
list_by_resource_groupselectsubscriptionId, resourceGroupNameHandles requests to list all resources in a resource group.
list_by_subscriptionselectsubscriptionIdHandles requests to list all resources in a subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, emailServiceNameCreate a new EmailService or update an existing EmailService.
updateupdatesubscriptionId, resourceGroupName, emailServiceNameOperation to update an existing EmailService.
deletedeletesubscriptionId, resourceGroupName, emailServiceNameOperation to delete a EmailService.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
emailServiceNamestringThe name of the EmailService resource.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get the EmailService and its properties.

SELECT
location,
properties,
tags
FROM azure.communication.email_services
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND emailServiceName = '{{ emailServiceName }}' -- required
;

INSERT examples

Create a new EmailService or update an existing EmailService.

INSERT INTO azure.communication.email_services (
data__tags,
data__location,
data__properties,
subscriptionId,
resourceGroupName,
emailServiceName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ emailServiceName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Operation to update an existing EmailService.

UPDATE azure.communication.email_services
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND emailServiceName = '{{ emailServiceName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Operation to delete a EmailService.

DELETE FROM azure.communication.email_services
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND emailServiceName = '{{ emailServiceName }}' --required
;