Skip to main content

private_store_collections

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

Overview

Nameprivate_store_collections
TypeResource
Idazure_extras.marketplace.private_store_collections

Fields

NameDatatypeDescription
idtextThe resource ID.
nametextThe name of the resource.
all_subscriptionstextfield from the properties object
applied_rulestextfield from the properties object
approve_all_itemstextfield from the properties object
approve_all_items_modified_attextfield from the properties object
claimtextfield from the properties object
collectionIdtextfield from the properties object
collection_idtextfield from the properties object
collection_nametextfield from the properties object
enabledtextfield from the properties object
number_of_offerstextfield from the properties object
privateStoreIdtextfield from the properties object
subscriptions_listtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcollectionId, privateStoreIdGets private store collection
listSELECTprivateStoreIdGets private store collections list
create_or_updateINSERTcollectionId, privateStoreIdCreate or update private store collection
deleteDELETEcollectionId, privateStoreIdDelete a collection from the given private store.
approve_all_itemsEXECcollectionId, privateStoreIdDelete all existing offers from the collection and enable approve all items.
disable_approve_all_itemsEXECcollectionId, privateStoreIdDisable approve all items for the collection.
postEXECcollectionId, privateStoreIdDelete Private store collection. This is a workaround.
transfer_offersEXECcollectionId, privateStoreIdtransferring offers (copy or move) from source collection to target collection(s)

SELECT examples

Gets private store collections list

SELECT
id,
name,
all_subscriptions,
applied_rules,
approve_all_items,
approve_all_items_modified_at,
claim,
collectionId,
collection_id,
collection_name,
enabled,
number_of_offers,
privateStoreId,
subscriptions_list,
system_data,
type
FROM azure_extras.marketplace.vw_private_store_collections
WHERE privateStoreId = '{{ privateStoreId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.marketplace.private_store_collections (
collectionId,
privateStoreId,
properties
)
SELECT
'{{ collectionId }}',
'{{ privateStoreId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified private_store_collections resource.

/*+ delete */
DELETE FROM azure_extras.marketplace.private_store_collections
WHERE collectionId = '{{ collectionId }}'
AND privateStoreId = '{{ privateStoreId }}';