Skip to main content

private_stores

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

Overview

Nameprivate_stores
TypeResource
Idazure_extras.marketplace.private_stores

Fields

NameDatatypeDescription
idtextThe resource ID.
nametextThe name of the resource.
availabilitytextfield from the properties object
brandingtextfield from the properties object
collection_idstextfield from the properties object
e_tagtextfield from the properties object
is_govtextfield from the properties object
notifications_settingstextfield from the properties object
privateStoreIdtextfield from the properties object
private_store_idtextfield from the properties object
private_store_nametextfield from the properties object
system_datatextfield from the properties object
tenant_idtextfield from the properties object
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTprivateStoreIdGet information about the private store
listSELECTGets the list of available private stores.
create_or_updateINSERTprivateStoreIdChanges private store properties
deleteDELETEprivateStoreIdDeletes the private store. All that is not saved will be lost.
acknowledge_offer_notificationEXECofferId, privateStoreIdAcknowledge notification for offer
admin_request_approvals_listEXECprivateStoreIdGet list of admin request approvals
any_existing_offers_in_the_collectionsEXECprivateStoreIdQuery whether exists any offer in the collections.
billing_accountsEXECprivateStoreIdTenant billing accounts names
bulk_collections_actionEXECprivateStoreIdPerform an action on bulk collections
collections_to_subscriptions_mappingEXECprivateStoreIdFor a given subscriptions list, the API will return a map of collections and the related subscriptions from the supplied list.
fetch_all_subscriptions_in_tenantEXECprivateStoreIdFetch all subscriptions in tenant, only for marketplace admin
query_approved_plansEXECprivateStoreIdGet map of plans and related approved subscriptions.
query_notifications_stateEXECprivateStoreIdGet private store notifications state
query_offersEXECprivateStoreIdList of offers, regardless the collections
query_request_approvalEXECprivateStoreId, requestApprovalIdGet request statuses foreach plan, this api is used as a complex GET action.
query_user_offersEXECprivateStoreIdList of user's approved offers for the provided offers and subscriptions
withdraw_planEXECprivateStoreId, requestApprovalIdWithdraw a user request approval on specific plan

SELECT examples

Gets the list of available private stores.

SELECT
id,
name,
availability,
branding,
collection_ids,
e_tag,
is_gov,
notifications_settings,
privateStoreId,
private_store_id,
private_store_name,
system_data,
tenant_id,
type
FROM azure_extras.marketplace.vw_private_stores
;

INSERT example

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

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

DELETE example

Deletes the specified private_stores resource.

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