published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel
Import
All versions
Use the pulumi import command:
Import the existing file storage by its UUID.
Import does not restore metadata: after import, list in it only the keys you want Terraform to manage.
A file storage accessible to all addresses of its subnet has a 0.0.0.0/0 access rule:
import it as selectel_filestorage_share_access_v2.
Set the project and pool containing the file storage.
export OS_DOMAIN_NAME=<domain_name>
export OS_USERNAME=
export OS_PASSWORD=
export INFRA_PROJECT_ID=<project_id>
export INFRA_REGION=
$ pulumi import selectel:index/filestorageShareV2:FilestorageShareV2 share_1 <share_uuid>
<domain_name>, <username>, and <password> are the arguments of the provider configuration.
Create FilestorageShareV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FilestorageShareV2(name: string, args: FilestorageShareV2Args, opts?: CustomResourceOptions);@overload
def FilestorageShareV2(resource_name: str,
args: FilestorageShareV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def FilestorageShareV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
share_proto: Optional[str] = None,
share_type: Optional[str] = None,
size: Optional[float] = None,
subnet_id: Optional[str] = None,
description: Optional[str] = None,
ip: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
timeouts: Optional[FilestorageShareV2TimeoutsArgs] = None)func NewFilestorageShareV2(ctx *Context, name string, args FilestorageShareV2Args, opts ...ResourceOption) (*FilestorageShareV2, error)public FilestorageShareV2(string name, FilestorageShareV2Args args, CustomResourceOptions? opts = null)
public FilestorageShareV2(String name, FilestorageShareV2Args args)
public FilestorageShareV2(String name, FilestorageShareV2Args args, CustomResourceOptions options)
type: selectel:FilestorageShareV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "selectel_filestorage_share_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FilestorageShareV2Args
- 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 FilestorageShareV2Args
- 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 FilestorageShareV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FilestorageShareV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FilestorageShareV2Args
- 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 filestorageShareV2Resource = new Selectel.FilestorageShareV2("filestorageShareV2Resource", new()
{
NetworkId = "string",
ProjectId = "string",
Region = "string",
ShareProto = "string",
ShareType = "string",
Size = 0.0,
SubnetId = "string",
Description = "string",
Ip = "string",
Metadata =
{
{ "string", "string" },
},
Name = "string",
Timeouts = new Selectel.Inputs.FilestorageShareV2TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := selectel.NewFilestorageShareV2(ctx, "filestorageShareV2Resource", &selectel.FilestorageShareV2Args{
NetworkId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
ShareProto: pulumi.String("string"),
ShareType: pulumi.String("string"),
Size: pulumi.Float64(0),
SubnetId: pulumi.String("string"),
Description: pulumi.String("string"),
Ip: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Timeouts: &selectel.FilestorageShareV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "selectel_filestorage_share_v2" "filestorageShareV2Resource" {
lifecycle {
create_before_destroy = true
}
network_id = "string"
project_id = "string"
region = "string"
share_proto = "string"
share_type = "string"
size = 0
subnet_id = "string"
description = "string"
ip = "string"
metadata = {
"string" = "string"
}
name = "string"
timeouts = {
create = "string"
delete = "string"
update = "string"
}
}
var filestorageShareV2Resource = new FilestorageShareV2("filestorageShareV2Resource", FilestorageShareV2Args.builder()
.networkId("string")
.projectId("string")
.region("string")
.shareProto("string")
.shareType("string")
.size(0.0)
.subnetId("string")
.description("string")
.ip("string")
.metadata(Map.of("string", "string"))
.name("string")
.timeouts(FilestorageShareV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
filestorage_share_v2_resource = selectel.FilestorageShareV2("filestorageShareV2Resource",
network_id="string",
project_id="string",
region="string",
share_proto="string",
share_type="string",
size=float(0),
subnet_id="string",
description="string",
ip="string",
metadata={
"string": "string",
},
name="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const filestorageShareV2Resource = new selectel.FilestorageShareV2("filestorageShareV2Resource", {
networkId: "string",
projectId: "string",
region: "string",
shareProto: "string",
shareType: "string",
size: 0,
subnetId: "string",
description: "string",
ip: "string",
metadata: {
string: "string",
},
name: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: selectel:FilestorageShareV2
properties:
description: string
ip: string
metadata:
string: string
name: string
networkId: string
projectId: string
region: string
shareProto: string
shareType: string
size: 0
subnetId: string
timeouts:
create: string
delete: string
update: string
FilestorageShareV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FilestorageShareV2 resource accepts the following input properties:
- Network
Id string - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - Region string
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - string
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - string
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - Size double
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - Subnet
Id string - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- Description string
- Ip string
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - Metadata Dictionary<string, string>
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - Name string
- Timeouts
Filestorage
Share V2Timeouts - Timeouts for file storage operations.
- Network
Id string - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - Region string
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - string
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - string
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - Size float64
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - Subnet
Id string - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- Description string
- Ip string
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - Metadata map[string]string
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - Name string
- Timeouts
Filestorage
Share V2Timeouts Args - Timeouts for file storage operations.
- network_
id string - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project_
id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region string
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - string
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - string
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size number
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - subnet_
id string - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- description string
- ip string
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata map(string)
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name string
- timeouts object
- Timeouts for file storage operations.
- network
Id String - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region String
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - String
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - String
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size Double
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - subnet
Id String - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- description String
- ip String
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata Map<String,String>
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name String
- timeouts
Filestorage
Share V2Timeouts - Timeouts for file storage operations.
- network
Id string - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region string
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - string
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - string
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size number
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - subnet
Id string - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- description string
- ip string
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata {[key: string]: string}
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name string
- timeouts
Filestorage
Share V2Timeouts - Timeouts for file storage operations.
- network_
id str - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project_
id str - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region str
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - str
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - str
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size float
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - subnet_
id str - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- description str
- ip str
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata Mapping[str, str]
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name str
- timeouts
Filestorage
Share V2Timeouts Args - Timeouts for file storage operations.
- network
Id String - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region String
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - String
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - String
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size Number
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - subnet
Id String - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- description String
- ip String
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata Map<String>
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name String
- timeouts Property Map
- Timeouts for file storage operations.
Outputs
All input properties are implicitly available as output properties. Additionally, the FilestorageShareV2 resource produces the following output properties:
- All
Metadata Dictionary<string, string> - All metadata of the file storage, including the keys added by the service.
- Availability
Zone string - Pool segment of the file storage.
- Export
Locations List<FilestorageShare V2Export Location> - Paths to mount the file storage.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the file storage.
- All
Metadata map[string]string - All metadata of the file storage, including the keys added by the service.
- Availability
Zone string - Pool segment of the file storage.
- Export
Locations []FilestorageShare V2Export Location - Paths to mount the file storage.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the file storage.
- all_
metadata map(string) - All metadata of the file storage, including the keys added by the service.
- availability_
zone string - Pool segment of the file storage.
- export_
locations list(object) - Paths to mount the file storage.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Status of the file storage.
- all
Metadata Map<String,String> - All metadata of the file storage, including the keys added by the service.
- availability
Zone String - Pool segment of the file storage.
- export
Locations List<FilestorageShare V2Export Location> - Paths to mount the file storage.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Status of the file storage.
- all
Metadata {[key: string]: string} - All metadata of the file storage, including the keys added by the service.
- availability
Zone string - Pool segment of the file storage.
- export
Locations FilestorageShare V2Export Location[] - Paths to mount the file storage.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Status of the file storage.
- all_
metadata Mapping[str, str] - All metadata of the file storage, including the keys added by the service.
- availability_
zone str - Pool segment of the file storage.
- export_
locations Sequence[FilestorageShare V2Export Location] - Paths to mount the file storage.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Status of the file storage.
- all
Metadata Map<String> - All metadata of the file storage, including the keys added by the service.
- availability
Zone String - Pool segment of the file storage.
- export
Locations List<Property Map> - Paths to mount the file storage.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Status of the file storage.
Look up Existing FilestorageShareV2 Resource
Get an existing FilestorageShareV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FilestorageShareV2State, opts?: CustomResourceOptions): FilestorageShareV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
all_metadata: Optional[Mapping[str, str]] = None,
availability_zone: Optional[str] = None,
description: Optional[str] = None,
export_locations: Optional[Sequence[FilestorageShareV2ExportLocationArgs]] = None,
ip: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
share_proto: Optional[str] = None,
share_type: Optional[str] = None,
size: Optional[float] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[FilestorageShareV2TimeoutsArgs] = None) -> FilestorageShareV2func GetFilestorageShareV2(ctx *Context, name string, id IDInput, state *FilestorageShareV2State, opts ...ResourceOption) (*FilestorageShareV2, error)public static FilestorageShareV2 Get(string name, Input<string> id, FilestorageShareV2State? state, CustomResourceOptions? opts = null)public static FilestorageShareV2 get(String name, Output<String> id, FilestorageShareV2State state, CustomResourceOptions options)resources: _: type: selectel:FilestorageShareV2 get: id: ${id}import {
to = selectel_filestorage_share_v2.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- All
Metadata Dictionary<string, string> - All metadata of the file storage, including the keys added by the service.
- Availability
Zone string - Pool segment of the file storage.
- Description string
- Export
Locations List<FilestorageShare V2Export Location> - Paths to mount the file storage.
- Ip string
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - Metadata Dictionary<string, string>
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - Name string
- Network
Id string - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - Region string
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - string
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - string
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - Size double
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - Status string
- Status of the file storage.
- Subnet
Id string - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- Timeouts
Filestorage
Share V2Timeouts - Timeouts for file storage operations.
- All
Metadata map[string]string - All metadata of the file storage, including the keys added by the service.
- Availability
Zone string - Pool segment of the file storage.
- Description string
- Export
Locations []FilestorageShare V2Export Location Args - Paths to mount the file storage.
- Ip string
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - Metadata map[string]string
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - Name string
- Network
Id string - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - Region string
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - string
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - string
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - Size float64
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - Status string
- Status of the file storage.
- Subnet
Id string - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- Timeouts
Filestorage
Share V2Timeouts Args - Timeouts for file storage operations.
- all_
metadata map(string) - All metadata of the file storage, including the keys added by the service.
- availability_
zone string - Pool segment of the file storage.
- description string
- export_
locations list(object) - Paths to mount the file storage.
- ip string
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata map(string)
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name string
- network_
id string - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project_
id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region string
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - string
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - string
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size number
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - status string
- Status of the file storage.
- subnet_
id string - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- timeouts object
- Timeouts for file storage operations.
- all
Metadata Map<String,String> - All metadata of the file storage, including the keys added by the service.
- availability
Zone String - Pool segment of the file storage.
- description String
- export
Locations List<FilestorageShare V2Export Location> - Paths to mount the file storage.
- ip String
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata Map<String,String>
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name String
- network
Id String - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region String
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - String
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - String
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size Double
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - status String
- Status of the file storage.
- subnet
Id String - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- timeouts
Filestorage
Share V2Timeouts - Timeouts for file storage operations.
- all
Metadata {[key: string]: string} - All metadata of the file storage, including the keys added by the service.
- availability
Zone string - Pool segment of the file storage.
- description string
- export
Locations FilestorageShare V2Export Location[] - Paths to mount the file storage.
- ip string
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata {[key: string]: string}
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name string
- network
Id string - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region string
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - string
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - string
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size number
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - status string
- Status of the file storage.
- subnet
Id string - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- timeouts
Filestorage
Share V2Timeouts - Timeouts for file storage operations.
- all_
metadata Mapping[str, str] - All metadata of the file storage, including the keys added by the service.
- availability_
zone str - Pool segment of the file storage.
- description str
- export_
locations Sequence[FilestorageShare V2Export Location Args] - Paths to mount the file storage.
- ip str
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata Mapping[str, str]
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name str
- network_
id str - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project_
id str - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region str
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - str
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - str
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size float
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - status str
- Status of the file storage.
- subnet_
id str - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- timeouts
Filestorage
Share V2Timeouts Args - Timeouts for file storage operations.
- all
Metadata Map<String> - All metadata of the file storage, including the keys added by the service.
- availability
Zone String - Pool segment of the file storage.
- description String
- export
Locations List<Property Map> - Paths to mount the file storage.
- ip String
- IP address of the file storage in the subnet. The format is an IPv4 address, for example,
192.168.199.10. When omitted, the first free address of the subnet is used. Changing this creates a new file storage. - metadata Map<String>
- Key-value pairs of the file storage. The resource manages only the keys set here; other keys are available in
all_metadata. Import does not restore this argument. These keys are reserved by the service or the provider and cannot be set:delete_empty_share_network,neutron_subnet_id,volume_type,access_list_allow_all,ip, andselectel_tf_create_token. - name String
- network
Id String - Unique identifier of the private network of the file storage. The format is a lowercase UUID. You can retrieve the network ID from the selectelvpcnetwork_v2 resource. Changing this creates a new file storage.
- project
Id String - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. The value cannot be empty or start or end with whitespace. You can retrieve the project ID from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new file storage. - region String
- Pool where the file storage is located, for example,
ru-6. The value cannot be empty or start or end with whitespace. Learn more about available pools in Product availability by location. Changing this creates a new file storage. - String
- File storage protocol. Available values are
NFSandCIFS. Changing this creates a new file storage. - String
- Name of the file storage type. The value cannot be empty or start or end with whitespace. The name format is
<type>.<pool_segment>, where<type>isbasicfor HDD Basic,universalfor SSD Universal, orfastfor SSD Fast, for example,basic.ru-6afor HDD Basic in theru-6apool segment. The type also sets the pool segment of the file storage. Not every type is available in every pool segment: see File Storage availability. A UUID is rejected: use the type name. You can retrieve the pool segments with the selectelfilestorageavailabilityzonesv2 data source. Learn more about File storage types. Changing this creates a new file storage. - size Number
- Size of the file storage in GB. The minimum value is
50. Only increases are supported. Unmount the file storage from all clients before increasing the size and mount it again after. - status String
- Status of the file storage.
- subnet
Id String - Unique identifier of the private subnet of the file storage. The format is a lowercase UUID. A subnet of a cloud network gives access to cloud servers and Managed Kubernetes clusters in the same pool. To connect dedicated servers or servers in other pools, use a subnet connected to a global router: see Connect a File Storage. You can retrieve the subnet ID from the selectelvpcnetworksubnetv2 resource. Changing this creates a new file storage.
- timeouts Property Map
- Timeouts for file storage operations.
Supporting Types
FilestorageShareV2ExportLocation, FilestorageShareV2ExportLocationArgs
FilestorageShareV2Timeouts, FilestorageShareV2TimeoutsArgs
- Create string
- Timeout for the create operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is30m. - Delete string
- Timeout for the delete operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m. - Update string
- Timeout for the update operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m.
- Create string
- Timeout for the create operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is30m. - Delete string
- Timeout for the delete operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m. - Update string
- Timeout for the update operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m.
- create string
- Timeout for the create operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is30m. - delete string
- Timeout for the delete operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m. - update string
- Timeout for the update operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m.
- create String
- Timeout for the create operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is30m. - delete String
- Timeout for the delete operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m. - update String
- Timeout for the update operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m.
- create string
- Timeout for the create operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is30m. - delete string
- Timeout for the delete operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m. - update string
- Timeout for the update operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m.
- create str
- Timeout for the create operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is30m. - delete str
- Timeout for the delete operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m. - update str
- Timeout for the update operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m.
- create String
- Timeout for the create operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is30m. - delete String
- Timeout for the delete operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m. - update String
- Timeout for the update operation. The format is a duration, for example,
30sor10m. If omitted, the timeout is20m.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
published on Friday, Oct 30, 2026 by selectel