This page explains how to get started using Advanced API Security for Subscription and Pay-as-you-go organizations.
The following sections describe the required roles and permissions to perform tasks using Advanced API Security.
The table below shows the required roles to perform tasks related to security reports.
Security Report Task | Required Role(s) |
---|---|
Enable or disable Advanced API Security | Apigee Organization Admin (roles/apigee.admin ) |
Create reports | Apigee Organization Admin (roles/apigee.admin )Apigee Security Admin ( roles/apigee.securityAdmin ) |
View reports | Apigee Security Viewer (roles/apigee.securityViewer )Apigee Security Admin ( roles/apigee.securityAdmin ) |
The table below shows the required roles to perform tasks related to risk assessment.
Risk Assessment Task | Required Role(s) |
---|---|
Create, update, or delete a custom security profile | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Organization Admin ( roles/apigee.admin ) |
Attach or detach a security profile | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Organization Admin ( roles/apigee.admin ) |
View security scores | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Security Viewer ( roles/apigee.securityViewer )Apigee Organization Admin ( roles/apigee.admin ) |
List all security profiles or get a profile | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Security Viewer ( roles/apigee.securityViewer )Apigee Organization Admin ( roles/apigee.admin ) |
Create, update, or delete a security monitoring condition | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Organization Admin ( roles/apigee.admin ) |
List and view security monitoring conditions | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Security Viewer ( roles/apigee.securityViewer )Apigee Organization Admin ( roles/apigee.admin ) |
List and view security monitoring condition metrics | Monitoring Admin (roles/monitoring.admin )Monitoring Editor ( roles/monitoring.editor ) |
Create, update, or delete monitoring alerts | See Required roles (for security alerts) |
View monitoring alerts | See Incidents for metric-based alerting policies: Before you begin |
The table below shows the required roles and permissions to perform tasks related to abuse detection.
Abuse Detection Task | Required Role(s) and Permission(s) |
---|---|
View incidents in the Abuse detection UI | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Security Viewer ( roles/apigee.securityViewer )Apigee Organization Admin ( roles/apigee.admin ) |
View incident generative AI Insights | cloudaicompanion.instances.generateText permission |
Opt an organization in or out of machine learning models for abuse detection | apigee.securitySettings.update permissionApigee Security Admin ( roles/apigee.securityAdmin )Apigee Organization Admin ( roles/apigee.admin ) |
The table below shows the required roles to perform tasks related to security actions.
Security Action Task | Required Role(s) |
---|---|
Create security actions | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Organization Admin ( roles/apigee.admin ) |
Update security actions configuration | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Organization Admin ( roles/apigee.admin ) |
View or list security actions | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Security Viewer ( roles/apigee.securityViewer )Apigee Organization Admin ( roles/apigee.admin ) |
Check the state of enforcement | Apigee Security Admin (roles/apigee.securityAdmin )Apigee Security Viewer ( roles/apigee.securityViewer )Apigee Organization Admin ( roles/apigee.admin ) |
To use Advanced API Security as a Subscription customer, Advanced API Security must be part of your Subscription entitlements. See Apigee entitlements. To add Advanced API Security to your entitlements, contact Apigee Sales.
Once Advanced API Security is part of your entitlements, enable it in your organization:
If you are unsure whether you are using a Subscription or Pay-as-you-go Apigee organization, contact your Apigee organization administrator.
In order to enable Advanced API Security for your Subscription organization, you first need to get your current Apigee add-ons configuration, using the following API call. This will also tell you whether Advanced API Security is already enabled.
curl "https://apigee.googleapis.com/v1/organizations/ORG" \ -X GET \ -H "Content-type: application/json" \ -H "Authorization: Bearer $TOKEN"
where
$TOKEN
is the environment variable for an OAuth access token.This call returns basic information about your organization, including a section for your Apigee add-ons configuration that begins with the line:
"addonsConfig": {
Check to see whether this section contains the following entry:
"apiSecurityConfig": { "enabled": true }
If so, Advanced API Security is already enabled in the organization. Otherwise, you need to enable it, as described next.
To enable Advanced API Security in a Subscription organization with the default configuration, issue a POST
request like the one shown below.
curl "https://apigee.googleapis.com/v1/organizations/ORG:setAddons" \ -X POST \ -H "Authorization: Bearer $TOKEN" \ -H "Content-type: application/json" \ -d '{ "addonsConfig": { "apiSecurityConfig": { "enabled": true } <Other entries of your current add-ons configuration> } }'
where
$TOKEN
is the environment variable for an OAuth access token.<Other entries of your current add-ons configuration>
consists of any other entries of your current Apigee add-ons configuration.For example, if the current add-ons configuration is
"addonsConfig": { "integrationConfig": { "enabled":true }, "monetizationConfig": { "enabled":true } },
the command to enable Advanced API Security would be
curl "https://apigee.googleapis.com/v1/organizations/ORG:setAddons" \ -X POST \ -H "Authorization: Bearer $TOKEN" \ -H "Content-type: application/json" \ -d '{ "addonsConfig": { "apiSecurityConfig": { "enabled": true }, "integrationConfig": { "enabled": true }, "monetizationConfig": { "enabled": true } } }'
After you send the request, you will see a response like the following:
{ "name": "organizations/apigee-docs-d/operations/0718a945-76e0-4393-a456-f9929603b32c", "metadata": { "@type": "type.googleapis.com/google.cloud.apigee.v1.OperationMetadata", "operationType": "UPDATE", "targetResourceName": "organizations/apigee-docs-d", "state": "IN_PROGRESS" } }
If for some reason you need to disable Advanced API Security in your Subscription organization, you can do so by issuing a POST
request, passing the add-ons configuration in your request body, as shown below.
curl "https://apigee.googleapis.com/v1/organizations/$ORG:setAddons" \ -X POST \ -H "Authorization: Bearer $TOKEN" \ -H "Content-type: application/json" \ -d '{ "addonsConfig": { "apiSecurityConfig": { "enabled": false } <Include current add-ons configuration> } }'
The following provides an example of the response showing that the operation is in progress:
{ "name": "organizations/$ORG/operations/06274ffb-8940-41da-836d-781cba190437", "metadata": { "@type": "type.googleapis.com/google.cloud.apigee.v1.OperationMetadata", "operationType": "UPDATE", "targetResourceName": "organizations/$ORG", "state": "IN_PROGRESS" } }
For more information, see the Configure organization add-ons API.
If you are a Pay-as-you-go customer, you can enable Advanced API Security as a paid add-on. For more information on enabling the Advanced API Security add-on for your Intermediate or Comprehensive Apigee environments, see Manage the Advanced API Security add-on.
If you are unsure whether you are using a Subscription or Pay-as-you-go Apigee organization, contact your Apigee organization administrator.
The Advanced API Security add-on is automatically included with Apigee trial (evaluation) organizations, but you'll need to enable it.
To enable it, follow the instructions in Enable Advanced API Security for Subscription organizations.
If you need to disable it, follow the instructions in Disable Advanced API Security for Subscription organizations.
Once you have enabled Advanced API Security, take a look at the following sections:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-24 UTC.