gcloud logging scopes update

NAME
gcloud logging scopes update - update a log scope
SYNOPSIS
gcloud logging scopes updateLOG_SCOPE_ID[--description=DESCRIPTION][--resource-names=[RESOURCE_NAMES,…]][GCLOUD_WIDE_FLAG]
DESCRIPTION
Update the properties of a log scope.
EXAMPLES
To update the description of a log scope in a project, run:
gcloudloggingscopesupdatemy-scope--description=my-new-description--project=my-project

To update the resource name of a log scope in a project. Ensure that you provideall the resource names including the existing ones. For example, if the logscope has the resource name my-project, and you want to update the log scope tohave the resource name another-project, run the following:

gcloudloggingscopesupdatemy-scope--resource-names=projects/my-project,projects/another-project--project=my-project
POSITIONAL ARGUMENTS
LOG_SCOPE_ID
The ID of the log scope to update.
FLAGS
--description=DESCRIPTION
A new description for the log scope.
--resource-names=[RESOURCE_NAMES,…]
A new set of resource names for the log scope.
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.

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.