Skip to main content

share_subscriptions

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

Overview

Nameshare_subscriptions
TypeResource
Idazure.data_share.share_subscriptions

Fields

NameDatatypeDescription
idtextThe resource id of the azure resource
nametextName of the azure resource
accountNametextfield from the properties object
created_attextfield from the properties object
expiration_datetextfield from the properties object
invitation_idtextfield from the properties object
provider_emailtextfield from the properties object
provider_nametextfield from the properties object
provider_tenant_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
shareSubscriptionNametextfield from the properties object
share_descriptiontextfield from the properties object
share_kindtextfield from the properties object
share_nametextfield from the properties object
share_subscription_statustextfield from the properties object
share_termstextfield from the properties object
source_share_locationtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield 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, resourceGroupName, shareSubscriptionName, subscriptionIdGet a shareSubscription in an account
list_by_accountSELECTaccountName, resourceGroupName, subscriptionIdList share subscriptions in an account
createINSERTaccountName, resourceGroupName, shareSubscriptionName, subscriptionId, data__propertiesCreate a shareSubscription in an account
deleteDELETEaccountName, resourceGroupName, shareSubscriptionName, subscriptionIdDelete a shareSubscription in an account
cancel_synchronizationEXECaccountName, resourceGroupName, shareSubscriptionName, subscriptionId, data__synchronizationIdRequest to cancel a synchronization.
synchronizeEXECaccountName, resourceGroupName, shareSubscriptionName, subscriptionIdInitiate a copy

SELECT examples

List share subscriptions in an account

SELECT
id,
name,
accountName,
created_at,
expiration_date,
invitation_id,
provider_email,
provider_name,
provider_tenant_name,
provisioning_state,
resourceGroupName,
shareSubscriptionName,
share_description,
share_kind,
share_name,
share_subscription_status,
share_terms,
source_share_location,
subscriptionId,
system_data,
type,
user_email,
user_name
FROM azure.data_share.vw_share_subscriptions
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_share.share_subscriptions (
accountName,
resourceGroupName,
shareSubscriptionName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ shareSubscriptionName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified share_subscriptions resource.

/*+ delete */
DELETE FROM azure.data_share.share_subscriptions
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND shareSubscriptionName = '{{ shareSubscriptionName }}'
AND subscriptionId = '{{ subscriptionId }}';