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

NameDatatypeDescription
idtextThe resource ID.
nametextThe name of the resource.
collectionIdtextfield from the properties object
created_attextfield from the properties object
e_tagtextfield from the properties object
icon_file_uristextfield from the properties object
modified_attextfield from the properties object
offerIdtextfield from the properties object
offer_display_nametextfield from the properties object
planstextfield from the properties object
privateStoreIdtextfield from the properties object
private_store_idtextfield from the properties object
publisher_display_nametextfield from the properties object
specific_plan_ids_limitationtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource.
unique_offer_idtextfield from the properties object
update_suppressed_due_idempotencetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcollectionId, offerId, privateStoreIdGets information about a specific offer.
listSELECTcollectionId, privateStoreIdGet a list of all private offers in the given private store and collection
list_by_contextsSELECTcollectionId, privateStoreIdGet a list of all offers in the given collection according to the required contexts.
create_or_updateINSERTcollectionId, offerId, privateStoreIdUpdate or add an offer to a specific collection of the private store.
deleteDELETEcollectionId, offerId, privateStoreIdDeletes an offer from the given collection of private store.
postEXECcollectionId, offerId, privateStoreIdDelete Private store offer. This is a workaround.
upsert_offer_with_multi_contextEXECcollectionId, offerId, privateStoreIdUpsert an offer with multiple context details.

SELECT examples

Get a list of all private offers in the given private store and collection

SELECT
id,
name,
collectionId,
created_at,
e_tag,
icon_file_uris,
modified_at,
offerId,
offer_display_name,
plans,
privateStoreId,
private_store_id,
publisher_display_name,
specific_plan_ids_limitation,
system_data,
type,
unique_offer_id,
update_suppressed_due_idempotence
FROM azure_extras.marketplace.vw_private_store_collection_offers
WHERE collectionId = '{{ collectionId }}'
AND privateStoreId = '{{ privateStoreId }}';

INSERT example

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

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

DELETE example

Deletes the specified private_store_collection_offers resource.

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