email_services
Creates, updates, deletes, gets or lists a email_services
resource.
Overview
Name | email_services |
Type | Resource |
Id | azure.communication.email_services |
Fields
- vw_email_services
- email_services
Name | Datatype | Description |
---|---|---|
data_location | text | field from the properties object |
emailServiceName | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | A class that describes the properties of the EmailService. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | emailServiceName, resourceGroupName, subscriptionId | Get the EmailService and its properties. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Handles requests to list all resources in a resource group. |
list_by_subscription | SELECT | subscriptionId | Handles requests to list all resources in a subscription. |
create_or_update | INSERT | emailServiceName, resourceGroupName, subscriptionId | Create a new EmailService or update an existing EmailService. |
delete | DELETE | emailServiceName, resourceGroupName, subscriptionId | Operation to delete a EmailService. |
update | UPDATE | emailServiceName, resourceGroupName, subscriptionId | Operation to update an existing EmailService. |
SELECT
examples
Handles requests to list all resources in a subscription.
- vw_email_services
- email_services
SELECT
data_location,
emailServiceName,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.communication.vw_email_services
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.communication.email_services
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new email_services
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.communication.email_services (
emailServiceName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ emailServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: dataLocation
value: string
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 }}';