Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.baremetalsolution/v2.NfsShare
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Create an NFS share.
Create NfsShare Resource
new NfsShare(name: string, args?: NfsShareArgs, opts?: CustomResourceOptions);
@overload
def NfsShare(resource_name: str,
opts: Optional[ResourceOptions] = None,
allowed_clients: Optional[Sequence[AllowedClientArgs]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
requested_size_gib: Optional[str] = None,
storage_type: Optional[NfsShareStorageType] = None)
@overload
def NfsShare(resource_name: str,
args: Optional[NfsShareArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewNfsShare(ctx *Context, name string, args *NfsShareArgs, opts ...ResourceOption) (*NfsShare, error)
public NfsShare(string name, NfsShareArgs? args = null, CustomResourceOptions? opts = null)
public NfsShare(String name, NfsShareArgs args)
public NfsShare(String name, NfsShareArgs args, CustomResourceOptions options)
type: google-native:baremetalsolution/v2:NfsShare
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NfsShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NfsShareArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NfsShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NfsShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NfsShareArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
NfsShare Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NfsShare resource accepts the following input properties:
- Allowed
Clients List<Pulumi.Google Native. Bare Metal Solution. V2. Inputs. Allowed Client> List of allowed access points.
- Labels Dictionary<string, string>
Labels as key value pairs.
- Location string
- Name string
Immutable. The name of the NFS share.
- Project string
- Requested
Size stringGib The requested size, in GiB.
- Storage
Type Pulumi.Google Native. Bare Metal Solution. V2. Nfs Share Storage Type Immutable. The storage type of the underlying volume.
- Allowed
Clients []AllowedClient Args List of allowed access points.
- Labels map[string]string
Labels as key value pairs.
- Location string
- Name string
Immutable. The name of the NFS share.
- Project string
- Requested
Size stringGib The requested size, in GiB.
- Storage
Type NfsShare Storage Type Immutable. The storage type of the underlying volume.
- allowed
Clients List<AllowedClient> List of allowed access points.
- labels Map<String,String>
Labels as key value pairs.
- location String
- name String
Immutable. The name of the NFS share.
- project String
- requested
Size StringGib The requested size, in GiB.
- storage
Type NfsShare Storage Type Immutable. The storage type of the underlying volume.
- allowed
Clients AllowedClient[] List of allowed access points.
- labels {[key: string]: string}
Labels as key value pairs.
- location string
- name string
Immutable. The name of the NFS share.
- project string
- requested
Size stringGib The requested size, in GiB.
- storage
Type NfsShare Storage Type Immutable. The storage type of the underlying volume.
- allowed_
clients Sequence[AllowedClient Args] List of allowed access points.
- labels Mapping[str, str]
Labels as key value pairs.
- location str
- name str
Immutable. The name of the NFS share.
- project str
- requested_
size_ strgib The requested size, in GiB.
- storage_
type NfsShare Storage Type Immutable. The storage type of the underlying volume.
- allowed
Clients List<Property Map> List of allowed access points.
- labels Map<String>
Labels as key value pairs.
- location String
- name String
Immutable. The name of the NFS share.
- project String
- requested
Size StringGib The requested size, in GiB.
- storage
Type "STORAGE_TYPE_UNSPECIFIED" | "SSD" | "HDD" Immutable. The storage type of the underlying volume.
Outputs
All input properties are implicitly available as output properties. Additionally, the NfsShare resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- string
An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use
id
instead.- State string
The state of the NFS share.
- Volume string
The underlying volume of the share. Created automatically during provisioning.
- Id string
The provider-assigned unique ID for this managed resource.
- string
An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use
id
instead.- State string
The state of the NFS share.
- Volume string
The underlying volume of the share. Created automatically during provisioning.
- id String
The provider-assigned unique ID for this managed resource.
- String
An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use
id
instead.- state String
The state of the NFS share.
- volume String
The underlying volume of the share. Created automatically during provisioning.
- id string
The provider-assigned unique ID for this managed resource.
- string
An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use
id
instead.- state string
The state of the NFS share.
- volume string
The underlying volume of the share. Created automatically during provisioning.
- id str
The provider-assigned unique ID for this managed resource.
- str
An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use
id
instead.- state str
The state of the NFS share.
- volume str
The underlying volume of the share. Created automatically during provisioning.
- id String
The provider-assigned unique ID for this managed resource.
- String
An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use
id
instead.- state String
The state of the NFS share.
- volume String
The underlying volume of the share. Created automatically during provisioning.
Supporting Types
AllowedClient, AllowedClientArgs
- Allow
Dev bool Allow dev flag. Which controls whether to allow creation of devices.
- Allow
Suid bool Allow the setuid flag.
- Allowed
Clients stringCidr The subnet of IP addresses permitted to access the share.
- Mount
Permissions Pulumi.Google Native. Bare Metal Solution. V2. Allowed Client Mount Permissions Mount permissions.
- Network string
The network the access point sits on.
- No
Root boolSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- Allow
Dev bool Allow dev flag. Which controls whether to allow creation of devices.
- Allow
Suid bool Allow the setuid flag.
- Allowed
Clients stringCidr The subnet of IP addresses permitted to access the share.
- Mount
Permissions AllowedClient Mount Permissions Mount permissions.
- Network string
The network the access point sits on.
- No
Root boolSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- allow
Dev Boolean Allow dev flag. Which controls whether to allow creation of devices.
- allow
Suid Boolean Allow the setuid flag.
- allowed
Clients StringCidr The subnet of IP addresses permitted to access the share.
- mount
Permissions AllowedClient Mount Permissions Mount permissions.
- network String
The network the access point sits on.
- no
Root BooleanSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- allow
Dev boolean Allow dev flag. Which controls whether to allow creation of devices.
- allow
Suid boolean Allow the setuid flag.
- allowed
Clients stringCidr The subnet of IP addresses permitted to access the share.
- mount
Permissions AllowedClient Mount Permissions Mount permissions.
- network string
The network the access point sits on.
- no
Root booleanSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- allow_
dev bool Allow dev flag. Which controls whether to allow creation of devices.
- allow_
suid bool Allow the setuid flag.
- allowed_
clients_ strcidr The subnet of IP addresses permitted to access the share.
- mount_
permissions AllowedClient Mount Permissions Mount permissions.
- network str
The network the access point sits on.
- no_
root_ boolsquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- allow
Dev Boolean Allow dev flag. Which controls whether to allow creation of devices.
- allow
Suid Boolean Allow the setuid flag.
- allowed
Clients StringCidr The subnet of IP addresses permitted to access the share.
- mount
Permissions "MOUNT_PERMISSIONS_UNSPECIFIED" | "READ" | "READ_WRITE" Mount permissions.
- network String
The network the access point sits on.
- no
Root BooleanSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
AllowedClientMountPermissions, AllowedClientMountPermissionsArgs
- Mount
Permissions Unspecified - MOUNT_PERMISSIONS_UNSPECIFIED
Permissions were not specified.
- Read
- READ
NFS share can be mount with read-only permissions.
- Read
Write - READ_WRITE
NFS share can be mount with read-write permissions.
- Allowed
Client Mount Permissions Mount Permissions Unspecified - MOUNT_PERMISSIONS_UNSPECIFIED
Permissions were not specified.
- Allowed
Client Mount Permissions Read - READ
NFS share can be mount with read-only permissions.
- Allowed
Client Mount Permissions Read Write - READ_WRITE
NFS share can be mount with read-write permissions.
- Mount
Permissions Unspecified - MOUNT_PERMISSIONS_UNSPECIFIED
Permissions were not specified.
- Read
- READ
NFS share can be mount with read-only permissions.
- Read
Write - READ_WRITE
NFS share can be mount with read-write permissions.
- Mount
Permissions Unspecified - MOUNT_PERMISSIONS_UNSPECIFIED
Permissions were not specified.
- Read
- READ
NFS share can be mount with read-only permissions.
- Read
Write - READ_WRITE
NFS share can be mount with read-write permissions.
- MOUNT_PERMISSIONS_UNSPECIFIED
- MOUNT_PERMISSIONS_UNSPECIFIED
Permissions were not specified.
- READ
- READ
NFS share can be mount with read-only permissions.
- READ_WRITE
- READ_WRITE
NFS share can be mount with read-write permissions.
- "MOUNT_PERMISSIONS_UNSPECIFIED"
- MOUNT_PERMISSIONS_UNSPECIFIED
Permissions were not specified.
- "READ"
- READ
NFS share can be mount with read-only permissions.
- "READ_WRITE"
- READ_WRITE
NFS share can be mount with read-write permissions.
AllowedClientResponse, AllowedClientResponseArgs
- Allow
Dev bool Allow dev flag. Which controls whether to allow creation of devices.
- Allow
Suid bool Allow the setuid flag.
- Allowed
Clients stringCidr The subnet of IP addresses permitted to access the share.
- Mount
Permissions string Mount permissions.
- Network string
The network the access point sits on.
- Nfs
Path string The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
- No
Root boolSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- string
The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
- Allow
Dev bool Allow dev flag. Which controls whether to allow creation of devices.
- Allow
Suid bool Allow the setuid flag.
- Allowed
Clients stringCidr The subnet of IP addresses permitted to access the share.
- Mount
Permissions string Mount permissions.
- Network string
The network the access point sits on.
- Nfs
Path string The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
- No
Root boolSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- string
The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
- allow
Dev Boolean Allow dev flag. Which controls whether to allow creation of devices.
- allow
Suid Boolean Allow the setuid flag.
- allowed
Clients StringCidr The subnet of IP addresses permitted to access the share.
- mount
Permissions String Mount permissions.
- network String
The network the access point sits on.
- nfs
Path String The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
- no
Root BooleanSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- String
The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
- allow
Dev boolean Allow dev flag. Which controls whether to allow creation of devices.
- allow
Suid boolean Allow the setuid flag.
- allowed
Clients stringCidr The subnet of IP addresses permitted to access the share.
- mount
Permissions string Mount permissions.
- network string
The network the access point sits on.
- nfs
Path string The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
- no
Root booleanSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- string
The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
- allow_
dev bool Allow dev flag. Which controls whether to allow creation of devices.
- allow_
suid bool Allow the setuid flag.
- allowed_
clients_ strcidr The subnet of IP addresses permitted to access the share.
- mount_
permissions str Mount permissions.
- network str
The network the access point sits on.
- nfs_
path str The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
- no_
root_ boolsquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- str
The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
- allow
Dev Boolean Allow dev flag. Which controls whether to allow creation of devices.
- allow
Suid Boolean Allow the setuid flag.
- allowed
Clients StringCidr The subnet of IP addresses permitted to access the share.
- mount
Permissions String Mount permissions.
- network String
The network the access point sits on.
- nfs
Path String The path to access NFS, in format shareIP:/InstanceID InstanceID is the generated ID instead of customer provided name. example like "10.0.0.0:/g123456789-nfs001"
- no
Root BooleanSquash Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
- String
The IP address of the share on this network. Assigned automatically during provisioning based on the network's services_cidr.
NfsShareStorageType, NfsShareStorageTypeArgs
- Storage
Type Unspecified - STORAGE_TYPE_UNSPECIFIED
The storage type for this volume is unknown.
- Ssd
- SSD
The storage type for this volume is SSD.
- Hdd
- HDD
This storage type for this volume is HDD.
- Nfs
Share Storage Type Storage Type Unspecified - STORAGE_TYPE_UNSPECIFIED
The storage type for this volume is unknown.
- Nfs
Share Storage Type Ssd - SSD
The storage type for this volume is SSD.
- Nfs
Share Storage Type Hdd - HDD
This storage type for this volume is HDD.
- Storage
Type Unspecified - STORAGE_TYPE_UNSPECIFIED
The storage type for this volume is unknown.
- Ssd
- SSD
The storage type for this volume is SSD.
- Hdd
- HDD
This storage type for this volume is HDD.
- Storage
Type Unspecified - STORAGE_TYPE_UNSPECIFIED
The storage type for this volume is unknown.
- Ssd
- SSD
The storage type for this volume is SSD.
- Hdd
- HDD
This storage type for this volume is HDD.
- STORAGE_TYPE_UNSPECIFIED
- STORAGE_TYPE_UNSPECIFIED
The storage type for this volume is unknown.
- SSD
- SSD
The storage type for this volume is SSD.
- HDD
- HDD
This storage type for this volume is HDD.
- "STORAGE_TYPE_UNSPECIFIED"
- STORAGE_TYPE_UNSPECIFIED
The storage type for this volume is unknown.
- "SSD"
- SSD
The storage type for this volume is SSD.
- "HDD"
- HDD
This storage type for this volume is HDD.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.