Skip to main content

email_services

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

Overview

Nameemail_services
TypeResource
Idazure.communication.email_services

Fields

NameDatatypeDescription
data_locationtextfield from the properties object
emailServiceNametextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTemailServiceName, resourceGroupName, subscriptionIdGet the EmailService and its properties.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdHandles requests to list all resources in a resource group.
list_by_subscriptionSELECTsubscriptionIdHandles requests to list all resources in a subscription.
create_or_updateINSERTemailServiceName, resourceGroupName, subscriptionIdCreate a new EmailService or update an existing EmailService.
deleteDELETEemailServiceName, resourceGroupName, subscriptionIdOperation to delete a EmailService.
updateUPDATEemailServiceName, resourceGroupName, subscriptionIdOperation to update an existing EmailService.

SELECT examples

Handles requests to list all resources in a subscription.

SELECT
data_location,
emailServiceName,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.communication.vw_email_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new email_services resource.

/*+ create */
INSERT INTO azure.communication.email_services (
emailServiceName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ emailServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a email_services resource.

/*+ update */
UPDATE azure.communication.email_services
SET
tags = '{{ tags }}'
WHERE
emailServiceName = '{{ emailServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified email_services resource.

/*+ delete */
DELETE FROM azure.communication.email_services
WHERE emailServiceName = '{{ emailServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';