Skip to main content

private_store_admin_request_approvals

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

Overview

Nameprivate_store_admin_request_approvals
TypeResource
Idazure_extras.marketplace.private_store_admin_request_approvals

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource ID.
namestringThe name of the resource.
propertiesobjectThe privateStore admin Approval request 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, adminRequestApprovalId, publisherIdGet open approval requests
updatereplaceprivateStoreId, adminRequestApprovalIdUpdate the admin action, weather the request is approved or rejected and the approved plans

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
adminRequestApprovalIdstringThe admin request approval ID to get create or update
privateStoreIdstringThe store ID - must use the tenant ID
publisherIdstringThe publisher id of this offer.

SELECT examples

Get open approval requests

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

REPLACE examples

Update the admin action, weather the request is approved or rejected and the approved plans

REPLACE azure_extras.marketplace.private_store_admin_request_approvals
SET
data__properties = '{{ properties }}'
WHERE
privateStoreId = '{{ privateStoreId }}' --required
AND adminRequestApprovalId = '{{ adminRequestApprovalId }}' --required
RETURNING
id,
name,
properties,
systemData,
type;