Skip to main content

groups

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

Overview

Namegroups
TypeResource
Idazure.api_management.groups

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
built_intextfield from the properties object
display_nametextfield from the properties object
external_idtextfield from the properties object
groupIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupId, resourceGroupName, serviceName, subscriptionIdGets the details of the group specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists a collection of groups defined within a service instance.
create_or_updateINSERTgroupId, resourceGroupName, serviceName, subscriptionIdCreates or Updates a group.
deleteDELETEIf-Match, groupId, resourceGroupName, serviceName, subscriptionIdDeletes specific group of the API Management service instance.
updateUPDATEIf-Match, groupId, resourceGroupName, serviceName, subscriptionIdUpdates the details of the group specified by its identifier.

SELECT examples

Lists a collection of groups defined within a service instance.

SELECT
description,
built_in,
display_name,
external_id,
groupId,
resourceGroupName,
serviceName,
subscriptionId,
type
FROM azure.api_management.vw_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.groups (
groupId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ groupId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a groups resource.

/*+ update */
UPDATE azure.api_management.groups
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND groupId = '{{ groupId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified groups resource.

/*+ delete */
DELETE FROM azure.api_management.groups
WHERE If-Match = '{{ If-Match }}'
AND groupId = '{{ groupId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';