Skip to main content

workspace_product_group_links

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

Overview

Nameworkspace_product_group_links
TypeResource
Idazure.api_management.workspace_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
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupLinkId, productId, resourceGroupName, serviceName, subscriptionId, workspaceIdGets the group link for the product.
list_by_productSELECTproductId, resourceGroupName, serviceName, subscriptionId, workspaceIdLists a collection of the group links associated with a product.
create_or_updateINSERTgroupLinkId, productId, resourceGroupName, serviceName, subscriptionId, workspaceIdAdds a group to the specified product via link.
deleteDELETEgroupLinkId, productId, resourceGroupName, serviceName, subscriptionId, workspaceIdDeletes 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,
workspaceId
FROM azure.api_management.vw_workspace_product_group_links
WHERE productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';

INSERT example

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

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

DELETE example

Deletes the specified workspace_product_group_links resource.

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