Skip to main content

appgroups

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

Overview

Nameappgroups
TypeResource
Idgoogle.apigee.appgroups

Fields

The following fields are returned by SELECT queries:

Successful response

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.
createdAtstring (int64)Output only. Created time as milliseconds since epoch.
displayNamestringapp group name displayed in the UI
lastModifiedAtstring (int64)Output 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_appgroups_getselectorganizationsId, appgroupsIdReturns the AppGroup details for the provided AppGroup name in the request URI.
organizations_appgroups_listselectorganizationsIdfilter, pageSize, pageTokenLists 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_updatereplaceorganizationsId, appgroupsIdactionUpdates 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.
organizations_appgroups_deletedeleteorganizationsId, appgroupsIdDeletes 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 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
appgroupsIdstring
organizationsIdstring
actionstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Returns the AppGroup details for the provided AppGroup name in the request URI.

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

INSERT examples

Creates 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.

INSERT INTO google.apigee.appgroups (
data__name,
data__channelUri,
data__channelId,
data__displayName,
data__organization,
data__status,
data__attributes,
organizationsId
)
SELECT
'{{ name }}',
'{{ channelUri }}',
'{{ channelId }}',
'{{ displayName }}',
'{{ organization }}',
'{{ status }}',
'{{ attributes }}',
'{{ organizationsId }}'
RETURNING
name,
appGroupId,
attributes,
channelId,
channelUri,
createdAt,
displayName,
lastModifiedAt,
organization,
status
;

REPLACE examples

Updates 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.

REPLACE google.apigee.appgroups
SET
data__name = '{{ name }}',
data__channelUri = '{{ channelUri }}',
data__channelId = '{{ channelId }}',
data__displayName = '{{ displayName }}',
data__organization = '{{ organization }}',
data__status = '{{ status }}',
data__attributes = '{{ attributes }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND appgroupsId = '{{ appgroupsId }}' --required
AND action = '{{ action}}'
RETURNING
name,
appGroupId,
attributes,
channelId,
channelUri,
createdAt,
displayName,
lastModifiedAt,
organization,
status;

DELETE examples

Deletes 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 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.

DELETE FROM google.apigee.appgroups
WHERE organizationsId = '{{ organizationsId }}' --required
AND appgroupsId = '{{ appgroupsId }}' --required;