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