- NAME
-
- gcloud alpha lustre instances update - updates the parameters of a single Managed Lustre instance
- SYNOPSIS
-
-
gcloud alpha lustre instances updateINSTANCE[--async] [--capacity-gib=CAPACITY_GIB] [--description=DESCRIPTION] [--[no-]gke-support-enabled] [--location=LOCATION] [--per-unit-storage-throughput=PER_UNIT_STORAGE_THROUGHPUT] [--placement-policy=PLACEMENT_POLICY] [--request-id=REQUEST_ID] [--clear---default-squash-gid=DEFAULT_SQUASH_GID--default-squash-mode=DEFAULT_SQUASH_MODE--default-squash-uid=DEFAULT_SQUASH_UID--access-rules=[accessMode=ACCESSMODE],[ipAddressRanges=IPADDRESSRANGES],[mountableSubdirectories=MOUNTABLESUBDIRECTORIES],[name=NAME],[squashGid=SQUASHGID],[squashMode=SQUASHMODE],[squashUid=SQUASHUID] |--add-access-rules=[accessMode=ACCESSMODE],[ipAddressRanges=IPADDRESSRANGES],[mountableSubdirectories=MOUNTABLESUBDIRECTORIES],[name=NAME],[squashGid=SQUASHGID],[squashMode=SQUASHMODE],[squashUid=SQUASHUID]--clear-access-rules|--remove-access-rules=[accessMode=ACCESSMODE],[ipAddressRanges=IPADDRESSRANGES],[mountableSubdirectories=MOUNTABLESUBDIRECTORIES],[name=NAME],[squashGid=SQUASHGID],[squashMode=SQUASHMODE],[squashUid=SQUASHUID]] [--clear-source-backup|--source-backup=SOURCE_BACKUP] [--labels=[LABELS,…] |--update-labels=[UPDATE_LABELS,…]--clear-labels|--remove-labels=REMOVE_LABELS] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Updates the parameters of a single Managed Lustre instance. - EXAMPLES
-
To update the description of an instance
my-instancein locationus-central1-arun:gcloud alpha lustre instances update my-instance --location=us-central1-a --description="<updated description>" - POSITIONAL ARGUMENTS
-
-
Instance resource - Identifier. The name of the instance. This represents a
Cloud resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
To set the
projectattribute:-
provide the argument
instanceon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
instanceon the command line with a fully specified name; -
provide the argument
--locationon the command line.
This must be specified.
INSTANCE-
ID of the instance or fully qualified identifier for the instance.
To set the
instanceattribute:-
provide the argument
instanceon the command line.
-
provide the argument
-
provide the argument
-
Instance resource - Identifier. The name of the instance. This represents a
Cloud resource. (NOTE) Some attributes are not given arguments in this group but
can be set in other ways.
- FLAGS
-
--async- Return immediately, without waiting for the operation in progress to complete.
--capacity-gib=CAPACITY_GIB-
The storage capacity of the instance in gibibytes (GiB). Allowed values are from
9000to7632000, depending on theperUnitStorageThroughput. See Performance tiers and maximum storage capacities for specific minimums, maximums, and step sizes for each performance tier. --description=DESCRIPTION- A user-readable description of the instance.
--[no-]gke-support-enabled-
Indicates whether you want to enable support for GKE clients. By default, GKE
clients are not supported. Deprecated. No longer required for GKE instance
creation. Use
--gke-support-enabledto enable and--no-gke-support-enabledto disable. --location=LOCATION- For resources [instance, source-backup], provides fallback value for resource location attribute. When the resource's full URI path is not provided, location will fallback to this flag value.
--per-unit-storage-throughput=PER_UNIT_STORAGE_THROUGHPUT- The throughput of the instance in MBps per TiB. Valid values are 125, 250, 500, 1000. See Performance tiers and maximum storage capacities for more information.
--placement-policy=PLACEMENT_POLICY- The placement policy name for the instance in the format of projects/{project}/locations/{location}/resourcePolicies/{resource_policy}
--request-id=REQUEST_ID-
An optional request ID to identify requests. Specify a unique request ID so that
if you must retry your request, the server will know to ignore the request if it
has already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- IP-based access rules for the Managed Lustre instance. These options define the root user squash configuration.
--clear-- Set instance.accessRulesOptions back to default value.
--default-squash-gid=DEFAULT_SQUASH_GID- The user squash GID for the default access rule. This user squash GID applies to all root users connecting from clients that are not matched by any of the access rules. If not set, the default is 0 (no GID squash).
--default-squash-mode=DEFAULT_SQUASH_MODE-
The squash mode for the default access rule.
DEFAULT_SQUASH_MODEmust be one of:no-squash-
Squash is disabled.
If set inside an [AccessRule][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule], root users matching the [ip_ranges][AccessRule.ip_ranges] are not squashed.
If set as the [default_squash_mode][google.cloud.lustre.v1alpha.AccessRulesOptions.default_squash_mode], root squash is disabled for this instance.
If the default squash mode is
NO_SQUASH, do not set the [default_squash_uid][google.cloud.lustre.v1alpha.AccessRulesOptions.default_squash_uid] or [default_squash_gid][google.cloud.lustre.v1alpha.AccessRulesOptions.default_squash_gid], or aninvalid argumenterror is returned. root-squash-
Root user squash is enabled.
Not supported inside an [AccessRule][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule].
If set as the [default_squash_mode][google.cloud.lustre.v1alpha.AccessRulesOptions.default_squash_mode], root users not matching any of the [access_rules][google.cloud.lustre.v1alpha.AccessRulesOptions.access_rules] are squashed to the [default_squash_uid][google.cloud.lustre.v1alpha.AccessRulesOptions.default_squash_uid] and [default_squash_gid][google.cloud.lustre.v1alpha.AccessRulesOptions.default_squash_gid].
--default-squash-uid=DEFAULT_SQUASH_UID- The user squash UID for the default access rule. This user squash UID applies to all root users connecting from clients that are not matched by any of the access rules. If not set, the default is 0 (no UID squash).
-
Update access_rules.
At most one of these can be specified:
--access-rules=[accessMode=ACCESSMODE],[ipAddressRanges=IPADDRESSRANGES],[mountableSubdirectories=MOUNTABLESUBDIRECTORIES],[name=NAME],[squashGid=SQUASHGID],[squashMode=SQUASHMODE],[squashUid=SQUASHUID]-
Set access_rules to new value. The access rules for the instance.
accessMode- The access mode for the access rule nodemap. Default is [READ_WRITE][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule.AccessMode.READ_WRITE].
ipAddressRanges-
The IP address ranges to which to apply this access rule. Accepts
non-overlapping CIDR ranges (e.g.,
192.168.1.0/24) and IP addresses (e.g.,192.168.1.0). mountableSubdirectories- The list of non-root directories that can be mounted from clients in this NID range subset. Currently, there can be only a single directory at most. If no directory is mentioned, then the root directory will be accessible.
name-
The name of the access rule policy group. Must be 16 characters or less and
include only alphanumeric characters or '
'. squashGid- Squash GID for the access rule. If the squash mode for this rule is [ROOT_SQUASH][google.cloud.lustre.v1alpha.AccessRulesOptions.SquashMode.ROOT_SQUASH], root users matching the [ip_address_ranges][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule.ip_address_ranges] are squashed to this GID. Defaults to 0 (no root squash).
squashMode- Squash mode for the access rule.
squashUid- Squash UID for the access rule. If the squash mode for this rule is [ROOT_SQUASH][google.cloud.lustre.v1alpha.AccessRulesOptions.SquashMode.ROOT_SQUASH], root users matching the [ip_address_ranges][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule.ip_address_ranges] are squashed to this UID. Defaults to 0 (no root squash).
Shorthand Example:--access-rules=accessMode=string,ipAddressRanges=[string],mountableSubdirectories=[string],name=string,squashGid=int,squashMode=string,squashUid=int --access-rules=accessMode=string,ipAddressRanges=[string],mountableSubdirectories=[string],name=string,squashGid=int,squashMode=string,squashUid=int
JSON Example:--access-rules='[{"accessMode": "string", "ipAddressRanges": ["string"], "mountableSubdirectories": ["string"], "name": "string", "squashGid": int, "squashMode": "string", "squashUid": int}]'
File Example:--access-rules=path_to_file.(yaml|json)
-
Or at least one of these can be specified:
--add-access-rules=[accessMode=ACCESSMODE],[ipAddressRanges=IPADDRESSRANGES],[mountableSubdirectories=MOUNTABLESUBDIRECTORIES],[name=NAME],[squashGid=SQUASHGID],[squashMode=SQUASHMODE],[squashUid=SQUASHUID]-
Add new value to access_rules list. The access rules for the instance.
accessMode- The access mode for the access rule nodemap. Default is [READ_WRITE][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule.AccessMode.READ_WRITE].
ipAddressRanges-
The IP address ranges to which to apply this access rule. Accepts
non-overlapping CIDR ranges (e.g.,
192.168.1.0/24) and IP addresses (e.g.,192.168.1.0). mountableSubdirectories- The list of non-root directories that can be mounted from clients in this NID range subset. Currently, there can be only a single directory at most. If no directory is mentioned, then the root directory will be accessible.
name- The name of the access rule policy group. Must be 16 characters or less and include only alphanumeric characters or ''.
squashGid- Squash GID for the access rule. If the squash mode for this rule is [ROOT_SQUASH][google.cloud.lustre.v1alpha.AccessRulesOptions.SquashMode.ROOT_SQUASH], root users matching the [ip_address_ranges][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule.ip_address_ranges] are squashed to this GID. Defaults to 0 (no root squash).
squashMode- Squash mode for the access rule.
squashUid- Squash UID for the access rule. If the squash mode for this rule is [ROOT_SQUASH][google.cloud.lustre.v1alpha.AccessRulesOptions.SquashMode.ROOT_SQUASH], root users matching the [ip_address_ranges][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule.ip_address_ranges] are squashed to this UID. Defaults to 0 (no root squash).
Shorthand Example:--add-access-rules=accessMode=string,ipAddressRanges=[string],mountableSubdirectories=[string],name=string,squashGid=int,squashMode=string,squashUid=int --add-access-rules=accessMode=string,ipAddressRanges=[string],mountableSubdirectories=[string],name=string,squashGid=int,squashMode=string,squashUid=int
JSON Example:--add-access-rules='[{"accessMode": "string", "ipAddressRanges": ["string"], "mountableSubdirectories": ["string"], "name": "string", "squashGid": int, "squashMode": "string", "squashUid": int}]'
File Example:--add-access-rules=path_to_file.(yaml|json)
-
At most one of these can be specified:
--clear-access-rules- Clear access_rules value and set to empty list.
--remove-access-rules=[accessMode=ACCESSMODE],[ipAddressRanges=IPADDRESSRANGES],[mountableSubdirectories=MOUNTABLESUBDIRECTORIES],[name=NAME],[squashGid=SQUASHGID],[squashMode=SQUASHMODE],[squashUid=SQUASHUID]-
Remove existing value from access_rules list. The access rules for the instance.
accessMode- The access mode for the access rule nodemap. Default is [READ_WRITE][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule.AccessMode.READ_WRITE].
ipAddressRanges-
The IP address ranges to which to apply this access rule. Accepts
non-overlapping CIDR ranges (e.g.,
192.168.1.0/24) and IP addresses (e.g.,192.168.1.0). mountableSubdirectories- The list of non-root directories that can be mounted from clients in this NID range subset. Currently, there can be only a single directory at most. If no directory is mentioned, then the root directory will be accessible.
name-
The name of the access rule policy group. Must be 16 characters or less and
include only alphanumeric characters or '
'. squashGid- Squash GID for the access rule. If the squash mode for this rule is [ROOT_SQUASH][google.cloud.lustre.v1alpha.AccessRulesOptions.SquashMode.ROOT_SQUASH], root users matching the [ip_address_ranges][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule.ip_address_ranges] are squashed to this GID. Defaults to 0 (no root squash).
squashMode- Squash mode for the access rule.
squashUid- Squash UID for the access rule. If the squash mode for this rule is [ROOT_SQUASH][google.cloud.lustre.v1alpha.AccessRulesOptions.SquashMode.ROOT_SQUASH], root users matching the [ip_address_ranges][google.cloud.lustre.v1alpha.AccessRulesOptions.AccessRule.ip_address_ranges] are squashed to this UID. Defaults to 0 (no root squash).
Shorthand Example:--remove-access-rules=accessMode=string,ipAddressRanges=[string],mountableSubdirectories=[string],name=string,squashGid=int,squashMode=string,squashUid=int --remove-access-rules=accessMode=string,ipAddressRanges=[string],mountableSubdirectories=[string],name=string,squashGid=int,squashMode=string,squashUid=int
JSON Example:--remove-access-rules='[{"accessMode": "string", "ipAddressRanges": ["string"], "mountableSubdirectories": ["string"], "name": "string", "squashGid": int, "squashMode": "string", "squashUid": int}]'
File Example:--remove-access-rules=path_to_file.(yaml|json)
- Arguments for the source backup.
-
Update source_backup.
At most one of these can be specified:
--clear-source-backup- Clear source_backup value and set to null.
-
Backup resource - Set source_backup to new value.
The source backup used to create the instance. Only set this field if the instance is being created from a backup. Format: projects/{project}/locations/{location}/backups/{backup} This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.
To set the
projectattribute:-
provide the argument
--source-backupon the command line with a fully specified name; -
provide the argument
--projecton the command line; -
set the property
core/project.
To set the
locationattribute:-
provide the argument
--source-backupon the command line with a fully specified name; -
provide the argument
--locationon the command line.
-
provide the argument
--source-backup=SOURCE_BACKUP-
ID of the backup or fully qualified identifier for the backup.
To set the
backupattribute:-
provide the argument
--source-backupon the command line.
-
provide the argument
-
Update labels.
At most one of these can be specified:
--labels=[LABELS,…]-
Set labels to new value. Labels as key value pairs.
KEY-
Keys must start with a lowercase character and contain only hyphens
(
-), underscores (_), lowercase characters, and numbers. VALUE-
Values must contain only hyphens (
-), underscores (_), lowercase characters, and numbers.
Shorthand Example:--labels=string=string
JSON Example:--labels='{"string": "string"}'
File Example:--labels=path_to_file.(yaml|json)
-
Or at least one of these can be specified:
--update-labels=[UPDATE_LABELS,…]-
Update labels value or add key value pair. Labels as key value pairs.
KEY-
Keys must start with a lowercase character and contain only hyphens
(
-), underscores (_), lowercase characters, and numbers. VALUE-
Values must contain only hyphens (
-), underscores (_), lowercase characters, and numbers.
Shorthand Example:--update-labels=string=string
JSON Example:--update-labels='{"string": "string"}'
File Example:--update-labels=path_to_file.(yaml|json)
-
At most one of these can be specified:
--clear-labels- Clear labels value and set to empty map.
--remove-labels=REMOVE_LABELS-
Remove existing value from map labels. Sets
remove_labelsvalue.Shorthand Example:--remove-labels=string,stringJSON Example:--remove-labels=["string"]
File Example:--remove-labels=path_to_file.(yaml|json)
- 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. - API REFERENCE
-
This command uses the
lustre/v1alphaAPI. The full documentation for this API can be found at: https://cloud.google.com/managed-lustre/docs - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. This variant is also available:
gcloud lustre instances update
gcloud alpha lustre instances update
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 2026-02-10 UTC.