- NAME
-
- gcloud bms nfs-shares create - create a Bare Metal Solution NFS share
- SYNOPSIS
-
-
gcloud 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
- Create a Bare Metal Solution NFS share.
- EXAMPLES
-
To create an NFS share called
in regionmy-share
, with requested size of 256 Gib, SSD storage and 2 allowed clients, run:us-central1
gcloud bms nfs-shares create my-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 to
specify the attributes of this resource. (NOTE) Some attributes are not given
arguments in this group but can be set in other ways.
To set the
project
attribute:-
provide the argument
nfs_share
on the command line with a fully specified name; -
provide the argument
--project
on 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_share
attribute:-
provide the argument
nfs_share
on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--region
=REGION
-
Region of the resource.
To set the
region
attribute:-
provide the argument
nfs_share
on the command line with a fully specified name; -
provide the argument
--region
on the command line.
-
provide the argument
-
provide the argument
-
Nfs share resource - nfs_share. The arguments in this group can be used to
specify the attributes of this resource. (NOTE) Some attributes are not given
arguments 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 specify
multiple 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 of the 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_PERMISSIONS
READ_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 a special mapping of the remote superuser (root) identity when using identity authentication .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 for
the NFS share.
STORAGE_TYPE
must 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, and numbers. 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 help
for details. - NOTES
-
This variant is also available:
gcloud alpha bms nfs-shares create
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-07-30 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-07-30 UTC.",
"state": ""
}