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

The following fields are returned by SELECT queries:

Collection information retrieved

NameDatatypeDescription
idstringThe resource ID.
namestringThe name of the resource.
propertiesobjectThe collection data structure.
systemDataobjectMetadata pertaining to creation and last modification of the resource
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprivateStoreId, collectionIdGets private store collection
listselectprivateStoreIdGets private store collections list
create_or_updateinsertprivateStoreId, collectionIdCreate or update private store collection
deletedeleteprivateStoreId, collectionIdDelete a collection from the given private store.
postexecprivateStoreId, collectionIdDelete Private store collection. This is a workaround.
transfer_offersexecprivateStoreId, collectionIdtransferring offers (copy or move) from source collection to target collection(s)
approve_all_itemsexecprivateStoreId, collectionIdDelete all existing offers from the collection and enable approve all items.
disable_approve_all_itemsexecprivateStoreId, collectionIdDisable approve all items for the collection.

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
collectionIdstringThe collection ID
privateStoreIdstringThe store ID - must use the tenant ID

SELECT examples

Gets private store collection

SELECT
id,
name,
properties,
systemData,
type
FROM azure_extras.marketplace.private_store_collections
WHERE privateStoreId = '{{ privateStoreId }}' -- required
AND collectionId = '{{ collectionId }}' -- required
;

INSERT examples

Create or update private store collection

INSERT INTO azure_extras.marketplace.private_store_collections (
data__properties,
privateStoreId,
collectionId
)
SELECT
'{{ properties }}',
'{{ privateStoreId }}',
'{{ collectionId }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete a collection from the given private store.

DELETE FROM azure_extras.marketplace.private_store_collections
WHERE privateStoreId = '{{ privateStoreId }}' --required
AND collectionId = '{{ collectionId }}' --required
;

Lifecycle Methods

Delete Private store collection. This is a workaround.

EXEC azure_extras.marketplace.private_store_collections.post 
@privateStoreId='{{ privateStoreId }}' --required,
@collectionId='{{ collectionId }}' --required
;