Skip to main content

consumer_invitations

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

Overview

Nameconsumer_invitations
TypeResource
Idazure.data_share.consumer_invitations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource id of the azure resource.
namestringName of the azure resource.
dataSetCountintegerNumber of data sets in a share.
descriptionstringDescription shared when the invitation was created.
expirationDatestring (date-time)The expiration date for the share subscription created by accepting the invitation.
invitationIdstringUnique id of the invitation. Required.
invitationStatusstringThe status of the invitation. Known values are: "Pending", "Accepted", "Rejected", and "Withdrawn".
locationstringinvitation location.
providerEmailstringEmail of the provider who created the resource.
providerNamestringName of the provider who created the resource.
providerTenantNamestringTenant name of the provider who created the resource.
respondedAtstring (date-time)The time the recipient responded to the invitation.
sentAtstring (date-time)Gets the time at which the invitation was sent.
shareNamestringGets the source share Name.
systemDataobjectSystem Data of the Azure resource.
termsOfUsestringTerms of use shared when the invitation was created.
typestringType of the azure resource.
userEmailstringEmail of the user who created the resource.
userNamestringName of the user who created the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, invitation_idGets the invitation identified by invitationId. Get an invitation.
list_invitationsselect$skipTokenList the invitations. Lists invitations.
reject_invitationexeclocation, propertiesRejects the invitation identified by invitationId. Reject an invitation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
invitation_idstringAn invitation id. Required.
locationstringLocation of the invitation. Required.
$skipTokenstringThe continuation token. Default value is None.

SELECT examples

Gets the invitation identified by invitationId. Get an invitation.

SELECT
id,
name,
dataSetCount,
description,
expirationDate,
invitationId,
invitationStatus,
location,
providerEmail,
providerName,
providerTenantName,
respondedAt,
sentAt,
shareName,
systemData,
termsOfUse,
type,
userEmail,
userName
FROM azure.data_share.consumer_invitations
WHERE location = '{{ location }}' -- required
AND invitation_id = '{{ invitation_id }}' -- required
;

Lifecycle Methods

Rejects the invitation identified by invitationId. Reject an invitation.

EXEC azure.data_share.consumer_invitations.reject_invitation 
@location='{{ location }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;