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

The following fields are returned by SELECT queries:

The response body contains the specified group link entity.

NameDatatypeDescription
propertiesobjectProduct-group link entity contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, productId, groupLinkId, subscriptionIdGets the group link for the product.
list_by_productselectresourceGroupName, serviceName, productId, subscriptionId$filter, $top, $skipLists a collection of the group links associated with a product.
create_or_updateinsertresourceGroupName, serviceName, productId, groupLinkId, subscriptionIdAdds a group to the specified product via link.
deletedeleteresourceGroupName, serviceName, productId, groupLinkId, subscriptionIdDeletes the specified group from the specified product.

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
groupLinkIdstringProduct-Group link identifier. Must be unique in the current API Management service instance.
productIdstringProduct identifier. Must be unique in the current API Management service instance.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>
$skipinteger (int32)Number of records to skip.
$topinteger (int32)Number of records to return.

SELECT examples

Gets the group link for the product.

SELECT
properties
FROM azure.api_management.product_group_links
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND productId = '{{ productId }}' -- required
AND groupLinkId = '{{ groupLinkId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Adds a group to the specified product via link.

INSERT INTO azure.api_management.product_group_links (
data__properties,
resourceGroupName,
serviceName,
productId,
groupLinkId,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ productId }}',
'{{ groupLinkId }}',
'{{ subscriptionId }}'
RETURNING
properties
;

DELETE examples

Deletes the specified group from the specified product.

DELETE FROM azure.api_management.product_group_links
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND productId = '{{ productId }}' --required
AND groupLinkId = '{{ groupLinkId }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;