Skip to main content

private_store_collection_offers

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

Overview

Nameprivate_store_collection_offers
TypeResource
Idazure_extras.marketplace.private_store_collection_offers

Fields

The following fields are returned by SELECT queries:

Offer information retrieved

NameDatatypeDescription
idstringThe resource ID.
namestringThe name of the resource.
propertiesobjectThe privateStore offer 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, collectionId, offerIdGets information about a specific offer.
listselectprivateStoreId, collectionIdGet a list of all private offers in the given private store and collection
list_by_contextsselectprivateStoreId, collectionIdGet a list of all offers in the given collection according to the required contexts.
create_or_updateinsertprivateStoreId, collectionId, offerIdUpdate or add an offer to a specific collection of the private store.
deletedeleteprivateStoreId, collectionId, offerIdDeletes an offer from the given collection of private store.
postexecprivateStoreId, collectionId, offerIdDelete Private store offer. This is a workaround.
upsert_offer_with_multi_contextexecprivateStoreId, collectionId, offerIdUpsert an offer with multiple context details.

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
offerIdstringThe offer ID to update or delete
privateStoreIdstringThe store ID - must use the tenant ID

SELECT examples

Gets information about a specific offer.

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

INSERT examples

Update or add an offer to a specific collection of the private store.

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

DELETE examples

Deletes an offer from the given collection of private store.

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

Lifecycle Methods

Delete Private store offer. This is a workaround.

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