openstack.sharedfilesystem.Share
Explore with Pulumi AI
Use this resource to configure a share.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const network1 = new openstack.networking.Network("network_1", {
name: "network_1",
adminStateUp: true,
});
const subnet1 = new openstack.networking.Subnet("subnet_1", {
name: "subnet_1",
cidr: "192.168.199.0/24",
ipVersion: 4,
networkId: network1.id,
});
const sharenetwork1 = new openstack.sharedfilesystem.ShareNetwork("sharenetwork_1", {
name: "test_sharenetwork",
description: "test share network with security services",
neutronNetId: network1.id,
neutronSubnetId: subnet1.id,
});
const share1 = new openstack.sharedfilesystem.Share("share_1", {
name: "nfs_share",
description: "test share description",
shareProto: "NFS",
size: 1,
shareNetworkId: sharenetwork1.id,
});
import pulumi
import pulumi_openstack as openstack
network1 = openstack.networking.Network("network_1",
name="network_1",
admin_state_up=True)
subnet1 = openstack.networking.Subnet("subnet_1",
name="subnet_1",
cidr="192.168.199.0/24",
ip_version=4,
network_id=network1.id)
sharenetwork1 = openstack.sharedfilesystem.ShareNetwork("sharenetwork_1",
name="test_sharenetwork",
description="test share network with security services",
neutron_net_id=network1.id,
neutron_subnet_id=subnet1.id)
share1 = openstack.sharedfilesystem.Share("share_1",
name="nfs_share",
description="test share description",
share_proto="NFS",
size=1,
share_network_id=sharenetwork1.id)
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/networking"
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
network1, err := networking.NewNetwork(ctx, "network_1", &networking.NetworkArgs{
Name: pulumi.String("network_1"),
AdminStateUp: pulumi.Bool(true),
})
if err != nil {
return err
}
subnet1, err := networking.NewSubnet(ctx, "subnet_1", &networking.SubnetArgs{
Name: pulumi.String("subnet_1"),
Cidr: pulumi.String("192.168.199.0/24"),
IpVersion: pulumi.Int(4),
NetworkId: network1.ID(),
})
if err != nil {
return err
}
sharenetwork1, err := sharedfilesystem.NewShareNetwork(ctx, "sharenetwork_1", &sharedfilesystem.ShareNetworkArgs{
Name: pulumi.String("test_sharenetwork"),
Description: pulumi.String("test share network with security services"),
NeutronNetId: network1.ID(),
NeutronSubnetId: subnet1.ID(),
})
if err != nil {
return err
}
_, err = sharedfilesystem.NewShare(ctx, "share_1", &sharedfilesystem.ShareArgs{
Name: pulumi.String("nfs_share"),
Description: pulumi.String("test share description"),
ShareProto: pulumi.String("NFS"),
Size: pulumi.Int(1),
ShareNetworkId: sharenetwork1.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var network1 = new OpenStack.Networking.Network("network_1", new()
{
Name = "network_1",
AdminStateUp = true,
});
var subnet1 = new OpenStack.Networking.Subnet("subnet_1", new()
{
Name = "subnet_1",
Cidr = "192.168.199.0/24",
IpVersion = 4,
NetworkId = network1.Id,
});
var sharenetwork1 = new OpenStack.SharedFileSystem.ShareNetwork("sharenetwork_1", new()
{
Name = "test_sharenetwork",
Description = "test share network with security services",
NeutronNetId = network1.Id,
NeutronSubnetId = subnet1.Id,
});
var share1 = new OpenStack.SharedFileSystem.Share("share_1", new()
{
Name = "nfs_share",
Description = "test share description",
ShareProto = "NFS",
Size = 1,
ShareNetworkId = sharenetwork1.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.networking.Network;
import com.pulumi.openstack.networking.NetworkArgs;
import com.pulumi.openstack.networking.Subnet;
import com.pulumi.openstack.networking.SubnetArgs;
import com.pulumi.openstack.sharedfilesystem.ShareNetwork;
import com.pulumi.openstack.sharedfilesystem.ShareNetworkArgs;
import com.pulumi.openstack.sharedfilesystem.Share;
import com.pulumi.openstack.sharedfilesystem.ShareArgs;
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) {
var network1 = new Network("network1", NetworkArgs.builder()
.name("network_1")
.adminStateUp("true")
.build());
var subnet1 = new Subnet("subnet1", SubnetArgs.builder()
.name("subnet_1")
.cidr("192.168.199.0/24")
.ipVersion(4)
.networkId(network1.id())
.build());
var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder()
.name("test_sharenetwork")
.description("test share network with security services")
.neutronNetId(network1.id())
.neutronSubnetId(subnet1.id())
.build());
var share1 = new Share("share1", ShareArgs.builder()
.name("nfs_share")
.description("test share description")
.shareProto("NFS")
.size(1)
.shareNetworkId(sharenetwork1.id())
.build());
}
}
resources:
network1:
type: openstack:networking:Network
name: network_1
properties:
name: network_1
adminStateUp: 'true'
subnet1:
type: openstack:networking:Subnet
name: subnet_1
properties:
name: subnet_1
cidr: 192.168.199.0/24
ipVersion: 4
networkId: ${network1.id}
sharenetwork1:
type: openstack:sharedfilesystem:ShareNetwork
name: sharenetwork_1
properties:
name: test_sharenetwork
description: test share network with security services
neutronNetId: ${network1.id}
neutronSubnetId: ${subnet1.id}
share1:
type: openstack:sharedfilesystem:Share
name: share_1
properties:
name: nfs_share
description: test share description
shareProto: NFS
size: 1
shareNetworkId: ${sharenetwork1.id}
Create Share Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Share(name: string, args: ShareArgs, opts?: CustomResourceOptions);
@overload
def Share(resource_name: str,
args: ShareArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Share(resource_name: str,
opts: Optional[ResourceOptions] = None,
share_proto: Optional[str] = None,
size: Optional[int] = None,
availability_zone: Optional[str] = None,
description: Optional[str] = None,
is_public: Optional[bool] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
region: Optional[str] = None,
share_network_id: Optional[str] = None,
share_type: Optional[str] = None,
snapshot_id: Optional[str] = None)
func NewShare(ctx *Context, name string, args ShareArgs, opts ...ResourceOption) (*Share, error)
public Share(string name, ShareArgs args, CustomResourceOptions? opts = null)
type: openstack:sharedfilesystem:Share
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ShareArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ShareArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var shareResource = new OpenStack.SharedFileSystem.Share("shareResource", new()
{
ShareProto = "string",
Size = 0,
AvailabilityZone = "string",
Description = "string",
IsPublic = false,
Metadata =
{
{ "string", "string" },
},
Name = "string",
Region = "string",
ShareNetworkId = "string",
ShareType = "string",
SnapshotId = "string",
});
example, err := sharedfilesystem.NewShare(ctx, "shareResource", &sharedfilesystem.ShareArgs{
ShareProto: pulumi.String("string"),
Size: pulumi.Int(0),
AvailabilityZone: pulumi.String("string"),
Description: pulumi.String("string"),
IsPublic: pulumi.Bool(false),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Region: pulumi.String("string"),
ShareNetworkId: pulumi.String("string"),
ShareType: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
})
var shareResource = new Share("shareResource", ShareArgs.builder()
.shareProto("string")
.size(0)
.availabilityZone("string")
.description("string")
.isPublic(false)
.metadata(Map.of("string", "string"))
.name("string")
.region("string")
.shareNetworkId("string")
.shareType("string")
.snapshotId("string")
.build());
share_resource = openstack.sharedfilesystem.Share("shareResource",
share_proto="string",
size=0,
availability_zone="string",
description="string",
is_public=False,
metadata={
"string": "string",
},
name="string",
region="string",
share_network_id="string",
share_type="string",
snapshot_id="string")
const shareResource = new openstack.sharedfilesystem.Share("shareResource", {
shareProto: "string",
size: 0,
availabilityZone: "string",
description: "string",
isPublic: false,
metadata: {
string: "string",
},
name: "string",
region: "string",
shareNetworkId: "string",
shareType: "string",
snapshotId: "string",
});
type: openstack:sharedfilesystem:Share
properties:
availabilityZone: string
description: string
isPublic: false
metadata:
string: string
name: string
region: string
shareNetworkId: string
shareProto: string
shareType: string
size: 0
snapshotId: string
Share Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Share resource accepts the following input properties:
- string
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- Size int
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- Availability
Zone string - The share availability zone. Changing this creates a new share.
- Description string
- The human-readable description for the share. Changing this updates the description of the existing share.
- Is
Public bool - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- Metadata Dictionary<string, string>
- One or more metadata key and value pairs as a dictionary of strings.
- Name string
- The name of the share. Changing this updates the name of the existing share.
- Region string
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- string
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - string
- The share type name. If you omit this parameter, the default share type is used.
- Snapshot
Id string - The UUID of the share's base snapshot. Changing this creates a new share.
- string
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- Size int
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- Availability
Zone string - The share availability zone. Changing this creates a new share.
- Description string
- The human-readable description for the share. Changing this updates the description of the existing share.
- Is
Public bool - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- Metadata map[string]string
- One or more metadata key and value pairs as a dictionary of strings.
- Name string
- The name of the share. Changing this updates the name of the existing share.
- Region string
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- string
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - string
- The share type name. If you omit this parameter, the default share type is used.
- Snapshot
Id string - The UUID of the share's base snapshot. Changing this creates a new share.
- String
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- size Integer
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- availability
Zone String - The share availability zone. Changing this creates a new share.
- description String
- The human-readable description for the share. Changing this updates the description of the existing share.
- is
Public Boolean - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- metadata Map<String,String>
- One or more metadata key and value pairs as a dictionary of strings.
- name String
- The name of the share. Changing this updates the name of the existing share.
- region String
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- String
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - String
- The share type name. If you omit this parameter, the default share type is used.
- snapshot
Id String - The UUID of the share's base snapshot. Changing this creates a new share.
- string
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- size number
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- availability
Zone string - The share availability zone. Changing this creates a new share.
- description string
- The human-readable description for the share. Changing this updates the description of the existing share.
- is
Public boolean - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- metadata {[key: string]: string}
- One or more metadata key and value pairs as a dictionary of strings.
- name string
- The name of the share. Changing this updates the name of the existing share.
- region string
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- string
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - string
- The share type name. If you omit this parameter, the default share type is used.
- snapshot
Id string - The UUID of the share's base snapshot. Changing this creates a new share.
- str
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- size int
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- availability_
zone str - The share availability zone. Changing this creates a new share.
- description str
- The human-readable description for the share. Changing this updates the description of the existing share.
- is_
public bool - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- metadata Mapping[str, str]
- One or more metadata key and value pairs as a dictionary of strings.
- name str
- The name of the share. Changing this updates the name of the existing share.
- region str
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- str
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - str
- The share type name. If you omit this parameter, the default share type is used.
- snapshot_
id str - The UUID of the share's base snapshot. Changing this creates a new share.
- String
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- size Number
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- availability
Zone String - The share availability zone. Changing this creates a new share.
- description String
- The human-readable description for the share. Changing this updates the description of the existing share.
- is
Public Boolean - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- metadata Map<String>
- One or more metadata key and value pairs as a dictionary of strings.
- name String
- The name of the share. Changing this updates the name of the existing share.
- region String
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- String
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - String
- The share type name. If you omit this parameter, the default share type is used.
- snapshot
Id String - The UUID of the share's base snapshot. Changing this creates a new share.
Outputs
All input properties are implicitly available as output properties. Additionally, the Share resource produces the following output properties:
- All
Metadata Dictionary<string, string> - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- Export
Locations List<Pulumi.Open Stack. Shared File System. Outputs. Share Export Location> - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- Has
Replicas bool - Indicates whether a share has replicas or not.
- Host string
- The share host name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - The owner of the Share.
- Replication
Type string - The share replication type.
- string
- The UUID of the share server.
- All
Metadata map[string]string - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- Export
Locations []ShareExport Location - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- Has
Replicas bool - Indicates whether a share has replicas or not.
- Host string
- The share host name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - The owner of the Share.
- Replication
Type string - The share replication type.
- string
- The UUID of the share server.
- all
Metadata Map<String,String> - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- export
Locations List<ShareExport Location> - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- has
Replicas Boolean - Indicates whether a share has replicas or not.
- host String
- The share host name.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - The owner of the Share.
- replication
Type String - The share replication type.
- String
- The UUID of the share server.
- all
Metadata {[key: string]: string} - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- export
Locations ShareExport Location[] - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- has
Replicas boolean - Indicates whether a share has replicas or not.
- host string
- The share host name.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - The owner of the Share.
- replication
Type string - The share replication type.
- string
- The UUID of the share server.
- all_
metadata Mapping[str, str] - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- export_
locations Sequence[ShareExport Location] - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- has_
replicas bool - Indicates whether a share has replicas or not.
- host str
- The share host name.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - The owner of the Share.
- replication_
type str - The share replication type.
- str
- The UUID of the share server.
- all
Metadata Map<String> - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- export
Locations List<Property Map> - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- has
Replicas Boolean - Indicates whether a share has replicas or not.
- host String
- The share host name.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - The owner of the Share.
- replication
Type String - The share replication type.
- String
- The UUID of the share server.
Look up Existing Share Resource
Get an existing Share resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ShareState, opts?: CustomResourceOptions): Share
@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[ShareExportLocationArgs]] = None,
has_replicas: Optional[bool] = None,
host: Optional[str] = None,
is_public: Optional[bool] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
replication_type: Optional[str] = None,
share_network_id: Optional[str] = None,
share_proto: Optional[str] = None,
share_server_id: Optional[str] = None,
share_type: Optional[str] = None,
size: Optional[int] = None,
snapshot_id: Optional[str] = None) -> Share
func GetShare(ctx *Context, name string, id IDInput, state *ShareState, opts ...ResourceOption) (*Share, error)
public static Share Get(string name, Input<string> id, ShareState? state, CustomResourceOptions? opts = null)
public static Share get(String name, Output<String> id, ShareState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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> - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- Availability
Zone string - The share availability zone. Changing this creates a new share.
- Description string
- The human-readable description for the share. Changing this updates the description of the existing share.
- Export
Locations List<Pulumi.Open Stack. Shared File System. Inputs. Share Export Location> - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- Has
Replicas bool - Indicates whether a share has replicas or not.
- Host string
- The share host name.
- Is
Public bool - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- Metadata Dictionary<string, string>
- One or more metadata key and value pairs as a dictionary of strings.
- Name string
- The name of the share. Changing this updates the name of the existing share.
- Project
Id string - The owner of the Share.
- Region string
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- Replication
Type string - The share replication type.
- string
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - string
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- string
- The UUID of the share server.
- string
- The share type name. If you omit this parameter, the default share type is used.
- Size int
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- Snapshot
Id string - The UUID of the share's base snapshot. Changing this creates a new share.
- All
Metadata map[string]string - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- Availability
Zone string - The share availability zone. Changing this creates a new share.
- Description string
- The human-readable description for the share. Changing this updates the description of the existing share.
- Export
Locations []ShareExport Location Args - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- Has
Replicas bool - Indicates whether a share has replicas or not.
- Host string
- The share host name.
- Is
Public bool - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- Metadata map[string]string
- One or more metadata key and value pairs as a dictionary of strings.
- Name string
- The name of the share. Changing this updates the name of the existing share.
- Project
Id string - The owner of the Share.
- Region string
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- Replication
Type string - The share replication type.
- string
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - string
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- string
- The UUID of the share server.
- string
- The share type name. If you omit this parameter, the default share type is used.
- Size int
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- Snapshot
Id string - The UUID of the share's base snapshot. Changing this creates a new share.
- all
Metadata Map<String,String> - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- availability
Zone String - The share availability zone. Changing this creates a new share.
- description String
- The human-readable description for the share. Changing this updates the description of the existing share.
- export
Locations List<ShareExport Location> - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- has
Replicas Boolean - Indicates whether a share has replicas or not.
- host String
- The share host name.
- is
Public Boolean - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- metadata Map<String,String>
- One or more metadata key and value pairs as a dictionary of strings.
- name String
- The name of the share. Changing this updates the name of the existing share.
- project
Id String - The owner of the Share.
- region String
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- replication
Type String - The share replication type.
- String
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - String
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- String
- The UUID of the share server.
- String
- The share type name. If you omit this parameter, the default share type is used.
- size Integer
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- snapshot
Id String - The UUID of the share's base snapshot. Changing this creates a new share.
- all
Metadata {[key: string]: string} - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- availability
Zone string - The share availability zone. Changing this creates a new share.
- description string
- The human-readable description for the share. Changing this updates the description of the existing share.
- export
Locations ShareExport Location[] - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- has
Replicas boolean - Indicates whether a share has replicas or not.
- host string
- The share host name.
- is
Public boolean - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- metadata {[key: string]: string}
- One or more metadata key and value pairs as a dictionary of strings.
- name string
- The name of the share. Changing this updates the name of the existing share.
- project
Id string - The owner of the Share.
- region string
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- replication
Type string - The share replication type.
- string
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - string
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- string
- The UUID of the share server.
- string
- The share type name. If you omit this parameter, the default share type is used.
- size number
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- snapshot
Id string - The UUID of the share's base snapshot. Changing this creates a new share.
- all_
metadata Mapping[str, str] - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- availability_
zone str - The share availability zone. Changing this creates a new share.
- description str
- The human-readable description for the share. Changing this updates the description of the existing share.
- export_
locations Sequence[ShareExport Location Args] - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- has_
replicas bool - Indicates whether a share has replicas or not.
- host str
- The share host name.
- is_
public bool - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- metadata Mapping[str, str]
- One or more metadata key and value pairs as a dictionary of strings.
- name str
- The name of the share. Changing this updates the name of the existing share.
- project_
id str - The owner of the Share.
- region str
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- replication_
type str - The share replication type.
- str
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - str
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- str
- The UUID of the share server.
- str
- The share type name. If you omit this parameter, the default share type is used.
- size int
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- snapshot_
id str - The UUID of the share's base snapshot. Changing this creates a new share.
- all
Metadata Map<String> - The map of metadata, assigned on the share, which has been explicitly and implicitly added.
- availability
Zone String - The share availability zone. Changing this creates a new share.
- description String
- The human-readable description for the share. Changing this updates the description of the existing share.
- export
Locations List<Property Map> - A list of export locations. For example, when a share server has more than one network interface, it can have multiple export locations.
- has
Replicas Boolean - Indicates whether a share has replicas or not.
- host String
- The share host name.
- is
Public Boolean - The level of visibility for the share. Set to true to make share public. Set to false to make it private. Default value is false. Changing this updates the existing share.
- metadata Map<String>
- One or more metadata key and value pairs as a dictionary of strings.
- name String
- The name of the share. Changing this updates the name of the existing share.
- project
Id String - The owner of the Share.
- region String
- The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to create a share. Changing this creates a new share.
- replication
Type String - The share replication type.
- String
- The UUID of a share network where the share server exists
or will be created. If
share_network_id
is not set and you provide asnapshot_id
, the share_network_id value from the snapshot is used. Changing this creates a new share. - String
- The share protocol - can either be NFS, CIFS, CEPHFS, GLUSTERFS, HDFS or MAPRFS. Changing this creates a new share.
- String
- The UUID of the share server.
- String
- The share type name. If you omit this parameter, the default share type is used.
- size Number
- The share size, in GBs. The requested share size cannot be greater than the allowed GB quota. Changing this resizes the existing share.
- snapshot
Id String - The UUID of the share's base snapshot. Changing this creates a new share.
Supporting Types
ShareExportLocation, ShareExportLocationArgs
Import
This resource can be imported by specifying the ID of the share:
$ pulumi import openstack:sharedfilesystem/share:Share share_1 id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.