Skip to main content

product_groups

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

Overview

Nameproduct_groups
TypeResource
Idazure.api_management.product_groups

Fields

NameDatatypeDescription
propertiesobjectGroup contract Properties.

Methods

NameAccessible byRequired ParamsDescription
list_by_productSELECTproductId, resourceGroupName, serviceName, subscriptionIdLists the collection of developer groups associated with the specified product.
create_or_updateINSERTgroupId, productId, resourceGroupName, serviceName, subscriptionIdAdds the association between the specified developer group with the specified product.
deleteDELETEgroupId, productId, resourceGroupName, serviceName, subscriptionIdDeletes the association between the specified group and product.

SELECT examples

Lists the collection of developer groups associated with the specified product.

SELECT
properties
FROM azure.api_management.product_groups
WHERE productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.product_groups (
groupId,
productId,
resourceGroupName,
serviceName,
subscriptionId
)
SELECT
'{{ groupId }}',
'{{ productId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified product_groups resource.

/*+ delete */
DELETE FROM azure.api_management.product_groups
WHERE groupId = '{{ groupId }}'
AND productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';