gcloud alpha apigee archives update

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 update updates an Apigee archivedeployment.

EXAMPLES
To update thetag andrev labels of an archive deployment withthe idabcdef01234 in the Apigeeenvironment calledmy-env using the activeCloud Platform project, run:
gcloudalphaapigeearchivesupdateabcdef01234--environment=my-env--update-labels=tag=my-tag,rev=1234

To remove thedev label on an archivedeployment with the iduvwxyz56789, in theApigee environment calledmy-env, in anorganization calledmy-org, run:

gcloudalphaapigeearchivesupdateuvwxyz56789--environment=my-env--organization=my-org--remove-labels=dev

To clear all labels on an archive deployment with the idmnop4321, in the Apigee environment calledmy-env, in an organization calledmy-org, and return the updated archivedeployment as a JSON object, run:

gcloudalphaapigeearchivesupdatemnop4321--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, rungcloud 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 thearchive_deployment attribute:

  • provide the argumentarchive_deployment on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--environment=ENVIRONMENT
Deployment environment of the archive deployment.

To set theenvironment attribute:

  • provide the argumentarchive_deployment on the command line with afully specified name;
  • provide the argument--environment on the command line.
--organization=ORGANIZATION
Apigee organization containing the archive deployment. If unspecified, the CloudPlatform project's associated organization will be used.

To set theorganization attribute:

  • provide the argumentarchive_deployment on the command line with afully specified name;
  • provide the argument--organization on 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.
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-labels is also specified then--clear-labels is applied first.

For example, to remove all labels:

gcloudalphaapigeearchivesupdate--clear-labels

To remove all existing labels and create two new labels,foo andbaz:

gcloudalphaapigeearchivesupdate--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-labels is also specified then--update-labels is 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 help for 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.