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
@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)
public Share(String name, ShareArgs args)
public Share(String name, ShareArgs args, CustomResourceOptions options)
type: google-native:file/v1beta1:Share
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_file_v1beta1_share" "name" {
# resource properties
}
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"),
})
resource "google-native_file_v1beta1_share" "shareResource" {
lifecycle {
create_before_destroy = true
}
instance_id = "string"
share_id = "string"
backup = "string"
capacity_gb = "string"
description = "string"
labels = {
"string" = "string"
}
location = "string"
mount_name = "string"
nfs_export_options {
access_mode = "ACCESS_MODE_UNSPECIFIED"
anon_gid = "string"
anon_uid = "string"
ip_ranges = ["string"]
security_flavors = ["SECURITY_FLAVOR_UNSPECIFIED"]
squash_mode = "SQUASH_MODE_UNSPECIFIED"
}
project = "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(com.pulumi.googlenative.file_v1beta1.inputs.NfsExportOptionsArgs.builder()
.accessMode(com.pulumi.googlenative.file_v1beta1.enums.NfsExportOptionsAccessMode.AccessModeUnspecified)
.anonGid("string")
.anonUid("string")
.ipRanges("string")
.securityFlavors("SECURITY_FLAVOR_UNSPECIFIED")
.squashMode(com.pulumi.googlenative.file_v1beta1.enums.NfsExportOptionsSquashMode.SquashModeUnspecified)
.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=[{
"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.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Share resource accepts the following input properties:
- InstanceId
string
- ShareId
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.
- CapacityGb
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
- MountName
string
- The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- NfsExportOptions
List<Pulumi.GoogleNative.File.V1Beta1.Inputs.NfsExportOptions>
- Nfs Export Options. There is a limit of 10 export options per file share.
- Project
string
- InstanceId
string
- ShareId
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.
- CapacityGb
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
- MountName
string
- The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- NfsExportOptions
[]NfsExportOptionsArgs
- Nfs Export Options. There is a limit of 10 export options per file share.
- Project
string
- instance_id
string
- share_id
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_options
list(object)
- Nfs Export Options. There is a limit of 10 export options per file share.
- project
string
- instanceId
String
- shareId
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.
- capacityGb
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
- mountName
String
- The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- nfsExportOptions
List<NfsExportOptions>
- Nfs Export Options. There is a limit of 10 export options per file share.
- project
String
- instanceId
string
- shareId
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.
- capacityGb
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
- mountName
string
- The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- nfsExportOptions
NfsExportOptions[]
- Nfs Export Options. There is a limit of 10 export options per file share.
- project
string
- instance_id
str
- share_id
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_options
Sequence[NfsExportOptionsArgs]
- Nfs Export Options. There is a limit of 10 export options per file share.
- project
str
- instanceId
String
- shareId
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.
- capacityGb
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
- mountName
String
- The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
- nfsExportOptions
List<Property Map>
- 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:
- CreateTime
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.
- CreateTime
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.
- createTime
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.
- createTime
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.
- createTime
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.
Look up Existing Share Resource
Get an existing Share resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static Share get(String name, Output<String> id, CustomResourceOptions options)
resources: existingShare: type: google-native:file/v1beta1:Share get: id: ${id}
import {
to = google-native_file_v1beta1_share.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
ShareState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
NfsExportOptions, NfsExportOptionsArgs
NFS export options specifications.- AccessMode
Pulumi.GoogleNative.File.V1Beta1.NfsExportOptionsAccessMode
- 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.
- AnonGid
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.
- AnonUid
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.
- IpRanges
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. - SecurityFlavors
List<Pulumi.GoogleNative.File.V1Beta1.NfsExportOptionsSecurityFlavorsItem>
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- SquashMode
Pulumi.GoogleNative.File.V1Beta1.NfsExportOptionsSquashMode
- 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.
- AccessMode
NfsExportOptionsAccessMode
- 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.
- AnonGid
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.
- AnonUid
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.
- IpRanges
[]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. - SecurityFlavors
[]NfsExportOptionsSecurityFlavorsItem
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- SquashMode
NfsExportOptionsSquashMode
- 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.
- accessMode
NfsExportOptionsAccessMode
- 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.
- anonGid
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.
- anonUid
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.
- ipRanges
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. - securityFlavors
List<NfsExportOptionsSecurityFlavorsItem>
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- squashMode
NfsExportOptionsSquashMode
- 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.
- accessMode
NfsExportOptionsAccessMode
- 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.
- anonGid
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.
- anonUid
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.
- ipRanges
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. - securityFlavors
NfsExportOptionsSecurityFlavorsItem[]
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- squashMode
NfsExportOptionsSquashMode
- 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
NfsExportOptionsAccessMode
- 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[NfsExportOptionsSecurityFlavorsItem]
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- squash_mode
NfsExportOptionsSquashMode
- 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.
- accessMode
"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.
- anonGid
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.
- anonUid
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.
- ipRanges
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. - securityFlavors
List<"SECURITY_FLAVOR_UNSPECIFIED" | "AUTH_SYS" | "KRB5" | "KRB5I" | "KRB5P">
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- squashMode
"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
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.| Name | Value | Description |
|---|
| AccessModeUnspecified | ACCESS_MODE_UNSPECIFIED | AccessMode not set. |
| ReadOnly | READ_ONLY | The client can only read the file share. |
| ReadWrite | READ_WRITE | The client can read and write the file share (default). |
| Name | Value | Description |
|---|
| NfsExportOptionsAccessModeAccessModeUnspecified | ACCESS_MODE_UNSPECIFIED | AccessMode not set. |
| NfsExportOptionsAccessModeReadOnly | READ_ONLY | The client can only read the file share. |
| NfsExportOptionsAccessModeReadWrite | READ_WRITE | The client can read and write the file share (default). |
| Value | Description |
|---|
ACCESS_MODE_UNSPECIFIED | AccessMode not set. |
READ_ONLY | The client can only read the file share. |
READ_WRITE | The client can read and write the file share (default). |
| Name | Value | Description |
|---|
| AccessModeUnspecified | ACCESS_MODE_UNSPECIFIED | AccessMode not set. |
| ReadOnly | READ_ONLY | The client can only read the file share. |
| ReadWrite | READ_WRITE | The client can read and write the file share (default). |
| Name | Value | Description |
|---|
| AccessModeUnspecified | ACCESS_MODE_UNSPECIFIED | AccessMode not set. |
| ReadOnly | READ_ONLY | The client can only read the file share. |
| ReadWrite | READ_WRITE | The client can read and write the file share (default). |
| Name | Value | Description |
|---|
| ACCESS_MODE_UNSPECIFIED | ACCESS_MODE_UNSPECIFIED | AccessMode not set. |
| READ_ONLY | READ_ONLY | The client can only read the file share. |
| READ_WRITE | READ_WRITE | The client can read and write the file share (default). |
| Value | Description |
|---|
ACCESS_MODE_UNSPECIFIED | AccessMode not set. |
READ_ONLY | The client can only read the file share. |
READ_WRITE | The client can read and write the file share (default). |
NfsExportOptionsResponse, NfsExportOptionsResponseArgs
NFS export options specifications.- AccessMode
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.
- AnonGid
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.
- AnonUid
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.
- IpRanges
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. - SecurityFlavors
List<string>
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- SquashMode
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.
- AccessMode
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.
- AnonGid
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.
- AnonUid
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.
- IpRanges
[]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. - SecurityFlavors
[]string
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- SquashMode
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.
- accessMode
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.
- anonGid
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.
- anonUid
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.
- ipRanges
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. - securityFlavors
List<String>
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- squashMode
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.
- accessMode
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.
- anonGid
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.
- anonUid
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.
- ipRanges
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. - securityFlavors
string[]
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- squashMode
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.
- accessMode
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.
- anonGid
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.
- anonUid
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.
- ipRanges
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. - securityFlavors
List<String>
- The security flavors allowed for mount operations. The default is AUTH_SYS.
- squashMode
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
| Name | Value | Description |
|---|
| SecurityFlavorUnspecified | SECURITY_FLAVOR_UNSPECIFIED | SecurityFlavor not set. |
| AuthSys | AUTH_SYS | The 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 | KRB5 | End-user authentication through Kerberos V5. |
| Krb5i | KRB5I | krb5 plus integrity protection (data packets are tamper proof). |
| Krb5p | KRB5P | krb5i plus privacy protection (data packets are tamper proof and encrypted). |
| Name | Value | Description |
|---|
| NfsExportOptionsSecurityFlavorsItemSecurityFlavorUnspecified | SECURITY_FLAVOR_UNSPECIFIED | SecurityFlavor not set. |
| NfsExportOptionsSecurityFlavorsItemAuthSys | AUTH_SYS | The user's UNIX user-id and group-ids are transferred "in the clear" (not encrypted) on the network, unauthenticated by the NFS server (default). |
| NfsExportOptionsSecurityFlavorsItemKrb5 | KRB5 | End-user authentication through Kerberos V5. |
| NfsExportOptionsSecurityFlavorsItemKrb5i | KRB5I | krb5 plus integrity protection (data packets are tamper proof). |
| NfsExportOptionsSecurityFlavorsItemKrb5p | KRB5P | krb5i plus privacy protection (data packets are tamper proof and encrypted). |
| Value | Description |
|---|
SECURITY_FLAVOR_UNSPECIFIED | SecurityFlavor not set. |
AUTH_SYS | The 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 | End-user authentication through Kerberos V5. |
KRB5I | krb5 plus integrity protection (data packets are tamper proof). |
KRB5P | krb5i plus privacy protection (data packets are tamper proof and encrypted). |
| Name | Value | Description |
|---|
| SecurityFlavorUnspecified | SECURITY_FLAVOR_UNSPECIFIED | SecurityFlavor not set. |
| AuthSys | AUTH_SYS | The 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 | KRB5 | End-user authentication through Kerberos V5. |
| Krb5i | KRB5I | krb5 plus integrity protection (data packets are tamper proof). |
| Krb5p | KRB5P | krb5i plus privacy protection (data packets are tamper proof and encrypted). |
| Name | Value | Description |
|---|
| SecurityFlavorUnspecified | SECURITY_FLAVOR_UNSPECIFIED | SecurityFlavor not set. |
| AuthSys | AUTH_SYS | The 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 | KRB5 | End-user authentication through Kerberos V5. |
| Krb5i | KRB5I | krb5 plus integrity protection (data packets are tamper proof). |
| Krb5p | KRB5P | krb5i plus privacy protection (data packets are tamper proof and encrypted). |
| Name | Value | Description |
|---|
| SECURITY_FLAVOR_UNSPECIFIED | SECURITY_FLAVOR_UNSPECIFIED | SecurityFlavor not set. |
| AUTH_SYS | AUTH_SYS | The 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 | KRB5 | End-user authentication through Kerberos V5. |
| KRB5I | KRB5I | krb5 plus integrity protection (data packets are tamper proof). |
| KRB5P | KRB5P | krb5i plus privacy protection (data packets are tamper proof and encrypted). |
| Value | Description |
|---|
SECURITY_FLAVOR_UNSPECIFIED | SecurityFlavor not set. |
AUTH_SYS | The 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 | End-user authentication through Kerberos V5. |
KRB5I | krb5 plus integrity protection (data packets are tamper proof). |
KRB5P | krb5i plus privacy protection (data packets are tamper proof and encrypted). |
NfsExportOptionsSquashMode, NfsExportOptionsSquashModeArgs
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.| Name | Value | Description |
|---|
| SquashModeUnspecified | SQUASH_MODE_UNSPECIFIED | SquashMode not set. |
| NoRootSquash | NO_ROOT_SQUASH | The Root user has root access to the file share (default). |
| RootSquash | ROOT_SQUASH | The Root user has squashed access to the anonymous uid/gid. |
| Name | Value | Description |
|---|
| NfsExportOptionsSquashModeSquashModeUnspecified | SQUASH_MODE_UNSPECIFIED | SquashMode not set. |
| NfsExportOptionsSquashModeNoRootSquash | NO_ROOT_SQUASH | The Root user has root access to the file share (default). |
| NfsExportOptionsSquashModeRootSquash | ROOT_SQUASH | The Root user has squashed access to the anonymous uid/gid. |
| Value | Description |
|---|
SQUASH_MODE_UNSPECIFIED | SquashMode not set. |
NO_ROOT_SQUASH | The Root user has root access to the file share (default). |
ROOT_SQUASH | The Root user has squashed access to the anonymous uid/gid. |
| Name | Value | Description |
|---|
| SquashModeUnspecified | SQUASH_MODE_UNSPECIFIED | SquashMode not set. |
| NoRootSquash | NO_ROOT_SQUASH | The Root user has root access to the file share (default). |
| RootSquash | ROOT_SQUASH | The Root user has squashed access to the anonymous uid/gid. |
| Name | Value | Description |
|---|
| SquashModeUnspecified | SQUASH_MODE_UNSPECIFIED | SquashMode not set. |
| NoRootSquash | NO_ROOT_SQUASH | The Root user has root access to the file share (default). |
| RootSquash | ROOT_SQUASH | The Root user has squashed access to the anonymous uid/gid. |
| Name | Value | Description |
|---|
| SQUASH_MODE_UNSPECIFIED | SQUASH_MODE_UNSPECIFIED | SquashMode not set. |
| NO_ROOT_SQUASH | NO_ROOT_SQUASH | The Root user has root access to the file share (default). |
| ROOT_SQUASH | ROOT_SQUASH | The Root user has squashed access to the anonymous uid/gid. |
| Value | Description |
|---|
SQUASH_MODE_UNSPECIFIED | SquashMode not set. |
NO_ROOT_SQUASH | The Root user has root access to the file share (default). |
ROOT_SQUASH | The Root user has squashed access to the anonymous uid/gid. |
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0