Skip to main content

product_group_links

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

Overview

Nameproduct_group_links
TypeResource
Idazure.api_management.product_group_links

Fields

NameDatatypeDescription
groupLinkIdtextfield from the properties object
group_idtextfield from the properties object
productIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupLinkId, productId, resourceGroupName, serviceName, subscriptionIdGets the group link for the product.
list_by_productSELECTproductId, resourceGroupName, serviceName, subscriptionIdLists a collection of the group links associated with a product.
create_or_updateINSERTgroupLinkId, productId, resourceGroupName, serviceName, subscriptionIdAdds a group to the specified product via link.
deleteDELETEgroupLinkId, productId, resourceGroupName, serviceName, subscriptionIdDeletes the specified group from the specified product.

SELECT examples

Lists a collection of the group links associated with a product.

SELECT
groupLinkId,
group_id,
productId,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_product_group_links
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_group_links resource.

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

DELETE example

Deletes the specified product_group_links resource.

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