sender_usernames
Creates, updates, deletes, gets or lists a sender_usernames
resource.
Overview
Name | sender_usernames |
Type | Resource |
Id | azure.communication.sender_usernames |
Fields
- vw_sender_usernames
- sender_usernames
Name | Datatype | Description |
---|---|---|
data_location | text | field from the properties object |
display_name | text | field from the properties object |
domainName | text | field from the properties object |
emailServiceName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
senderUsername | text | field from the properties object |
subscriptionId | text | field from the properties object |
username | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | A class that describes the properties of a SenderUsername resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | domainName, emailServiceName, resourceGroupName, senderUsername, subscriptionId | Get a valid sender username for a domains resource. |
list_by_domains | SELECT | domainName, emailServiceName, resourceGroupName, subscriptionId | List all valid sender usernames for a domains resource. |
create_or_update | INSERT | domainName, emailServiceName, resourceGroupName, senderUsername, subscriptionId | Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. |
delete | DELETE | domainName, emailServiceName, resourceGroupName, senderUsername, subscriptionId | Operation to delete a SenderUsernames resource. |
SELECT
examples
List all valid sender usernames for a domains resource.
- vw_sender_usernames
- sender_usernames
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 }}';
SELECT
properties
FROM azure.communication.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.communication.sender_usernames (
domainName,
emailServiceName,
resourceGroupName,
senderUsername,
subscriptionId,
properties
)
SELECT
'{{ domainName }}',
'{{ emailServiceName }}',
'{{ resourceGroupName }}',
'{{ senderUsername }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: dataLocation
value: string
- name: username
value: string
- name: displayName
value: string
- name: provisioningState
value: string
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 }}';