Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.file/v1beta1.Share
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a share. Auto-naming is currently not supported for this resource.
Create Share Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Share(name: string, args: ShareArgs, opts?: CustomResourceOptions);
@overload
def Share(resource_name: str,
args: ShareArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Share(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
share_id: Optional[str] = None,
backup: Optional[str] = None,
capacity_gb: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
mount_name: Optional[str] = None,
nfs_export_options: Optional[Sequence[NfsExportOptionsArgs]] = None,
project: Optional[str] = None)
func NewShare(ctx *Context, name string, args ShareArgs, opts ...ResourceOption) (*Share, error)
public Share(string name, ShareArgs args, CustomResourceOptions? opts = null)
type: google-native:file/v1beta1:Share
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ShareArgs
- 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 ShareArgs
- 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 ShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ShareArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var shareResource = new GoogleNative.File.V1Beta1.Share("shareResource", new()
{
InstanceId = "string",
ShareId = "string",
Backup = "string",
CapacityGb = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
MountName = "string",
NfsExportOptions = new[]
{
new GoogleNative.File.V1Beta1.Inputs.NfsExportOptionsArgs
{
AccessMode = GoogleNative.File.V1Beta1.NfsExportOptionsAccessMode.AccessModeUnspecified,
AnonGid = "string",
AnonUid = "string",
IpRanges = new[]
{
"string",
},
SecurityFlavors = new[]
{
GoogleNative.File.V1Beta1.NfsExportOptionsSecurityFlavorsItem.SecurityFlavorUnspecified,
},
SquashMode = GoogleNative.File.V1Beta1.NfsExportOptionsSquashMode.SquashModeUnspecified,
},
},
Project = "string",
});
example, err := filev1beta1.NewShare(ctx, "shareResource", &filev1beta1.ShareArgs{
InstanceId: pulumi.String("string"),
ShareId: pulumi.String("string"),
Backup: pulumi.String("string"),
CapacityGb: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
MountName: pulumi.String("string"),
NfsExportOptions: file.NfsExportOptionsArray{
&file.NfsExportOptionsArgs{
AccessMode: filev1beta1.NfsExportOptionsAccessModeAccessModeUnspecified,
AnonGid: pulumi.String("string"),
AnonUid: pulumi.String("string"),
IpRanges: pulumi.StringArray{
pulumi.String("string"),
},
SecurityFlavors: file.NfsExportOptionsSecurityFlavorsItemArray{
filev1beta1.NfsExportOptionsSecurityFlavorsItemSecurityFlavorUnspecified,
},
SquashMode: filev1beta1.NfsExportOptionsSquashModeSquashModeUnspecified,
},
},
Project: pulumi.String("string"),
})
var shareResource = new Share("shareResource", ShareArgs.builder()
.instanceId("string")
.shareId("string")
.backup("string")
.capacityGb("string")
.description("string")
.labels(Map.of("string", "string"))
.location("string")
.mountName("string")
.nfsExportOptions(NfsExportOptionsArgs.builder()
.accessMode("ACCESS_MODE_UNSPECIFIED")
.anonGid("string")
.anonUid("string")
.ipRanges("string")
.securityFlavors("SECURITY_FLAVOR_UNSPECIFIED")
.squashMode("SQUASH_MODE_UNSPECIFIED")
.build())
.project("string")
.build());
share_resource = google_native.file.v1beta1.Share("shareResource",
instance_id="string",
share_id="string",
backup="string",
capacity_gb="string",
description="string",
labels={
"string": "string",
},
location="string",
mount_name="string",
nfs_export_options=[google_native.file.v1beta1.NfsExportOptionsArgs(
access_mode=google_native.file.v1beta1.NfsExportOptionsAccessMode.ACCESS_MODE_UNSPECIFIED,
anon_gid="string",
anon_uid="string",
ip_ranges=["string"],
security_flavors=[google_native.file.v1beta1.NfsExportOptionsSecurityFlavorsItem.SECURITY_FLAVOR_UNSPECIFIED],
squash_mode=google_native.file.v1beta1.NfsExportOptionsSquashMode.SQUASH_MODE_UNSPECIFIED,
)],
project="string")
const shareResource = new google_native.file.v1beta1.Share("shareResource", {
instanceId: "string",
shareId: "string",
backup: "string",
capacityGb: "string",
description: "string",
labels: {
string: "string",
},
location: "string",
mountName: "string",
nfsExportOptions: [{
accessMode: google_native.file.v1beta1.NfsExportOptionsAccessMode.AccessModeUnspecified,
anonGid: "string",
anonUid: "string",
ipRanges: ["string"],
securityFlavors: [google_native.file.v1beta1.NfsExportOptionsSecurityFlavorsItem.SecurityFlavorUnspecified],
squashMode: google_native.file.v1beta1.NfsExportOptionsSquashMode.SquashModeUnspecified,
}],
project: "string",
});
type: google-native:file/v1beta1:Share
properties:
backup: string
capacityGb: string
description: string
instanceId: string
labels:
string: string
location: string
mountName: string
nfsExportOptions:
- accessMode: ACCESS_MODE_UNSPECIFIED
anonGid: string
anonUid: string
ipRanges:
- string
securityFlavors:
- SECURITY_FLAVOR_UNSPECIFIED
squashMode: SQUASH_MODE_UNSPECIFIED
project: string
shareId: string
Share 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 Share resource accepts the following input properties:
- Instance
Id string - string
- Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- Backup string
- Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.
- Capacity
Gb string - File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
- Description string
- A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
- Labels Dictionary<string, string>
- Resource labels to represent user provided metadata.
- Location string
- Mount
Name string - The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- Nfs
Export List<Pulumi.Options Google Native. File. V1Beta1. Inputs. Nfs Export Options> - Nfs Export Options. There is a limit of 10 export options per file share.
- Project string
- Instance
Id string - string
- Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- Backup string
- Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.
- Capacity
Gb string - File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
- Description string
- A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
- Labels map[string]string
- Resource labels to represent user provided metadata.
- Location string
- Mount
Name string - The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- Nfs
Export []NfsOptions Export Options Args - Nfs Export Options. There is a limit of 10 export options per file share.
- Project string
- instance
Id String - String
- Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- backup String
- Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.
- capacity
Gb String - File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
- description String
- A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
- labels Map<String,String>
- Resource labels to represent user provided metadata.
- location String
- mount
Name String - The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- nfs
Export List<NfsOptions Export Options> - Nfs Export Options. There is a limit of 10 export options per file share.
- project String
- instance
Id string - string
- Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- backup string
- Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.
- capacity
Gb string - File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
- description string
- A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
- labels {[key: string]: string}
- Resource labels to represent user provided metadata.
- location string
- mount
Name string - The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- nfs
Export NfsOptions Export Options[] - Nfs Export Options. There is a limit of 10 export options per file share.
- project string
- instance_
id str - str
- Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- backup str
- Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.
- capacity_
gb str - File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
- description str
- A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
- labels Mapping[str, str]
- Resource labels to represent user provided metadata.
- location str
- mount_
name str - The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- nfs_
export_ Sequence[Nfsoptions Export Options Args] - Nfs Export Options. There is a limit of 10 export options per file share.
- project str
- instance
Id String - String
- Required. The ID to use for the share. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- backup String
- Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.
- capacity
Gb String - File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
- description String
- A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
- labels Map<String>
- Resource labels to represent user provided metadata.
- location String
- mount
Name String - The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- nfs
Export List<Property Map>Options - Nfs Export Options. There is a limit of 10 export options per file share.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Share resource produces the following output properties:
- Create
Time string - The time when the share was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the share, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}
. - State string
- The share state.
- Create
Time string - The time when the share was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the share, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}
. - State string
- The share state.
- create
Time String - The time when the share was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the share, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}
. - state String
- The share state.
- create
Time string - The time when the share was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the share, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}
. - state string
- The share state.
- create_
time str - The time when the share was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name of the share, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}
. - state str
- The share state.
- create
Time String - The time when the share was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the share, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}
. - state String
- The share state.
Supporting Types
NfsExportOptions, NfsExportOptionsArgs
- Access
Mode Pulumi.Google Native. File. V1Beta1. Nfs Export Options Access Mode - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- Anon
Gid string - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- Anon
Uid string - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- Ip
Ranges List<string> - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - Security
Flavors List<Pulumi.Google Native. File. V1Beta1. Nfs Export Options Security Flavors Item> - The security flavors allowed for mount operations. The default is AUTH_SYS.
- Squash
Mode Pulumi.Google Native. File. V1Beta1. Nfs Export Options Squash Mode - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- Access
Mode NfsExport Options Access Mode - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- Anon
Gid string - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- Anon
Uid string - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- Ip
Ranges []string - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - Security
Flavors []NfsExport Options Security Flavors Item - The security flavors allowed for mount operations. The default is AUTH_SYS.
- Squash
Mode NfsExport Options Squash Mode - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- access
Mode NfsExport Options Access Mode - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- anon
Gid String - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- anon
Uid String - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- ip
Ranges List<String> - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - security
Flavors List<NfsExport Options Security Flavors Item> - The security flavors allowed for mount operations. The default is AUTH_SYS.
- squash
Mode NfsExport Options Squash Mode - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- access
Mode NfsExport Options Access Mode - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- anon
Gid string - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- anon
Uid string - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- ip
Ranges string[] - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - security
Flavors NfsExport Options Security Flavors Item[] - The security flavors allowed for mount operations. The default is AUTH_SYS.
- squash
Mode NfsExport Options Squash Mode - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- access_
mode NfsExport Options Access Mode - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- anon_
gid str - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- anon_
uid str - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- ip_
ranges Sequence[str] - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - security_
flavors Sequence[NfsExport Options Security Flavors Item] - The security flavors allowed for mount operations. The default is AUTH_SYS.
- squash_
mode NfsExport Options Squash Mode - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- access
Mode "ACCESS_MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE" - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- anon
Gid String - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- anon
Uid String - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- ip
Ranges List<String> - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - security
Flavors List<"SECURITY_FLAVOR_UNSPECIFIED" | "AUTH_SYS" | "KRB5" | "KRB5I" | "KRB5P"> - The security flavors allowed for mount operations. The default is AUTH_SYS.
- squash
Mode "SQUASH_MODE_UNSPECIFIED" | "NO_ROOT_SQUASH" | "ROOT_SQUASH" - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
NfsExportOptionsAccessMode, NfsExportOptionsAccessModeArgs
- Access
Mode Unspecified - ACCESS_MODE_UNSPECIFIEDAccessMode not set.
- Read
Only - READ_ONLYThe client can only read the file share.
- Read
Write - READ_WRITEThe client can read and write the file share (default).
- Nfs
Export Options Access Mode Access Mode Unspecified - ACCESS_MODE_UNSPECIFIEDAccessMode not set.
- Nfs
Export Options Access Mode Read Only - READ_ONLYThe client can only read the file share.
- Nfs
Export Options Access Mode Read Write - READ_WRITEThe client can read and write the file share (default).
- Access
Mode Unspecified - ACCESS_MODE_UNSPECIFIEDAccessMode not set.
- Read
Only - READ_ONLYThe client can only read the file share.
- Read
Write - READ_WRITEThe client can read and write the file share (default).
- Access
Mode Unspecified - ACCESS_MODE_UNSPECIFIEDAccessMode not set.
- Read
Only - READ_ONLYThe client can only read the file share.
- Read
Write - READ_WRITEThe client can read and write the file share (default).
- ACCESS_MODE_UNSPECIFIED
- ACCESS_MODE_UNSPECIFIEDAccessMode not set.
- READ_ONLY
- READ_ONLYThe client can only read the file share.
- READ_WRITE
- READ_WRITEThe client can read and write the file share (default).
- "ACCESS_MODE_UNSPECIFIED"
- ACCESS_MODE_UNSPECIFIEDAccessMode not set.
- "READ_ONLY"
- READ_ONLYThe client can only read the file share.
- "READ_WRITE"
- READ_WRITEThe client can read and write the file share (default).
NfsExportOptionsResponse, NfsExportOptionsResponseArgs
- Access
Mode string - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- Anon
Gid string - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- Anon
Uid string - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- Ip
Ranges List<string> - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - Security
Flavors List<string> - The security flavors allowed for mount operations. The default is AUTH_SYS.
- Squash
Mode string - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- Access
Mode string - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- Anon
Gid string - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- Anon
Uid string - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- Ip
Ranges []string - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - Security
Flavors []string - The security flavors allowed for mount operations. The default is AUTH_SYS.
- Squash
Mode string - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- access
Mode String - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- anon
Gid String - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- anon
Uid String - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- ip
Ranges List<String> - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - security
Flavors List<String> - The security flavors allowed for mount operations. The default is AUTH_SYS.
- squash
Mode String - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- access
Mode string - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- anon
Gid string - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- anon
Uid string - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- ip
Ranges string[] - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - security
Flavors string[] - The security flavors allowed for mount operations. The default is AUTH_SYS.
- squash
Mode string - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- access_
mode str - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- anon_
gid str - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- anon_
uid str - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- ip_
ranges Sequence[str] - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - security_
flavors Sequence[str] - The security flavors allowed for mount operations. The default is AUTH_SYS.
- squash_
mode str - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
- access
Mode String - Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
- anon
Gid String - An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- anon
Uid String - An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
- ip
Ranges List<String> - List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format{octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. - security
Flavors List<String> - The security flavors allowed for mount operations. The default is AUTH_SYS.
- squash
Mode String - Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
NfsExportOptionsSecurityFlavorsItem, NfsExportOptionsSecurityFlavorsItemArgs
- Security
Flavor Unspecified - SECURITY_FLAVOR_UNSPECIFIEDSecurityFlavor not set.
- Auth
Sys - AUTH_SYSThe user's UNIX user-id and group-ids are transferred "in the clear" (not encrypted) on the network, unauthenticated by the NFS server (default).
- Krb5
- KRB5End-user authentication through Kerberos V5.
- Krb5i
- KRB5Ikrb5 plus integrity protection (data packets are tamper proof).
- Krb5p
- KRB5Pkrb5i plus privacy protection (data packets are tamper proof and encrypted).
- Nfs
Export Options Security Flavors Item Security Flavor Unspecified - SECURITY_FLAVOR_UNSPECIFIEDSecurityFlavor not set.
- Nfs
Export Options Security Flavors Item Auth Sys - AUTH_SYSThe user's UNIX user-id and group-ids are transferred "in the clear" (not encrypted) on the network, unauthenticated by the NFS server (default).
- Nfs
Export Options Security Flavors Item Krb5 - KRB5End-user authentication through Kerberos V5.
- Nfs
Export Options Security Flavors Item Krb5i - KRB5Ikrb5 plus integrity protection (data packets are tamper proof).
- Nfs
Export Options Security Flavors Item Krb5p - KRB5Pkrb5i plus privacy protection (data packets are tamper proof and encrypted).
- Security
Flavor Unspecified - SECURITY_FLAVOR_UNSPECIFIEDSecurityFlavor not set.
- Auth
Sys - AUTH_SYSThe user's UNIX user-id and group-ids are transferred "in the clear" (not encrypted) on the network, unauthenticated by the NFS server (default).
- Krb5
- KRB5End-user authentication through Kerberos V5.
- Krb5i
- KRB5Ikrb5 plus integrity protection (data packets are tamper proof).
- Krb5p
- KRB5Pkrb5i plus privacy protection (data packets are tamper proof and encrypted).
- Security
Flavor Unspecified - SECURITY_FLAVOR_UNSPECIFIEDSecurityFlavor not set.
- Auth
Sys - AUTH_SYSThe user's UNIX user-id and group-ids are transferred "in the clear" (not encrypted) on the network, unauthenticated by the NFS server (default).
- Krb5
- KRB5End-user authentication through Kerberos V5.
- Krb5i
- KRB5Ikrb5 plus integrity protection (data packets are tamper proof).
- Krb5p
- KRB5Pkrb5i plus privacy protection (data packets are tamper proof and encrypted).
- SECURITY_FLAVOR_UNSPECIFIED
- SECURITY_FLAVOR_UNSPECIFIEDSecurityFlavor not set.
- AUTH_SYS
- AUTH_SYSThe user's UNIX user-id and group-ids are transferred "in the clear" (not encrypted) on the network, unauthenticated by the NFS server (default).
- KRB5
- KRB5End-user authentication through Kerberos V5.
- KRB5I
- KRB5Ikrb5 plus integrity protection (data packets are tamper proof).
- KRB5P
- KRB5Pkrb5i plus privacy protection (data packets are tamper proof and encrypted).
- "SECURITY_FLAVOR_UNSPECIFIED"
- SECURITY_FLAVOR_UNSPECIFIEDSecurityFlavor not set.
- "AUTH_SYS"
- AUTH_SYSThe user's UNIX user-id and group-ids are transferred "in the clear" (not encrypted) on the network, unauthenticated by the NFS server (default).
- "KRB5"
- KRB5End-user authentication through Kerberos V5.
- "KRB5I"
- KRB5Ikrb5 plus integrity protection (data packets are tamper proof).
- "KRB5P"
- KRB5Pkrb5i plus privacy protection (data packets are tamper proof and encrypted).
NfsExportOptionsSquashMode, NfsExportOptionsSquashModeArgs
- Squash
Mode Unspecified - SQUASH_MODE_UNSPECIFIEDSquashMode not set.
- No
Root Squash - NO_ROOT_SQUASHThe Root user has root access to the file share (default).
- Root
Squash - ROOT_SQUASHThe Root user has squashed access to the anonymous uid/gid.
- Nfs
Export Options Squash Mode Squash Mode Unspecified - SQUASH_MODE_UNSPECIFIEDSquashMode not set.
- Nfs
Export Options Squash Mode No Root Squash - NO_ROOT_SQUASHThe Root user has root access to the file share (default).
- Nfs
Export Options Squash Mode Root Squash - ROOT_SQUASHThe Root user has squashed access to the anonymous uid/gid.
- Squash
Mode Unspecified - SQUASH_MODE_UNSPECIFIEDSquashMode not set.
- No
Root Squash - NO_ROOT_SQUASHThe Root user has root access to the file share (default).
- Root
Squash - ROOT_SQUASHThe Root user has squashed access to the anonymous uid/gid.
- Squash
Mode Unspecified - SQUASH_MODE_UNSPECIFIEDSquashMode not set.
- No
Root Squash - NO_ROOT_SQUASHThe Root user has root access to the file share (default).
- Root
Squash - ROOT_SQUASHThe Root user has squashed access to the anonymous uid/gid.
- SQUASH_MODE_UNSPECIFIED
- SQUASH_MODE_UNSPECIFIEDSquashMode not set.
- NO_ROOT_SQUASH
- NO_ROOT_SQUASHThe Root user has root access to the file share (default).
- ROOT_SQUASH
- ROOT_SQUASHThe Root user has squashed access to the anonymous uid/gid.
- "SQUASH_MODE_UNSPECIFIED"
- SQUASH_MODE_UNSPECIFIEDSquashMode not set.
- "NO_ROOT_SQUASH"
- NO_ROOT_SQUASHThe Root user has root access to the file share (default).
- "ROOT_SQUASH"
- ROOT_SQUASHThe Root user has squashed access to the anonymous uid/gid.
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.