Skip to main content

sender_usernames

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

Overview

Namesender_usernames
TypeResource
Idazure.communication.sender_usernames

Fields

NameDatatypeDescription
data_locationtextfield from the properties object
display_nametextfield from the properties object
domainNametextfield from the properties object
emailServiceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
senderUsernametextfield from the properties object
subscriptionIdtextfield from the properties object
usernametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdomainName, emailServiceName, resourceGroupName, senderUsername, subscriptionIdGet a valid sender username for a domains resource.
list_by_domainsSELECTdomainName, emailServiceName, resourceGroupName, subscriptionIdList all valid sender usernames for a domains resource.
create_or_updateINSERTdomainName, emailServiceName, resourceGroupName, senderUsername, subscriptionIdAdd a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.
deleteDELETEdomainName, emailServiceName, resourceGroupName, senderUsername, subscriptionIdOperation to delete a SenderUsernames resource.

SELECT examples

List all valid sender usernames for a domains resource.

SELECT
data_location,
display_name,
domainName,
emailServiceName,
provisioning_state,
resourceGroupName,
senderUsername,
subscriptionId,
username
FROM azure.communication.vw_sender_usernames
WHERE domainName = '{{ domainName }}'
AND emailServiceName = '{{ emailServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.communication.sender_usernames (
domainName,
emailServiceName,
resourceGroupName,
senderUsername,
subscriptionId,
properties
)
SELECT
'{{ domainName }}',
'{{ emailServiceName }}',
'{{ resourceGroupName }}',
'{{ senderUsername }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified sender_usernames resource.

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