mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-09 02:55:19 +00:00
43 lines
1.5 KiB
Text
43 lines
1.5 KiB
Text
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.
|