group_users
Creates, updates, deletes, gets or lists a group_users
resource.
Overview
Name | group_users |
Type | Resource |
Id | azure.api_management.group_users |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | User profile. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | groupId, resourceGroupName, serviceName, subscriptionId | Lists a collection of user entities associated with the group. |
create | INSERT | groupId, resourceGroupName, serviceName, subscriptionId, userId | Add existing user to existing group |
delete | DELETE | groupId, resourceGroupName, serviceName, subscriptionId, userId | Remove existing user from existing group. |
SELECT
examples
Lists a collection of user entities associated with the group.
SELECT
properties
FROM azure.api_management.group_users
WHERE groupId = '{{ groupId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new group_users
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.group_users (
groupId,
resourceGroupName,
serviceName,
subscriptionId,
userId
)
SELECT
'{{ groupId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ userId }}'
;
- name: your_resource_model_name
props: []
DELETE
example
Deletes the specified group_users
resource.
/*+ delete */
DELETE FROM azure.api_management.group_users
WHERE groupId = '{{ groupId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userId = '{{ userId }}';