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
- vw_product_group_links
- product_group_links
Name | Datatype | Description |
---|---|---|
groupLinkId | text | field from the properties object |
group_id | text | field from the properties object |
productId | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Product-group link entity properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | groupLinkId, productId, resourceGroupName, serviceName, subscriptionId | Gets the group link for the product. |
list_by_product | SELECT | productId, resourceGroupName, serviceName, subscriptionId | Lists a collection of the group links associated with a product. |
create_or_update | INSERT | groupLinkId, productId, resourceGroupName, serviceName, subscriptionId | Adds a group to the specified product via link. |
delete | DELETE | groupLinkId, productId, resourceGroupName, serviceName, subscriptionId | Deletes the specified group from the specified product. |
SELECT
examples
Lists a collection of the group links associated with a product.
- vw_product_group_links
- product_group_links
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 }}';
SELECT
properties
FROM azure.api_management.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.product_group_links (
groupLinkId,
productId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ groupLinkId }}',
'{{ productId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: groupId
value: string
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 }}';