gcore.FileShare
Explore with Pulumi AI
Represents a file share (NFS) in Gcore Cloud.
Example Usage
VAST File Share Example
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const project = gcore.getProject({
name: "Default",
});
const region = gcore.getRegion({
name: "Sines-2",
});
const fileShareVast = new gcore.FileShare("fileShareVast", {
size: 10,
projectId: project.then(project => project.id),
regionId: region.then(region => region.id),
typeName: "vast",
protocol: "NFS",
});
import pulumi
import pulumi_gcore as gcore
project = gcore.get_project(name="Default")
region = gcore.get_region(name="Sines-2")
file_share_vast = gcore.FileShare("fileShareVast",
size=10,
project_id=project.id,
region_id=region.id,
type_name="vast",
protocol="NFS")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := gcore.GetProject(ctx, &gcore.GetProjectArgs{
Name: "Default",
}, nil)
if err != nil {
return err
}
region, err := gcore.GetRegion(ctx, &gcore.GetRegionArgs{
Name: "Sines-2",
}, nil)
if err != nil {
return err
}
_, err = gcore.NewFileShare(ctx, "fileShareVast", &gcore.FileShareArgs{
Size: pulumi.Float64(10),
ProjectId: pulumi.String(project.Id),
RegionId: pulumi.String(region.Id),
TypeName: pulumi.String("vast"),
Protocol: pulumi.String("NFS"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var project = Gcore.GetProject.Invoke(new()
{
Name = "Default",
});
var region = Gcore.GetRegion.Invoke(new()
{
Name = "Sines-2",
});
var fileShareVast = new Gcore.FileShare("fileShareVast", new()
{
Size = 10,
ProjectId = project.Apply(getProjectResult => getProjectResult.Id),
RegionId = region.Apply(getRegionResult => getRegionResult.Id),
TypeName = "vast",
Protocol = "NFS",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetProjectArgs;
import com.pulumi.gcore.inputs.GetRegionArgs;
import com.pulumi.gcore.FileShare;
import com.pulumi.gcore.FileShareArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var project = GcoreFunctions.getProject(GetProjectArgs.builder()
.name("Default")
.build());
final var region = GcoreFunctions.getRegion(GetRegionArgs.builder()
.name("Sines-2")
.build());
var fileShareVast = new FileShare("fileShareVast", FileShareArgs.builder()
.size(10)
.projectId(project.applyValue(getProjectResult -> getProjectResult.id()))
.regionId(region.applyValue(getRegionResult -> getRegionResult.id()))
.typeName("vast")
.protocol("NFS")
.build());
}
}
resources:
fileShareVast:
type: gcore:FileShare
properties:
size: 10
projectId: ${project.id}
regionId: ${region.id}
typeName: vast
protocol: NFS
variables:
project:
fn::invoke:
function: gcore:getProject
arguments:
name: Default
region:
fn::invoke:
function: gcore:getRegion
arguments:
name: Sines-2
Standard File Share Example
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const project = gcore.getProject({
name: "Default",
});
const region = gcore.getRegion({
name: "Luxembourg-2",
});
const fileShareStandard = new gcore.FileShare("fileShareStandard", {
size: 20,
projectId: project.then(project => project.id),
regionId: region.then(region => region.id),
typeName: "standard",
protocol: "NFS",
network: {
networkId: "378ba73d-16c5-4a4e-a755-d9406dd73e63",
},
accesses: [{
ipAddress: "10.95.129.0/24",
accessMode: "rw",
}],
});
import pulumi
import pulumi_gcore as gcore
project = gcore.get_project(name="Default")
region = gcore.get_region(name="Luxembourg-2")
file_share_standard = gcore.FileShare("fileShareStandard",
size=20,
project_id=project.id,
region_id=region.id,
type_name="standard",
protocol="NFS",
network={
"network_id": "378ba73d-16c5-4a4e-a755-d9406dd73e63",
},
accesses=[{
"ip_address": "10.95.129.0/24",
"access_mode": "rw",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := gcore.GetProject(ctx, &gcore.GetProjectArgs{
Name: "Default",
}, nil)
if err != nil {
return err
}
region, err := gcore.GetRegion(ctx, &gcore.GetRegionArgs{
Name: "Luxembourg-2",
}, nil)
if err != nil {
return err
}
_, err = gcore.NewFileShare(ctx, "fileShareStandard", &gcore.FileShareArgs{
Size: pulumi.Float64(20),
ProjectId: pulumi.String(project.Id),
RegionId: pulumi.String(region.Id),
TypeName: pulumi.String("standard"),
Protocol: pulumi.String("NFS"),
Network: &gcore.FileShareNetworkArgs{
NetworkId: pulumi.String("378ba73d-16c5-4a4e-a755-d9406dd73e63"),
},
Accesses: gcore.FileShareAccessArray{
&gcore.FileShareAccessArgs{
IpAddress: pulumi.String("10.95.129.0/24"),
AccessMode: pulumi.String("rw"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var project = Gcore.GetProject.Invoke(new()
{
Name = "Default",
});
var region = Gcore.GetRegion.Invoke(new()
{
Name = "Luxembourg-2",
});
var fileShareStandard = new Gcore.FileShare("fileShareStandard", new()
{
Size = 20,
ProjectId = project.Apply(getProjectResult => getProjectResult.Id),
RegionId = region.Apply(getRegionResult => getRegionResult.Id),
TypeName = "standard",
Protocol = "NFS",
Network = new Gcore.Inputs.FileShareNetworkArgs
{
NetworkId = "378ba73d-16c5-4a4e-a755-d9406dd73e63",
},
Accesses = new[]
{
new Gcore.Inputs.FileShareAccessArgs
{
IpAddress = "10.95.129.0/24",
AccessMode = "rw",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetProjectArgs;
import com.pulumi.gcore.inputs.GetRegionArgs;
import com.pulumi.gcore.FileShare;
import com.pulumi.gcore.FileShareArgs;
import com.pulumi.gcore.inputs.FileShareNetworkArgs;
import com.pulumi.gcore.inputs.FileShareAccessArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var project = GcoreFunctions.getProject(GetProjectArgs.builder()
.name("Default")
.build());
final var region = GcoreFunctions.getRegion(GetRegionArgs.builder()
.name("Luxembourg-2")
.build());
var fileShareStandard = new FileShare("fileShareStandard", FileShareArgs.builder()
.size(20)
.projectId(project.applyValue(getProjectResult -> getProjectResult.id()))
.regionId(region.applyValue(getRegionResult -> getRegionResult.id()))
.typeName("standard")
.protocol("NFS")
.network(FileShareNetworkArgs.builder()
.networkId("378ba73d-16c5-4a4e-a755-d9406dd73e63")
.build())
.accesses(FileShareAccessArgs.builder()
.ipAddress("10.95.129.0/24")
.accessMode("rw")
.build())
.build());
}
}
resources:
fileShareStandard:
type: gcore:FileShare
properties:
size: 20
projectId: ${project.id}
regionId: ${region.id}
typeName: standard
protocol: NFS
network:
networkId: 378ba73d-16c5-4a4e-a755-d9406dd73e63
accesses:
- ipAddress: 10.95.129.0/24
accessMode: rw
variables:
project:
fn::invoke:
function: gcore:getProject
arguments:
name: Default
region:
fn::invoke:
function: gcore:getRegion
arguments:
name: Luxembourg-2
Create FileShare Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FileShare(name: string, args: FileShareArgs, opts?: CustomResourceOptions);
@overload
def FileShare(resource_name: str,
args: FileShareArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FileShare(resource_name: str,
opts: Optional[ResourceOptions] = None,
protocol: Optional[str] = None,
size: Optional[float] = None,
type_name: Optional[str] = None,
accesses: Optional[Sequence[FileShareAccessArgs]] = None,
file_share_id: Optional[str] = None,
name: Optional[str] = None,
network: Optional[FileShareNetworkArgs] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewFileShare(ctx *Context, name string, args FileShareArgs, opts ...ResourceOption) (*FileShare, error)
public FileShare(string name, FileShareArgs args, CustomResourceOptions? opts = null)
public FileShare(String name, FileShareArgs args)
public FileShare(String name, FileShareArgs args, CustomResourceOptions options)
type: gcore:FileShare
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FileShareArgs
- 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 FileShareArgs
- 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 FileShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FileShareArgs
- 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 fileShareResource = new Gcore.FileShare("fileShareResource", new()
{
Protocol = "string",
Size = 0,
TypeName = "string",
Accesses = new[]
{
new Gcore.Inputs.FileShareAccessArgs
{
AccessMode = "string",
IpAddress = "string",
},
},
FileShareId = "string",
Name = "string",
Network = new Gcore.Inputs.FileShareNetworkArgs
{
NetworkId = "string",
SubnetId = "string",
},
ProjectId = 0,
ProjectName = "string",
RegionId = 0,
RegionName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := gcore.NewFileShare(ctx, "fileShareResource", &gcore.FileShareArgs{
Protocol: pulumi.String("string"),
Size: pulumi.Float64(0),
TypeName: pulumi.String("string"),
Accesses: gcore.FileShareAccessArray{
&gcore.FileShareAccessArgs{
AccessMode: pulumi.String("string"),
IpAddress: pulumi.String("string"),
},
},
FileShareId: pulumi.String("string"),
Name: pulumi.String("string"),
Network: &gcore.FileShareNetworkArgs{
NetworkId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var fileShareResource = new FileShare("fileShareResource", FileShareArgs.builder()
.protocol("string")
.size(0.0)
.typeName("string")
.accesses(FileShareAccessArgs.builder()
.accessMode("string")
.ipAddress("string")
.build())
.fileShareId("string")
.name("string")
.network(FileShareNetworkArgs.builder()
.networkId("string")
.subnetId("string")
.build())
.projectId(0.0)
.projectName("string")
.regionId(0.0)
.regionName("string")
.tags(Map.of("string", "string"))
.build());
file_share_resource = gcore.FileShare("fileShareResource",
protocol="string",
size=0,
type_name="string",
accesses=[{
"access_mode": "string",
"ip_address": "string",
}],
file_share_id="string",
name="string",
network={
"network_id": "string",
"subnet_id": "string",
},
project_id=0,
project_name="string",
region_id=0,
region_name="string",
tags={
"string": "string",
})
const fileShareResource = new gcore.FileShare("fileShareResource", {
protocol: "string",
size: 0,
typeName: "string",
accesses: [{
accessMode: "string",
ipAddress: "string",
}],
fileShareId: "string",
name: "string",
network: {
networkId: "string",
subnetId: "string",
},
projectId: 0,
projectName: "string",
regionId: 0,
regionName: "string",
tags: {
string: "string",
},
});
type: gcore:FileShare
properties:
accesses:
- accessMode: string
ipAddress: string
fileShareId: string
name: string
network:
networkId: string
subnetId: string
projectId: 0
projectName: string
protocol: string
regionId: 0
regionName: string
size: 0
tags:
string: string
typeName: string
FileShare 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 FileShare resource accepts the following input properties:
- Protocol string
- The protocol used by the file share. Currently, only 'NFS' is supported.
- Size double
- The size of the file share in GB. It must be a positive integer.
- Type
Name string - The type of the file share. Must be one of 'standard' or 'vast'.
- Accesses
List<File
Share Access> - string
- The ID of this resource.
- Name string
- The name of the file share. It must be unique within the project and region.
- Network
File
Share Network - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- Project
Id double - Project ID, only one of projectid or projectname should be set
- Project
Name string - Project name, only one of projectid or projectname should be set
- Region
Id double - Region ID, only one of regionid or regionname should be set
- Region
Name string - Region name, only one of regionid or regionname should be set
- Dictionary<string, string>
- Tags to associate with the file share. Tags are key-value pairs.
- Protocol string
- The protocol used by the file share. Currently, only 'NFS' is supported.
- Size float64
- The size of the file share in GB. It must be a positive integer.
- Type
Name string - The type of the file share. Must be one of 'standard' or 'vast'.
- Accesses
[]File
Share Access Args - string
- The ID of this resource.
- Name string
- The name of the file share. It must be unique within the project and region.
- Network
File
Share Network Args - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- Project
Id float64 - Project ID, only one of projectid or projectname should be set
- Project
Name string - Project name, only one of projectid or projectname should be set
- Region
Id float64 - Region ID, only one of regionid or regionname should be set
- Region
Name string - Region name, only one of regionid or regionname should be set
- map[string]string
- Tags to associate with the file share. Tags are key-value pairs.
- protocol String
- The protocol used by the file share. Currently, only 'NFS' is supported.
- size Double
- The size of the file share in GB. It must be a positive integer.
- type
Name String - The type of the file share. Must be one of 'standard' or 'vast'.
- accesses
List<File
Share Access> - String
- The ID of this resource.
- name String
- The name of the file share. It must be unique within the project and region.
- network
File
Share Network - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- project
Id Double - Project ID, only one of projectid or projectname should be set
- project
Name String - Project name, only one of projectid or projectname should be set
- region
Id Double - Region ID, only one of regionid or regionname should be set
- region
Name String - Region name, only one of regionid or regionname should be set
- Map<String,String>
- Tags to associate with the file share. Tags are key-value pairs.
- protocol string
- The protocol used by the file share. Currently, only 'NFS' is supported.
- size number
- The size of the file share in GB. It must be a positive integer.
- type
Name string - The type of the file share. Must be one of 'standard' or 'vast'.
- accesses
File
Share Access[] - string
- The ID of this resource.
- name string
- The name of the file share. It must be unique within the project and region.
- network
File
Share Network - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- project
Id number - Project ID, only one of projectid or projectname should be set
- project
Name string - Project name, only one of projectid or projectname should be set
- region
Id number - Region ID, only one of regionid or regionname should be set
- region
Name string - Region name, only one of regionid or regionname should be set
- {[key: string]: string}
- Tags to associate with the file share. Tags are key-value pairs.
- protocol str
- The protocol used by the file share. Currently, only 'NFS' is supported.
- size float
- The size of the file share in GB. It must be a positive integer.
- type_
name str - The type of the file share. Must be one of 'standard' or 'vast'.
- accesses
Sequence[File
Share Access Args] - str
- The ID of this resource.
- name str
- The name of the file share. It must be unique within the project and region.
- network
File
Share Network Args - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- project_
id float - Project ID, only one of projectid or projectname should be set
- project_
name str - Project name, only one of projectid or projectname should be set
- region_
id float - Region ID, only one of regionid or regionname should be set
- region_
name str - Region name, only one of regionid or regionname should be set
- Mapping[str, str]
- Tags to associate with the file share. Tags are key-value pairs.
- protocol String
- The protocol used by the file share. Currently, only 'NFS' is supported.
- size Number
- The size of the file share in GB. It must be a positive integer.
- type
Name String - The type of the file share. Must be one of 'standard' or 'vast'.
- accesses List<Property Map>
- String
- The ID of this resource.
- name String
- The name of the file share. It must be unique within the project and region.
- network Property Map
- Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- project
Id Number - Project ID, only one of projectid or projectname should be set
- project
Name String - Project name, only one of projectid or projectname should be set
- region
Id Number - Region ID, only one of regionid or regionname should be set
- region
Name String - Region name, only one of regionid or regionname should be set
- Map<String>
- Tags to associate with the file share. Tags are key-value pairs.
Outputs
All input properties are implicitly available as output properties. Additionally, the FileShare resource produces the following output properties:
- Connection
Point string - The connection point of the file share.
- Created
At string - The creation time of the file share in ISO 8601 format.
- Creator
Task stringId - The ID of the task that created the file share.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Name string - The name of the network associated with the file share.
- string
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- Status string
- The status of the file share.
- Subnet
Name string - The name of the subnet associated with the file share
- Connection
Point string - The connection point of the file share.
- Created
At string - The creation time of the file share in ISO 8601 format.
- Creator
Task stringId - The ID of the task that created the file share.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Name string - The name of the network associated with the file share.
- string
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- Status string
- The status of the file share.
- Subnet
Name string - The name of the subnet associated with the file share
- connection
Point String - The connection point of the file share.
- created
At String - The creation time of the file share in ISO 8601 format.
- creator
Task StringId - The ID of the task that created the file share.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Name String - The name of the network associated with the file share.
- String
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- status String
- The status of the file share.
- subnet
Name String - The name of the subnet associated with the file share
- connection
Point string - The connection point of the file share.
- created
At string - The creation time of the file share in ISO 8601 format.
- creator
Task stringId - The ID of the task that created the file share.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Name string - The name of the network associated with the file share.
- string
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- status string
- The status of the file share.
- subnet
Name string - The name of the subnet associated with the file share
- connection_
point str - The connection point of the file share.
- created_
at str - The creation time of the file share in ISO 8601 format.
- creator_
task_ strid - The ID of the task that created the file share.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
name str - The name of the network associated with the file share.
- str
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- status str
- The status of the file share.
- subnet_
name str - The name of the subnet associated with the file share
- connection
Point String - The connection point of the file share.
- created
At String - The creation time of the file share in ISO 8601 format.
- creator
Task StringId - The ID of the task that created the file share.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Name String - The name of the network associated with the file share.
- String
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- status String
- The status of the file share.
- subnet
Name String - The name of the subnet associated with the file share
Look up Existing FileShare Resource
Get an existing FileShare 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?: FileShareState, opts?: CustomResourceOptions): FileShare
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accesses: Optional[Sequence[FileShareAccessArgs]] = None,
connection_point: Optional[str] = None,
created_at: Optional[str] = None,
creator_task_id: Optional[str] = None,
file_share_id: Optional[str] = None,
name: Optional[str] = None,
network: Optional[FileShareNetworkArgs] = None,
network_name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
share_network_name: Optional[str] = None,
size: Optional[float] = None,
status: Optional[str] = None,
subnet_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
type_name: Optional[str] = None) -> FileShare
func GetFileShare(ctx *Context, name string, id IDInput, state *FileShareState, opts ...ResourceOption) (*FileShare, error)
public static FileShare Get(string name, Input<string> id, FileShareState? state, CustomResourceOptions? opts = null)
public static FileShare get(String name, Output<String> id, FileShareState state, CustomResourceOptions options)
resources: _: type: gcore:FileShare get: 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.
- Accesses
List<File
Share Access> - Connection
Point string - The connection point of the file share.
- Created
At string - The creation time of the file share in ISO 8601 format.
- Creator
Task stringId - The ID of the task that created the file share.
- string
- The ID of this resource.
- Name string
- The name of the file share. It must be unique within the project and region.
- Network
File
Share Network - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- Network
Name string - The name of the network associated with the file share.
- Project
Id double - Project ID, only one of projectid or projectname should be set
- Project
Name string - Project name, only one of projectid or projectname should be set
- Protocol string
- The protocol used by the file share. Currently, only 'NFS' is supported.
- Region
Id double - Region ID, only one of regionid or regionname should be set
- Region
Name string - Region name, only one of regionid or regionname should be set
- string
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- Size double
- The size of the file share in GB. It must be a positive integer.
- Status string
- The status of the file share.
- Subnet
Name string - The name of the subnet associated with the file share
- Dictionary<string, string>
- Tags to associate with the file share. Tags are key-value pairs.
- Type
Name string - The type of the file share. Must be one of 'standard' or 'vast'.
- Accesses
[]File
Share Access Args - Connection
Point string - The connection point of the file share.
- Created
At string - The creation time of the file share in ISO 8601 format.
- Creator
Task stringId - The ID of the task that created the file share.
- string
- The ID of this resource.
- Name string
- The name of the file share. It must be unique within the project and region.
- Network
File
Share Network Args - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- Network
Name string - The name of the network associated with the file share.
- Project
Id float64 - Project ID, only one of projectid or projectname should be set
- Project
Name string - Project name, only one of projectid or projectname should be set
- Protocol string
- The protocol used by the file share. Currently, only 'NFS' is supported.
- Region
Id float64 - Region ID, only one of regionid or regionname should be set
- Region
Name string - Region name, only one of regionid or regionname should be set
- string
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- Size float64
- The size of the file share in GB. It must be a positive integer.
- Status string
- The status of the file share.
- Subnet
Name string - The name of the subnet associated with the file share
- map[string]string
- Tags to associate with the file share. Tags are key-value pairs.
- Type
Name string - The type of the file share. Must be one of 'standard' or 'vast'.
- accesses
List<File
Share Access> - connection
Point String - The connection point of the file share.
- created
At String - The creation time of the file share in ISO 8601 format.
- creator
Task StringId - The ID of the task that created the file share.
- String
- The ID of this resource.
- name String
- The name of the file share. It must be unique within the project and region.
- network
File
Share Network - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- network
Name String - The name of the network associated with the file share.
- project
Id Double - Project ID, only one of projectid or projectname should be set
- project
Name String - Project name, only one of projectid or projectname should be set
- protocol String
- The protocol used by the file share. Currently, only 'NFS' is supported.
- region
Id Double - Region ID, only one of regionid or regionname should be set
- region
Name String - Region name, only one of regionid or regionname should be set
- String
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- size Double
- The size of the file share in GB. It must be a positive integer.
- status String
- The status of the file share.
- subnet
Name String - The name of the subnet associated with the file share
- Map<String,String>
- Tags to associate with the file share. Tags are key-value pairs.
- type
Name String - The type of the file share. Must be one of 'standard' or 'vast'.
- accesses
File
Share Access[] - connection
Point string - The connection point of the file share.
- created
At string - The creation time of the file share in ISO 8601 format.
- creator
Task stringId - The ID of the task that created the file share.
- string
- The ID of this resource.
- name string
- The name of the file share. It must be unique within the project and region.
- network
File
Share Network - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- network
Name string - The name of the network associated with the file share.
- project
Id number - Project ID, only one of projectid or projectname should be set
- project
Name string - Project name, only one of projectid or projectname should be set
- protocol string
- The protocol used by the file share. Currently, only 'NFS' is supported.
- region
Id number - Region ID, only one of regionid or regionname should be set
- region
Name string - Region name, only one of regionid or regionname should be set
- string
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- size number
- The size of the file share in GB. It must be a positive integer.
- status string
- The status of the file share.
- subnet
Name string - The name of the subnet associated with the file share
- {[key: string]: string}
- Tags to associate with the file share. Tags are key-value pairs.
- type
Name string - The type of the file share. Must be one of 'standard' or 'vast'.
- accesses
Sequence[File
Share Access Args] - connection_
point str - The connection point of the file share.
- created_
at str - The creation time of the file share in ISO 8601 format.
- creator_
task_ strid - The ID of the task that created the file share.
- str
- The ID of this resource.
- name str
- The name of the file share. It must be unique within the project and region.
- network
File
Share Network Args - Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- network_
name str - The name of the network associated with the file share.
- project_
id float - Project ID, only one of projectid or projectname should be set
- project_
name str - Project name, only one of projectid or projectname should be set
- protocol str
- The protocol used by the file share. Currently, only 'NFS' is supported.
- region_
id float - Region ID, only one of regionid or regionname should be set
- region_
name str - Region name, only one of regionid or regionname should be set
- str
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- size float
- The size of the file share in GB. It must be a positive integer.
- status str
- The status of the file share.
- subnet_
name str - The name of the subnet associated with the file share
- Mapping[str, str]
- Tags to associate with the file share. Tags are key-value pairs.
- type_
name str - The type of the file share. Must be one of 'standard' or 'vast'.
- accesses List<Property Map>
- connection
Point String - The connection point of the file share.
- created
At String - The creation time of the file share in ISO 8601 format.
- creator
Task StringId - The ID of the task that created the file share.
- String
- The ID of this resource.
- name String
- The name of the file share. It must be unique within the project and region.
- network Property Map
- Network configuration for the file share. It must include a network ID and optionally a subnet ID. (Only required for type_name: 'standard')
- network
Name String - The name of the network associated with the file share.
- project
Id Number - Project ID, only one of projectid or projectname should be set
- project
Name String - Project name, only one of projectid or projectname should be set
- protocol String
- The protocol used by the file share. Currently, only 'NFS' is supported.
- region
Id Number - Region ID, only one of regionid or regionname should be set
- region
Name String - Region name, only one of regionid or regionname should be set
- String
- The name of the share network associated with the file share. This is only applicable for 'standard'.
- size Number
- The size of the file share in GB. It must be a positive integer.
- status String
- The status of the file share.
- subnet
Name String - The name of the subnet associated with the file share
- Map<String>
- Tags to associate with the file share. Tags are key-value pairs.
- type
Name String - The type of the file share. Must be one of 'standard' or 'vast'.
Supporting Types
FileShareAccess, FileShareAccessArgs
- Access
Mode string - The access mode of the file share (ro/rw).
- Ip
Address string - The IP address of the file share.
- Access
Mode string - The access mode of the file share (ro/rw).
- Ip
Address string - The IP address of the file share.
- access
Mode String - The access mode of the file share (ro/rw).
- ip
Address String - The IP address of the file share.
- access
Mode string - The access mode of the file share (ro/rw).
- ip
Address string - The IP address of the file share.
- access_
mode str - The access mode of the file share (ro/rw).
- ip_
address str - The IP address of the file share.
- access
Mode String - The access mode of the file share (ro/rw).
- ip
Address String - The IP address of the file share.
FileShareNetwork, FileShareNetworkArgs
- network_
id str - The ID of the network to which the file share will be connected. This is required for 'standard'.
- subnet_
id str - The ID of the subnet within the network. This is optional and can be used to specify a particular subnet for the file share.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.