- NAME
-
- gcloud logging scopes update - update a log scope
- SYNOPSIS
-
-
gcloud logging scopes update
LOG_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:
gcloud logging scopes update my-scope --description=my-new-description --project=my-project
To update the resource name of a log scope in a project. Ensure that you provide all the resource names including the existing ones. For example, if the log scope has the resource name my-project, and you want to update the log scope to have the resource name another-project, run the following:
gcloud logging scopes update my-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 the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-22 UTC.