gcloud alpha bms nfs-shares create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha bms nfs-shares create - create a Bare Metal Solution NFS share
- SYNOPSIS
gcloud alpha bms nfs-shares create(NFS_SHARE:--region=REGION)--allowed-client=[PROPERTY=VALUE,…]--size-gib=SIZE_GIB--storage-type=STORAGE_TYPE[--async][--labels=[KEY=VALUE,…]][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Create a Bare Metal Solution NFS share.- EXAMPLES
- To create an NFS share called
inregionmy-share, with requested size of256 Gib, SSD storage and 2 allowed clients, run:us-central1gcloudalphabmsnfs-sharescreatemy-share--region=us-central1--size-gib=256--storage-type=SSD--allowed-client=network=my-network,network-project-id=some-other-project,cidr=10.130.240.24/29,mount-permissions=READ_ONLY,allow-dev=yes,allow-suid=no,enable-root-squash=yes--allowed-client=network=my-network2,cidr=10.130.240.26/28,mount-permissions=READ_WRITE,allow-dev=yes,allow-suid=yes,enable-root-squash=no - POSITIONAL ARGUMENTS
- Nfs share resource - nfs_share. The arguments in this group can be used tospecify the attributes of this resource. (NOTE) Some attributes are not givenarguments in this group but can be set in other ways.
To set the
projectattribute:- provide the argument
nfs_shareon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
NFS_SHARE- ID of the nfs_share or fully qualified identifier for the nfs_share.
To set the
nfs_shareattribute:- provide the argument
nfs_shareon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--region=REGION- Region of the resource.
To set the
regionattribute:- provide the argument
nfs_shareon the command line with a fullyspecified name; - provide the argument
--regionon the command line.
- provide the argument
- provide the argument
- Nfs share resource - nfs_share. The arguments in this group can be used tospecify the attributes of this resource. (NOTE) Some attributes are not givenarguments in this group but can be set in other ways.
- REQUIRED FLAGS
--allowed-client=[PROPERTY=VALUE,…]- Adds an allowed client to the NFS share. This flag can be repeated to specifymultiple allowed clients.
network- The name of the network to allow.
network-project-id- The project ID of the allowed client network. If not present, the project ID ofthe NFS share will be used.
cidr- The subnet of IP addresses permitted to access the NFS share.
mount-permissions- The mount permissions for the allowed client.
must be one of:MOUNT_PERMISSIONSREAD_ONLY,READ_WRITE. allow-dev- If
, allows creation of devices.yes allow-suid- If
, allows SUID.yes enable-root-squash- If
, enables root squashing which is aspecial mapping of the remote superuser (root) identity when using identityauthentication .yes
--size-gib=SIZE_GIB- The requested size of the NFS share in GiB
--storage-type=STORAGE_TYPE- Specifies the storage type of the underlying volume which will be created forthe NFS share.
STORAGE_TYPEmust be one of:HDD- The storage type of the underlying volume will be HDD
SSD- The storage type of the underlying volume will be SSD
- OPTIONAL FLAGS
--async- Return immediately, without waiting for the operation in progress to complete.
--labels=[KEY=VALUE,…]- List of label KEY=VALUE pairs to add.
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.
- 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. - 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:
gcloudbmsnfs-sharescreate
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.