product_groups
Creates, updates, deletes, gets or lists a product_groups
resource.
Overview
Name | product_groups |
Type | Resource |
Id | azure.api_management.product_groups |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | Group contract Properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_by_product | SELECT | productId, resourceGroupName, serviceName, subscriptionId | Lists the collection of developer groups associated with the specified product. |
create_or_update | INSERT | groupId, productId, resourceGroupName, serviceName, subscriptionId | Adds the association between the specified developer group with the specified product. |
delete | DELETE | groupId, productId, resourceGroupName, serviceName, subscriptionId | Deletes the association between the specified group and product. |
SELECT
examples
Lists the collection of developer groups associated with the specified product.
SELECT
properties
FROM azure.api_management.product_groups
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_groups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.product_groups (
groupId,
productId,
resourceGroupName,
serviceName,
subscriptionId
)
SELECT
'{{ groupId }}',
'{{ productId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []
DELETE
example
Deletes the specified product_groups
resource.
/*+ delete */
DELETE FROM azure.api_management.product_groups
WHERE groupId = '{{ groupId }}'
AND productId = '{{ productId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';