Skip to main content

invitations

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

Overview

Nameinvitations
TypeResource
Idazure.data_share.invitations

Fields

NameDatatypeDescription
idtextThe resource id of the azure resource
nametextName of the azure resource
accountNametextfield from the properties object
expiration_datetextfield from the properties object
invitationNametextfield from the properties object
invitation_idtextfield from the properties object
invitation_statustextfield from the properties object
resourceGroupNametextfield from the properties object
responded_attextfield from the properties object
sent_attextfield from the properties object
shareNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
target_active_directory_idtextfield from the properties object
target_emailtextfield from the properties object
target_object_idtextfield from the properties object
typetextType of the azure resource
user_emailtextfield from the properties object
user_nametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, invitationName, resourceGroupName, shareName, subscriptionIdGet an invitation in a share
list_by_shareSELECTaccountName, resourceGroupName, shareName, subscriptionIdList invitations in a share
createINSERTaccountName, invitationName, resourceGroupName, shareName, subscriptionIdCreate an invitation
deleteDELETEaccountName, invitationName, resourceGroupName, shareName, subscriptionIdDelete an invitation in a share

SELECT examples

List invitations in a share

SELECT
id,
name,
accountName,
expiration_date,
invitationName,
invitation_id,
invitation_status,
resourceGroupName,
responded_at,
sent_at,
shareName,
subscriptionId,
system_data,
target_active_directory_id,
target_email,
target_object_id,
type,
user_email,
user_name
FROM azure.data_share.vw_invitations
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND shareName = '{{ shareName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_share.invitations (
accountName,
invitationName,
resourceGroupName,
shareName,
subscriptionId,
properties
)
SELECT
'{{ accountName }}',
'{{ invitationName }}',
'{{ resourceGroupName }}',
'{{ shareName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified invitations resource.

/*+ delete */
DELETE FROM azure.data_share.invitations
WHERE accountName = '{{ accountName }}'
AND invitationName = '{{ invitationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND shareName = '{{ shareName }}'
AND subscriptionId = '{{ subscriptionId }}';