Skip to main content

appgroups

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

Overview

Nameappgroups
TypeResource
Idgoogle.apigee.appgroups

Fields

NameDatatypeDescription
namestringImmutable. Name of the AppGroup. Characters you can use in the name are restricted to: A-Z0-9._-$ %.
appGroupIdstringOutput only. Internal identifier that cannot be edited
attributesarrayA list of attributes
channelIdstringchannel identifier identifies the owner maintaing this grouping.
channelUristringA reference to the associated storefront/marketplace.
createdAtstringOutput only. Created time as milliseconds since epoch.
displayNamestringapp group name displayed in the UI
lastModifiedAtstringOutput only. Modified time as milliseconds since epoch.
organizationstringImmutable. the org the app group is created
statusstringValid values are active or inactive. Note that the status of the AppGroup should be updated via UpdateAppGroupRequest by setting the action as active or inactive.

Methods

NameAccessible byRequired ParamsDescription
organizations_appgroups_getSELECTappgroupsId, organizationsIdReturns the AppGroup details for the provided AppGroup name in the request URI.
organizations_appgroups_listSELECTorganizationsIdLists all AppGroups in an organization. A maximum of 1000 AppGroups are returned in the response if PageSize is not specified, or if the PageSize is greater than 1000.
organizations_appgroups_createINSERTorganizationsIdCreates an AppGroup. Once created, user can register apps under the AppGroup to obtain secret key and password. At creation time, the AppGroup's state is set as active.
organizations_appgroups_deleteDELETEappgroupsId, organizationsIdDeletes an AppGroup. All app and API keys associations with the AppGroup are also removed. Warning: This API will permanently delete the AppGroup and related artifacts. Note: The delete operation is asynchronous. The AppGroup app is deleted immediately, but its associated resources, such as apps and API keys, may take anywhere from a few seconds to a few minutes to be deleted.
organizations_appgroups_updateREPLACEappgroupsId, organizationsIdUpdates an AppGroup. This API replaces the existing AppGroup details with those specified in the request. Include or exclude any existing details that you want to retain or delete, respectively. Note that the state of the AppGroup should be updated using action, and not via AppGroup.

SELECT examples

Lists all AppGroups in an organization. A maximum of 1000 AppGroups are returned in the response if PageSize is not specified, or if the PageSize is greater than 1000.

SELECT
name,
appGroupId,
attributes,
channelId,
channelUri,
createdAt,
displayName,
lastModifiedAt,
organization,
status
FROM google.apigee.appgroups
WHERE organizationsId = '{{ organizationsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.apigee.appgroups (
organizationsId,
name,
displayName,
status,
channelUri,
channelId,
organization,
attributes
)
SELECT
'{{ organizationsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ status }}',
'{{ channelUri }}',
'{{ channelId }}',
'{{ organization }}',
'{{ attributes }}'
;

REPLACE example

Replaces all fields in the specified appgroups resource.

/*+ update */
REPLACE google.apigee.appgroups
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
status = '{{ status }}',
channelUri = '{{ channelUri }}',
channelId = '{{ channelId }}',
organization = '{{ organization }}',
attributes = '{{ attributes }}'
WHERE
appgroupsId = '{{ appgroupsId }}'
AND organizationsId = '{{ organizationsId }}';

DELETE example

Deletes the specified appgroups resource.

/*+ delete */
DELETE FROM google.apigee.appgroups
WHERE appgroupsId = '{{ appgroupsId }}'
AND organizationsId = '{{ organizationsId }}';