Skip to main content

workspace_product_policies

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

Overview

Nameworkspace_product_policies
TypeResource
Idazure.api_management.workspace_product_policies

Fields

NameDatatypeDescription
formattextfield from the properties object
policyIdtextfield from the properties object
productIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
valuetextfield from the properties object
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTpolicyId, productId, resourceGroupName, serviceName, subscriptionId, workspaceIdGet the policy configuration at the Product level.
list_by_productSELECTproductId, resourceGroupName, serviceName, subscriptionId, workspaceIdGet the policy configuration at the Product level.
create_or_updateINSERTpolicyId, productId, resourceGroupName, serviceName, subscriptionId, workspaceIdCreates or updates policy configuration for the Product.
deleteDELETEIf-Match, policyId, productId, resourceGroupName, serviceName, subscriptionId, workspaceIdDeletes the policy configuration at the Product.

SELECT examples

Get the policy configuration at the Product level.

SELECT
format,
policyId,
productId,
resourceGroupName,
serviceName,
subscriptionId,
value,
workspaceId
FROM azure.api_management.vw_workspace_product_policies
WHERE productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.workspace_product_policies (
policyId,
productId,
resourceGroupName,
serviceName,
subscriptionId,
workspaceId,
properties
)
SELECT
'{{ policyId }}',
'{{ productId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified workspace_product_policies resource.

/*+ delete */
DELETE FROM azure.api_management.workspace_product_policies
WHERE If-Match = '{{ If-Match }}'
AND policyId = '{{ policyId }}'
AND productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';