Google Apigee
apigateway.apigee
Protects against destructive Google Apigee CLI and apigeecli operations.
- 14blocking rules
- 24safe patterns
- 4Critical
- 9High
- 1Medium
[packs]
enabled = ["apigateway.apigee"]Evaluated when a command contains apigee, apigeecli.
Blocking rules
Each rule ID is apigateway.apigee:<name>. Use it in allowlists and [policy.rules].
Criticalapigeecli-envs-deleteapigeecli envs delete removes an Apigee environment.
Explanation
Deleting an environment removes all deployed proxies, target servers, and configurations. This breaks all API traffic through that environment. Safer alternatives: - apigeecli envs list: Review environments before deletion - Export all environment resources before deletion - Undeploy all APIs first to verify nothing is in use
Criticalapigeecli-orgs-deleteapigeecli orgs delete removes an entire Apigee organization.
Explanation
Deleting an organization permanently removes ALL resources: environments, APIs, products, developers, apps, and analytics. This is completely irreversible. Safer alternatives: - Export all configurations before deletion - Delete individual resources first to verify impact - Contact support if you need to preserve any data
Criticalgcloud-apigee-environments-deletegcloud apigee environments delete removes an Apigee environment.
Explanation
Deleting an environment removes all deployed API proxies, target servers, key-value maps, and caches within it. This is irreversible and will break all API traffic routed through this environment. Safer alternatives: - gcloud apigee environments describe: Review environment contents - Undeploy all APIs from the environment first - Export environment configuration and resources before deletion
Criticalgcloud-apigee-organizations-deletegcloud apigee organizations delete removes an entire Apigee organization.
Explanation
Deleting an organization permanently removes ALL environments, API proxies, products, developers, apps, and analytics data. This is irreversible and will completely destroy your API management infrastructure. Safer alternatives: - Export all configurations and proxy bundles before deletion - Delete individual resources to verify nothing is still in use - Consider disabling billing instead if just reducing costs
Highapigeecli-apis-deleteapigeecli apis delete removes an API proxy from Apigee.
Explanation
Deleting an API proxy removes all its revisions and deployment history. Any applications relying on this API will immediately receive errors. Safer alternatives: - apigeecli apis list: Review APIs before deletion - apigeecli apis export: Export the proxy bundle for backup - Undeploy from all environments first to verify impact
Highapigeecli-apps-deleteapigeecli apps delete removes a developer app from Apigee.
Explanation
Deleting an app revokes all its API keys and credentials. Any systems using those keys will immediately lose API access. Safer alternatives: - apigeecli apps list: Review apps before deletion - Revoke individual credentials instead of deleting the app - Set app status to revoked to disable without deleting
Highapigeecli-developers-deleteapigeecli developers delete removes a developer from Apigee.
Explanation
Deleting a developer also deletes all their apps and API keys. Applications using those keys will immediately lose access. Safer alternatives: - apigeecli developers list: Review developers before deletion - apigeecli apps list: Check developer's apps first - Set developer status to inactive instead of deleting
Highapigeecli-keyvaluemaps-deleteapigeecli keyvaluemaps delete removes a key-value map from Apigee.
Explanation
Deleting a KVM removes all stored key-value pairs. API proxies reading from this KVM will fail or return errors. Configuration data stored in the KVM is permanently lost. Safer alternatives: - apigeecli keyvaluemaps list: Review KVMs before deletion - Export KVM entries before deletion - Check which proxies reference this KVM first
Highapigeecli-products-deleteapigeecli products delete removes an API product from Apigee.
Explanation
Deleting an API product immediately revokes access for all subscribed apps. Quota settings and rate limits are permanently lost. Safer alternatives: - apigeecli products list: Review products before deletion - apigeecli products get: Check which apps are using the product - Remove apps from the product first to verify impact
Highapigeecli-targetservers-deleteapigeecli targetservers delete removes a target server from Apigee.
Explanation
Deleting a target server breaks all API proxies that route traffic to it. Requests will fail until proxies are updated to use a different target. Safer alternatives: - apigeecli targetservers list: Review targets before deletion - Update API proxies to use a different target first - Set the target server to disabled to test impact
Highgcloud-apigee-apis-deletegcloud apigee apis delete removes an API proxy from Apigee.
Explanation
Deleting an API proxy removes all its revisions and deployment history. Any applications relying on this API will immediately receive errors. API keys and quotas associated with products referencing this API may be affected. Safer alternatives: - gcloud apigee apis list: Review APIs before deletion - gcloud apigee deployments undeploy: Undeploy first to verify impact - Export the API proxy bundle before deletion for backup
Highgcloud-apigee-developers-deletegcloud apigee developers delete removes a developer from Apigee.
Explanation
Deleting a developer also deletes all their apps and associated API keys. Any applications using those keys will immediately lose API access. Developer analytics and usage history are also removed. Safer alternatives: - gcloud apigee developers describe: Review developer details - Revoke individual app credentials instead of deleting the developer - Set developer status to inactive rather than deleting
Highgcloud-apigee-products-deletegcloud apigee products delete removes an API product from Apigee.
Explanation
Deleting an API product immediately revokes access for all apps subscribed to it. Quota settings, rate limits, and access controls defined in the product are lost. Apps will need to be re-subscribed to a different product. Safer alternatives: - gcloud apigee products describe: Review product configuration - Remove individual apps from the product instead - Set product access to private before deletion to verify impact
Mediumgcloud-apigee-deployments-undeploygcloud apigee deployments undeploy removes an API deployment.
Explanation
Undeploying an API proxy stops all traffic processing for that API in the specified environment. Clients will receive errors until the API is redeployed. This is reversible by redeploying the proxy. Safer alternatives: - gcloud apigee deployments list: Review current deployments - Test in a non-production environment first - Deploy a new revision instead of undeploying
Safe patterns
Checked first. A command that matches one is never blocked by this pack.
gcloud-apigee-apis-listgcloud-apigee-apis-describegcloud-apigee-environments-listgcloud-apigee-environments-describegcloud-apigee-developers-listgcloud-apigee-developers-describegcloud-apigee-products-listgcloud-apigee-products-describegcloud-apigee-organizations-listgcloud-apigee-organizations-describegcloud-apigee-deployments-listgcloud-apigee-deployments-describeapigeecli-apis-listapigeecli-apis-getapigeecli-products-listapigeecli-products-getapigeecli-developers-listapigeecli-developers-getapigeecli-envs-listapigeecli-envs-getapigeecli-orgs-listapigeecli-orgs-getgcloud-apigee-helpapigeecli-help