product_group_links
Creates, updates, deletes, gets or lists a product_group_links
resource.
Overview
Name | product_group_links |
Type | Resource |
Id | azure.api_management.product_group_links |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_product
The response body contains the specified group link entity.
Name | Datatype | Description |
---|---|---|
properties | object | Product-group link entity contract properties. |
The response body contains a collection of group link entities in the product.
Name | Datatype | Description |
---|---|---|
properties | object | Product-group link entity contract properties. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , serviceName , productId , groupLinkId , subscriptionId | Gets the group link for the product. | |
list_by_product | select | resourceGroupName , serviceName , productId , subscriptionId | $filter , $top , $skip | Lists a collection of the group links associated with a product. |
create_or_update | insert | resourceGroupName , serviceName , productId , groupLinkId , subscriptionId | Adds a group to the specified product via link. | |
delete | delete | resourceGroupName , serviceName , productId , groupLinkId , subscriptionId | Deletes 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.
Name | Datatype | Description |
---|---|---|
groupLinkId | string | Product-Group link identifier. Must be unique in the current API Management service instance. |
productId | string | Product identifier. Must be unique in the current API Management service instance. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
serviceName | string | The name of the API Management service. |
subscriptionId | string | The ID of the target subscription. |
$filter | string | | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br> |
$skip | integer (int32) | Number of records to skip. |
$top | integer (int32) | Number of records to return. |
SELECT
examples
- get
- list_by_product
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
;
Lists a collection of the group links associated with a product.
SELECT
properties
FROM azure.api_management.product_group_links
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND productId = '{{ productId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $skip = '{{ $skip }}'
;
INSERT
examples
- create_or_update
- Manifest
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
;
# Description fields are for documentation purposes
- name: product_group_links
props:
- name: resourceGroupName
value: string
description: Required parameter for the product_group_links resource.
- name: serviceName
value: string
description: Required parameter for the product_group_links resource.
- name: productId
value: string
description: Required parameter for the product_group_links resource.
- name: groupLinkId
value: string
description: Required parameter for the product_group_links resource.
- name: subscriptionId
value: string
description: Required parameter for the product_group_links resource.
- name: properties
value: object
description: |
Product-group link entity contract properties.
DELETE
examples
- delete
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
;