workspace_product_group_links
Creates, updates, deletes, gets or lists a workspace_product_group_links
resource.
Overview
Name | workspace_product_group_links |
Type | Resource |
Id | azure.api_management.workspace_product_group_links |
Fields
- vw_workspace_product_group_links
- workspace_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 |
workspaceId | 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, workspaceId | Gets the group link for the product. |
list_by_product | SELECT | productId, resourceGroupName, serviceName, subscriptionId, workspaceId | Lists a collection of the group links associated with a product. |
create_or_update | INSERT | groupLinkId, productId, resourceGroupName, serviceName, subscriptionId, workspaceId | Adds a group to the specified product via link. |
delete | DELETE | groupLinkId, productId, resourceGroupName, serviceName, subscriptionId, workspaceId | Deletes the specified group from the specified product. |
SELECT
examples
Lists a collection of the group links associated with a product.
- vw_workspace_product_group_links
- workspace_product_group_links
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 }}';
SELECT
properties
FROM azure.api_management.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: groupId
value: string
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 }}';