Skip to main content

provider_share_subscriptions

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

Overview

Nameprovider_share_subscriptions
TypeResource
Idazure.data_share.provider_share_subscriptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource id of the azure resource.
namestringName of the azure resource.
consumerEmailstringEmail of the consumer who created the share subscription.
consumerNamestringName of the consumer who created the share subscription.
consumerTenantNamestringTenant name of the consumer who created the share subscription.
createdAtstring (date-time)created at.
expirationDatestring (date-time)Expiration date of the share subscription in UTC format.
providerEmailstringEmail of the provider who created the share.
providerNamestringName of the provider who created the share.
shareSubscriptionObjectIdstringshare Subscription Object Id.
shareSubscriptionStatusstringGets the status of share subscription. Known values are: "Active", "Revoked", "SourceDeleted", and "Revoking".
sharedAtstring (date-time)Shared at.
systemDataobjectSystem Data of the Azure resource.
typestringType of the azure resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_shareselectresource_group_name, account_name, share_name, provider_share_subscription_id, subscription_idGet share subscription in a provider share. Get share subscription in a provider share.
list_by_shareselectresource_group_name, account_name, share_name, subscription_id$skipTokenList of available share subscriptions to a provider share. List share subscriptions in a provider share.
adjustexecresource_group_name, account_name, share_name, provider_share_subscription_id, subscription_idAdjust the expiration date of a share subscription in a provider share. Adjust a share subscription's expiration date in a provider share.
reinstateexecresource_group_name, account_name, share_name, provider_share_subscription_id, subscription_idReinstate share subscription in a provider share. Reinstate share subscription in a provider share.
revokeexecresource_group_name, account_name, share_name, provider_share_subscription_id, subscription_idRevoke share subscription in a provider share. Revoke share subscription in a provider share.

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
account_namestringThe name of the share account. Required.
provider_share_subscription_idstringTo locate shareSubscription. Required.
resource_group_namestringThe resource group name. Required.
share_namestringThe name of the share. Required.
subscription_idstring
$skipTokenstringContinuation Token. Default value is None.

SELECT examples

Get share subscription in a provider share. Get share subscription in a provider share.

SELECT
id,
name,
consumerEmail,
consumerName,
consumerTenantName,
createdAt,
expirationDate,
providerEmail,
providerName,
shareSubscriptionObjectId,
shareSubscriptionStatus,
sharedAt,
systemData,
type
FROM azure.data_share.provider_share_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND share_name = '{{ share_name }}' -- required
AND provider_share_subscription_id = '{{ provider_share_subscription_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Adjust the expiration date of a share subscription in a provider share. Adjust a share subscription's expiration date in a provider share.

EXEC azure.data_share.provider_share_subscriptions.adjust 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@share_name='{{ share_name }}' --required,
@provider_share_subscription_id='{{ provider_share_subscription_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;