gcloud apigee apis undeploy Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud apigee apis undeploy - undeploy an Apigee API proxy from an environment
- SYNOPSIS
gcloud apigee apis undeploy[[REVISION]--api=API--environment=ENVIRONMENT--organization=ORGANIZATION][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- Undeploy an Apigee API proxy from an environment.
- EXAMPLES
- To undeploy an API proxy called
fromthemy-apienvironment of the active CloudPlatform project, run:testgcloudapigeeapisundeploy--environment=test--api=my-apiTo undeploy revision 3 of an
my-apifrom thetestenvironment of the organization named, run:test-orggcloudapigeeapisundeploy3--organization=test-org--environment=test--api=my-api - POSITIONAL ARGUMENTS
- Revision resource - API proxy revision to be undeployed and environment fromwhich it should be removed.
Revisions can either be a positive revision number, or the special value
, which will undeploy whatever revisionis currently deployed. If revision is unspecified, the default isauto. The arguments in this group can beused to specify the attributes of this resource.auto - [
REVISION] - ID of the revision or fully qualified identifier for the revision.
To set the
revisionattribute:- provide the argument
REVISIONon the command line; - leave the argument unspecified for it to be chosen automatically.
- provide the argument
--api=API- API proxy to be undeployed. Must currently be deployed. To get a list ofavailable deployed proxies, run
gcloud apigee deployments list--environment=ENV.To set the
apiattribute:- provide the argument
REVISIONon the command line with a fullyspecified name; - leave the argument unspecified for it to be chosen automatically with a fullyspecified name;
- provide the argument
--apion the command line.
- provide the argument
--environment=ENVIRONMENT- Environment from which to undeploy the API proxy. To get a list of availableenvironments, run
gcloud apigee environmentslist.To set the
environmentattribute:- provide the argument
REVISIONon the command line with a fullyspecified name; - leave the argument unspecified for it to be chosen automatically with a fullyspecified name;
- provide the argument
--environmenton the command line.
- provide the argument
--organization=ORGANIZATION- Apigee organization of the proxy and environment.
To set the
organizationattribute:- provide the argument
REVISIONon the command line with a fullyspecified name; - leave the argument unspecified for it to be chosen automatically with a fullyspecified name;
- provide the argument
--organizationon the command line; - set the property [project] or provide the argument [--project] on the commandline, using a Cloud Platform project with an associated Apigee organization.
- provide the argument
- Revision resource - API proxy revision to be undeployed and environment fromwhich it should be removed.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- These variants are also available:
gcloudalphaapigeeapisundeploygcloudbetaapigeeapisundeploy
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-21 UTC.