gcloud alpha apigee archives update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha apigee archives update - update an existing Apigee archive deployment
- SYNOPSIS
gcloud alpha apigee archives update(ARCHIVE_DEPLOYMENT:--environment=ENVIRONMENT--organization=ORGANIZATION)[--update-labels=[KEY=VALUE,…]][--clear-labels|--remove-labels=[KEY,…]][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Update an existing Apigee archive deployment.gcloud alpha apigee archives updateupdates an Apigee archivedeployment.- EXAMPLES
- To update the
andtaglabels of an archive deployment withthe idrevin the Apigeeenvironment calledabcdef01234using the activeCloud Platform project, run:my-envgcloudalphaapigeearchivesupdateabcdef01234--environment=my-env--update-labels=tag=my-tag,rev=1234To remove the
label on an archivedeployment with the iddev, in theApigee environment calleduvwxyz56789, in anorganization calledmy-env, run:my-orggcloudalphaapigeearchivesupdateuvwxyz56789--environment=my-env--organization=my-org--remove-labels=devTo clear all labels on an archive deployment with the id
, in the Apigee environment calledmnop4321, in an organization calledmy-env, and return the updated archivedeployment as a JSON object, run:my-orggcloudalphaapigeearchivesupdatemnop4321--environment=my-env--organization=my-org--clear-labels--format=json - POSITIONAL ARGUMENTS
- Archive deployment resource - Archive deployment to update. To get a list ofexisting archive deployments, run
gcloud alpha apigeearchives list. The arguments in this group can be used to specify theattributes of this resource.This must be specified.
ARCHIVE_DEPLOYMENT- ID of the archive deployment or fully qualified identifier for the archivedeployment.
To set the
archive_deploymentattribute:- provide the argument
archive_deploymenton the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--environment=ENVIRONMENT- Deployment environment of the archive deployment.
To set the
environmentattribute:- provide the argument
archive_deploymenton the command line with afully specified name; - provide the argument
--environmenton the command line.
- provide the argument
--organization=ORGANIZATION- Apigee organization containing the archive deployment. If unspecified, the CloudPlatform project's associated organization will be used.
To set the
organizationattribute:- provide the argument
archive_deploymenton the command line with afully specified 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
- Archive deployment resource - Archive deployment to update. To get a list ofexisting archive deployments, run
- FLAGS
--update-labels=[KEY=VALUE,…]- List of label KEY=VALUE pairs to update. If a label exists, its value ismodified. Otherwise, a new label is created.
Keys must start with a lowercase character and contain only hyphens(
-), underscores (_), lowercase characters, andnumbers. Values must contain only hyphens (-), underscores(_), lowercase characters, and numbers. - At most one of these can be specified:
--clear-labels- Remove all labels. If
--update-labelsis also specified then--clear-labelsis applied first.For example, to remove all labels:
gcloudalphaapigeearchivesupdate--clear-labelsTo remove all existing labels and create two new labels,
andfoo:bazgcloudalphaapigeearchivesupdate--clear-labels--update-labelsfoo=bar,baz=qux --remove-labels=[KEY,…]- List of label keys to remove. If a label does not exist it is silently ignored.If
--update-labelsis also specified then--update-labelsis applied first.
- 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
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gcloudbetaapigeearchivesupdate
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 2025-05-07 UTC.