Skip to main content

apicategories

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

Overview

Nameapicategories
TypeResource
Idgoogle.apigee.apicategories

Fields

NameDatatypeDescription
dataobjectApiCategory represents an API category. Catalog items can be tagged with API categories; users viewing the API catalog in the portal will have the option to browse the catalog by category.
errorCodestringUnique error code for the request, if any.
messagestringDescription of the operation.
requestIdstringUnique ID of the request.
statusstringStatus of the operation.

Methods

NameAccessible byRequired ParamsDescription
organizations_sites_apicategories_getSELECTapicategoriesId, organizationsId, sitesIdGets an API category.
organizations_sites_apicategories_listSELECTorganizationsId, sitesIdReturns the API categories associated with a portal.
organizations_sites_apicategories_createINSERTorganizationsId, sitesIdCreates a new API category.
organizations_sites_apicategories_deleteDELETEapicategoriesId, organizationsId, sitesIdDeletes an API category.
organizations_sites_apicategories_patchUPDATEapicategoriesId, organizationsId, sitesIdUpdates an API category.

SELECT examples

Returns the API categories associated with a portal.

SELECT
data,
errorCode,
message,
requestId,
status
FROM google.apigee.apicategories
WHERE organizationsId = '{{ organizationsId }}'
AND sitesId = '{{ sitesId }}';

INSERT example

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

/*+ create */
INSERT INTO google.apigee.apicategories (
organizationsId,
sitesId,
name,
siteId
)
SELECT
'{{ organizationsId }}',
'{{ sitesId }}',
'{{ name }}',
'{{ siteId }}'
;

UPDATE example

Updates a apicategories resource.

/*+ update */
UPDATE google.apigee.apicategories
SET
name = '{{ name }}',
siteId = '{{ siteId }}'
WHERE
apicategoriesId = '{{ apicategoriesId }}'
AND organizationsId = '{{ organizationsId }}'
AND sitesId = '{{ sitesId }}';

DELETE example

Deletes the specified apicategories resource.

/*+ delete */
DELETE FROM google.apigee.apicategories
WHERE apicategoriesId = '{{ apicategoriesId }}'
AND organizationsId = '{{ organizationsId }}'
AND sitesId = '{{ sitesId }}';