1. Packages
  2. OpenStack
  3. API Docs
  4. sharedfilesystem
  5. ShareAccess
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

openstack.sharedfilesystem.ShareAccess

Explore with Pulumi AI

openstack logo
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

    Example Usage

    NFS

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const network1 = new openstack.networking.Network("network1", {adminStateUp: true});
    const subnet1 = new openstack.networking.Subnet("subnet1", {
        cidr: "192.168.199.0/24",
        ipVersion: 4,
        networkId: network1.id,
    });
    const sharenetwork1 = new openstack.sharedfilesystem.ShareNetwork("sharenetwork1", {
        description: "test share network with security services",
        neutronNetId: network1.id,
        neutronSubnetId: subnet1.id,
    });
    const share1 = new openstack.sharedfilesystem.Share("share1", {
        description: "test share description",
        shareProto: "NFS",
        size: 1,
        shareNetworkId: sharenetwork1.id,
    });
    const shareAccess1 = new openstack.sharedfilesystem.ShareAccess("shareAccess1", {
        shareId: share1.id,
        accessType: "ip",
        accessTo: "192.168.199.10",
        accessLevel: "rw",
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    network1 = openstack.networking.Network("network1", admin_state_up=True)
    subnet1 = openstack.networking.Subnet("subnet1",
        cidr="192.168.199.0/24",
        ip_version=4,
        network_id=network1.id)
    sharenetwork1 = openstack.sharedfilesystem.ShareNetwork("sharenetwork1",
        description="test share network with security services",
        neutron_net_id=network1.id,
        neutron_subnet_id=subnet1.id)
    share1 = openstack.sharedfilesystem.Share("share1",
        description="test share description",
        share_proto="NFS",
        size=1,
        share_network_id=sharenetwork1.id)
    share_access1 = openstack.sharedfilesystem.ShareAccess("shareAccess1",
        share_id=share1.id,
        access_type="ip",
        access_to="192.168.199.10",
        access_level="rw")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/networking"
    	"github.com/pulumi/pulumi-openstack/sdk/v3/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, "network1", &networking.NetworkArgs{
    			AdminStateUp: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		subnet1, err := networking.NewSubnet(ctx, "subnet1", &networking.SubnetArgs{
    			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, "sharenetwork1", &sharedfilesystem.ShareNetworkArgs{
    			Description:     pulumi.String("test share network with security services"),
    			NeutronNetId:    network1.ID(),
    			NeutronSubnetId: subnet1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		share1, err := sharedfilesystem.NewShare(ctx, "share1", &sharedfilesystem.ShareArgs{
    			Description:    pulumi.String("test share description"),
    			ShareProto:     pulumi.String("NFS"),
    			Size:           pulumi.Int(1),
    			ShareNetworkId: sharenetwork1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sharedfilesystem.NewShareAccess(ctx, "shareAccess1", &sharedfilesystem.ShareAccessArgs{
    			ShareId:     share1.ID(),
    			AccessType:  pulumi.String("ip"),
    			AccessTo:    pulumi.String("192.168.199.10"),
    			AccessLevel: pulumi.String("rw"),
    		})
    		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("network1", new()
        {
            AdminStateUp = true,
        });
    
        var subnet1 = new OpenStack.Networking.Subnet("subnet1", new()
        {
            Cidr = "192.168.199.0/24",
            IpVersion = 4,
            NetworkId = network1.Id,
        });
    
        var sharenetwork1 = new OpenStack.SharedFileSystem.ShareNetwork("sharenetwork1", new()
        {
            Description = "test share network with security services",
            NeutronNetId = network1.Id,
            NeutronSubnetId = subnet1.Id,
        });
    
        var share1 = new OpenStack.SharedFileSystem.Share("share1", new()
        {
            Description = "test share description",
            ShareProto = "NFS",
            Size = 1,
            ShareNetworkId = sharenetwork1.Id,
        });
    
        var shareAccess1 = new OpenStack.SharedFileSystem.ShareAccess("shareAccess1", new()
        {
            ShareId = share1.Id,
            AccessType = "ip",
            AccessTo = "192.168.199.10",
            AccessLevel = "rw",
        });
    
    });
    
    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 com.pulumi.openstack.sharedfilesystem.ShareAccess;
    import com.pulumi.openstack.sharedfilesystem.ShareAccessArgs;
    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()        
                .adminStateUp("true")
                .build());
    
            var subnet1 = new Subnet("subnet1", SubnetArgs.builder()        
                .cidr("192.168.199.0/24")
                .ipVersion(4)
                .networkId(network1.id())
                .build());
    
            var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder()        
                .description("test share network with security services")
                .neutronNetId(network1.id())
                .neutronSubnetId(subnet1.id())
                .build());
    
            var share1 = new Share("share1", ShareArgs.builder()        
                .description("test share description")
                .shareProto("NFS")
                .size(1)
                .shareNetworkId(sharenetwork1.id())
                .build());
    
            var shareAccess1 = new ShareAccess("shareAccess1", ShareAccessArgs.builder()        
                .shareId(share1.id())
                .accessType("ip")
                .accessTo("192.168.199.10")
                .accessLevel("rw")
                .build());
    
        }
    }
    
    resources:
      network1:
        type: openstack:networking:Network
        properties:
          adminStateUp: 'true'
      subnet1:
        type: openstack:networking:Subnet
        properties:
          cidr: 192.168.199.0/24
          ipVersion: 4
          networkId: ${network1.id}
      sharenetwork1:
        type: openstack:sharedfilesystem:ShareNetwork
        properties:
          description: test share network with security services
          neutronNetId: ${network1.id}
          neutronSubnetId: ${subnet1.id}
      share1:
        type: openstack:sharedfilesystem:Share
        properties:
          description: test share description
          shareProto: NFS
          size: 1
          shareNetworkId: ${sharenetwork1.id}
      shareAccess1:
        type: openstack:sharedfilesystem:ShareAccess
        properties:
          shareId: ${share1.id}
          accessType: ip
          accessTo: 192.168.199.10
          accessLevel: rw
    

    CIFS

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const network1 = new openstack.networking.Network("network1", {adminStateUp: true});
    const subnet1 = new openstack.networking.Subnet("subnet1", {
        cidr: "192.168.199.0/24",
        ipVersion: 4,
        networkId: network1.id,
    });
    const securityservice1 = new openstack.sharedfilesystem.SecurityService("securityservice1", {
        description: "created by terraform",
        type: "active_directory",
        server: "192.168.199.10",
        dnsIp: "192.168.199.10",
        domain: "example.com",
        ou: "CN=Computers,DC=example,DC=com",
        user: "joinDomainUser",
        password: "s8cret",
    });
    const sharenetwork1 = new openstack.sharedfilesystem.ShareNetwork("sharenetwork1", {
        description: "share the secure love",
        neutronNetId: network1.id,
        neutronSubnetId: subnet1.id,
        securityServiceIds: [securityservice1.id],
    });
    const share1 = new openstack.sharedfilesystem.Share("share1", {
        shareProto: "CIFS",
        size: 1,
        shareNetworkId: sharenetwork1.id,
    });
    const shareAccess1 = new openstack.sharedfilesystem.ShareAccess("shareAccess1", {
        shareId: share1.id,
        accessType: "user",
        accessTo: "windows",
        accessLevel: "ro",
    });
    const shareAccess2 = new openstack.sharedfilesystem.ShareAccess("shareAccess2", {
        shareId: share1.id,
        accessType: "user",
        accessTo: "linux",
        accessLevel: "rw",
    });
    export const exportLocations = share1.exportLocations;
    
    import pulumi
    import pulumi_openstack as openstack
    
    network1 = openstack.networking.Network("network1", admin_state_up=True)
    subnet1 = openstack.networking.Subnet("subnet1",
        cidr="192.168.199.0/24",
        ip_version=4,
        network_id=network1.id)
    securityservice1 = openstack.sharedfilesystem.SecurityService("securityservice1",
        description="created by terraform",
        type="active_directory",
        server="192.168.199.10",
        dns_ip="192.168.199.10",
        domain="example.com",
        ou="CN=Computers,DC=example,DC=com",
        user="joinDomainUser",
        password="s8cret")
    sharenetwork1 = openstack.sharedfilesystem.ShareNetwork("sharenetwork1",
        description="share the secure love",
        neutron_net_id=network1.id,
        neutron_subnet_id=subnet1.id,
        security_service_ids=[securityservice1.id])
    share1 = openstack.sharedfilesystem.Share("share1",
        share_proto="CIFS",
        size=1,
        share_network_id=sharenetwork1.id)
    share_access1 = openstack.sharedfilesystem.ShareAccess("shareAccess1",
        share_id=share1.id,
        access_type="user",
        access_to="windows",
        access_level="ro")
    share_access2 = openstack.sharedfilesystem.ShareAccess("shareAccess2",
        share_id=share1.id,
        access_type="user",
        access_to="linux",
        access_level="rw")
    pulumi.export("exportLocations", share1.export_locations)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/networking"
    	"github.com/pulumi/pulumi-openstack/sdk/v3/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, "network1", &networking.NetworkArgs{
    			AdminStateUp: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		subnet1, err := networking.NewSubnet(ctx, "subnet1", &networking.SubnetArgs{
    			Cidr:      pulumi.String("192.168.199.0/24"),
    			IpVersion: pulumi.Int(4),
    			NetworkId: network1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		securityservice1, err := sharedfilesystem.NewSecurityService(ctx, "securityservice1", &sharedfilesystem.SecurityServiceArgs{
    			Description: pulumi.String("created by terraform"),
    			Type:        pulumi.String("active_directory"),
    			Server:      pulumi.String("192.168.199.10"),
    			DnsIp:       pulumi.String("192.168.199.10"),
    			Domain:      pulumi.String("example.com"),
    			Ou:          pulumi.String("CN=Computers,DC=example,DC=com"),
    			User:        pulumi.String("joinDomainUser"),
    			Password:    pulumi.String("s8cret"),
    		})
    		if err != nil {
    			return err
    		}
    		sharenetwork1, err := sharedfilesystem.NewShareNetwork(ctx, "sharenetwork1", &sharedfilesystem.ShareNetworkArgs{
    			Description:     pulumi.String("share the secure love"),
    			NeutronNetId:    network1.ID(),
    			NeutronSubnetId: subnet1.ID(),
    			SecurityServiceIds: pulumi.StringArray{
    				securityservice1.ID(),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		share1, err := sharedfilesystem.NewShare(ctx, "share1", &sharedfilesystem.ShareArgs{
    			ShareProto:     pulumi.String("CIFS"),
    			Size:           pulumi.Int(1),
    			ShareNetworkId: sharenetwork1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sharedfilesystem.NewShareAccess(ctx, "shareAccess1", &sharedfilesystem.ShareAccessArgs{
    			ShareId:     share1.ID(),
    			AccessType:  pulumi.String("user"),
    			AccessTo:    pulumi.String("windows"),
    			AccessLevel: pulumi.String("ro"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sharedfilesystem.NewShareAccess(ctx, "shareAccess2", &sharedfilesystem.ShareAccessArgs{
    			ShareId:     share1.ID(),
    			AccessType:  pulumi.String("user"),
    			AccessTo:    pulumi.String("linux"),
    			AccessLevel: pulumi.String("rw"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("exportLocations", share1.ExportLocations)
    		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("network1", new()
        {
            AdminStateUp = true,
        });
    
        var subnet1 = new OpenStack.Networking.Subnet("subnet1", new()
        {
            Cidr = "192.168.199.0/24",
            IpVersion = 4,
            NetworkId = network1.Id,
        });
    
        var securityservice1 = new OpenStack.SharedFileSystem.SecurityService("securityservice1", new()
        {
            Description = "created by terraform",
            Type = "active_directory",
            Server = "192.168.199.10",
            DnsIp = "192.168.199.10",
            Domain = "example.com",
            Ou = "CN=Computers,DC=example,DC=com",
            User = "joinDomainUser",
            Password = "s8cret",
        });
    
        var sharenetwork1 = new OpenStack.SharedFileSystem.ShareNetwork("sharenetwork1", new()
        {
            Description = "share the secure love",
            NeutronNetId = network1.Id,
            NeutronSubnetId = subnet1.Id,
            SecurityServiceIds = new[]
            {
                securityservice1.Id,
            },
        });
    
        var share1 = new OpenStack.SharedFileSystem.Share("share1", new()
        {
            ShareProto = "CIFS",
            Size = 1,
            ShareNetworkId = sharenetwork1.Id,
        });
    
        var shareAccess1 = new OpenStack.SharedFileSystem.ShareAccess("shareAccess1", new()
        {
            ShareId = share1.Id,
            AccessType = "user",
            AccessTo = "windows",
            AccessLevel = "ro",
        });
    
        var shareAccess2 = new OpenStack.SharedFileSystem.ShareAccess("shareAccess2", new()
        {
            ShareId = share1.Id,
            AccessType = "user",
            AccessTo = "linux",
            AccessLevel = "rw",
        });
    
        return new Dictionary<string, object?>
        {
            ["exportLocations"] = share1.ExportLocations,
        };
    });
    
    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.SecurityService;
    import com.pulumi.openstack.sharedfilesystem.SecurityServiceArgs;
    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 com.pulumi.openstack.sharedfilesystem.ShareAccess;
    import com.pulumi.openstack.sharedfilesystem.ShareAccessArgs;
    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()        
                .adminStateUp("true")
                .build());
    
            var subnet1 = new Subnet("subnet1", SubnetArgs.builder()        
                .cidr("192.168.199.0/24")
                .ipVersion(4)
                .networkId(network1.id())
                .build());
    
            var securityservice1 = new SecurityService("securityservice1", SecurityServiceArgs.builder()        
                .description("created by terraform")
                .type("active_directory")
                .server("192.168.199.10")
                .dnsIp("192.168.199.10")
                .domain("example.com")
                .ou("CN=Computers,DC=example,DC=com")
                .user("joinDomainUser")
                .password("s8cret")
                .build());
    
            var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder()        
                .description("share the secure love")
                .neutronNetId(network1.id())
                .neutronSubnetId(subnet1.id())
                .securityServiceIds(securityservice1.id())
                .build());
    
            var share1 = new Share("share1", ShareArgs.builder()        
                .shareProto("CIFS")
                .size(1)
                .shareNetworkId(sharenetwork1.id())
                .build());
    
            var shareAccess1 = new ShareAccess("shareAccess1", ShareAccessArgs.builder()        
                .shareId(share1.id())
                .accessType("user")
                .accessTo("windows")
                .accessLevel("ro")
                .build());
    
            var shareAccess2 = new ShareAccess("shareAccess2", ShareAccessArgs.builder()        
                .shareId(share1.id())
                .accessType("user")
                .accessTo("linux")
                .accessLevel("rw")
                .build());
    
            ctx.export("exportLocations", share1.exportLocations());
        }
    }
    
    resources:
      network1:
        type: openstack:networking:Network
        properties:
          adminStateUp: 'true'
      subnet1:
        type: openstack:networking:Subnet
        properties:
          cidr: 192.168.199.0/24
          ipVersion: 4
          networkId: ${network1.id}
      securityservice1:
        type: openstack:sharedfilesystem:SecurityService
        properties:
          description: created by terraform
          type: active_directory
          server: 192.168.199.10
          dnsIp: 192.168.199.10
          domain: example.com
          ou: CN=Computers,DC=example,DC=com
          user: joinDomainUser
          password: s8cret
      sharenetwork1:
        type: openstack:sharedfilesystem:ShareNetwork
        properties:
          description: share the secure love
          neutronNetId: ${network1.id}
          neutronSubnetId: ${subnet1.id}
          securityServiceIds:
            - ${securityservice1.id}
      share1:
        type: openstack:sharedfilesystem:Share
        properties:
          shareProto: CIFS
          size: 1
          shareNetworkId: ${sharenetwork1.id}
      shareAccess1:
        type: openstack:sharedfilesystem:ShareAccess
        properties:
          shareId: ${share1.id}
          accessType: user
          accessTo: windows
          accessLevel: ro
      shareAccess2:
        type: openstack:sharedfilesystem:ShareAccess
        properties:
          shareId: ${share1.id}
          accessType: user
          accessTo: linux
          accessLevel: rw
    outputs:
      exportLocations: ${share1.exportLocations}
    

    Create ShareAccess Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ShareAccess(name: string, args: ShareAccessArgs, opts?: CustomResourceOptions);
    @overload
    def ShareAccess(resource_name: str,
                    args: ShareAccessArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ShareAccess(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    access_level: Optional[str] = None,
                    access_to: Optional[str] = None,
                    access_type: Optional[str] = None,
                    share_id: Optional[str] = None,
                    region: Optional[str] = None)
    func NewShareAccess(ctx *Context, name string, args ShareAccessArgs, opts ...ResourceOption) (*ShareAccess, error)
    public ShareAccess(string name, ShareAccessArgs args, CustomResourceOptions? opts = null)
    public ShareAccess(String name, ShareAccessArgs args)
    public ShareAccess(String name, ShareAccessArgs args, CustomResourceOptions options)
    
    type: openstack:sharedfilesystem:ShareAccess
    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 ShareAccessArgs
    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 ShareAccessArgs
    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 ShareAccessArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ShareAccessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ShareAccessArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var shareAccessResource = new OpenStack.SharedFileSystem.ShareAccess("shareAccessResource", new()
    {
        AccessLevel = "string",
        AccessTo = "string",
        AccessType = "string",
        ShareId = "string",
        Region = "string",
    });
    
    example, err := sharedfilesystem.NewShareAccess(ctx, "shareAccessResource", &sharedfilesystem.ShareAccessArgs{
    	AccessLevel: pulumi.String("string"),
    	AccessTo:    pulumi.String("string"),
    	AccessType:  pulumi.String("string"),
    	ShareId:     pulumi.String("string"),
    	Region:      pulumi.String("string"),
    })
    
    var shareAccessResource = new ShareAccess("shareAccessResource", ShareAccessArgs.builder()        
        .accessLevel("string")
        .accessTo("string")
        .accessType("string")
        .shareId("string")
        .region("string")
        .build());
    
    share_access_resource = openstack.sharedfilesystem.ShareAccess("shareAccessResource",
        access_level="string",
        access_to="string",
        access_type="string",
        share_id="string",
        region="string")
    
    const shareAccessResource = new openstack.sharedfilesystem.ShareAccess("shareAccessResource", {
        accessLevel: "string",
        accessTo: "string",
        accessType: "string",
        shareId: "string",
        region: "string",
    });
    
    type: openstack:sharedfilesystem:ShareAccess
    properties:
        accessLevel: string
        accessTo: string
        accessType: string
        region: string
        shareId: string
    

    ShareAccess Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ShareAccess resource accepts the following input properties:

    AccessLevel string
    The access level to the share. Can either be rw or ro.
    AccessTo string
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    AccessType string
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    ShareId string
    The UUID of the share to which you are granted access.
    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 access. Changing this creates a new share access.
    AccessLevel string
    The access level to the share. Can either be rw or ro.
    AccessTo string
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    AccessType string
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    ShareId string
    The UUID of the share to which you are granted access.
    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 access. Changing this creates a new share access.
    accessLevel String
    The access level to the share. Can either be rw or ro.
    accessTo String
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType String
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    shareId String
    The UUID of the share to which you are granted access.
    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 access. Changing this creates a new share access.
    accessLevel string
    The access level to the share. Can either be rw or ro.
    accessTo string
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType string
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    shareId string
    The UUID of the share to which you are granted access.
    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 access. Changing this creates a new share access.
    access_level str
    The access level to the share. Can either be rw or ro.
    access_to str
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    access_type str
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    share_id str
    The UUID of the share to which you are granted access.
    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 access. Changing this creates a new share access.
    accessLevel String
    The access level to the share. Can either be rw or ro.
    accessTo String
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType String
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    shareId String
    The UUID of the share to which you are granted access.
    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 access. Changing this creates a new share access.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ShareAccess resource produces the following output properties:

    AccessKey string
    The access credential of the entity granted access.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The share access state.
    AccessKey string
    The access credential of the entity granted access.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The share access state.
    accessKey String
    The access credential of the entity granted access.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The share access state.
    accessKey string
    The access credential of the entity granted access.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The share access state.
    access_key str
    The access credential of the entity granted access.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The share access state.
    accessKey String
    The access credential of the entity granted access.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The share access state.

    Look up Existing ShareAccess Resource

    Get an existing ShareAccess 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?: ShareAccessState, opts?: CustomResourceOptions): ShareAccess
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key: Optional[str] = None,
            access_level: Optional[str] = None,
            access_to: Optional[str] = None,
            access_type: Optional[str] = None,
            region: Optional[str] = None,
            share_id: Optional[str] = None,
            state: Optional[str] = None) -> ShareAccess
    func GetShareAccess(ctx *Context, name string, id IDInput, state *ShareAccessState, opts ...ResourceOption) (*ShareAccess, error)
    public static ShareAccess Get(string name, Input<string> id, ShareAccessState? state, CustomResourceOptions? opts = null)
    public static ShareAccess get(String name, Output<String> id, ShareAccessState 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.
    The following state arguments are supported:
    AccessKey string
    The access credential of the entity granted access.
    AccessLevel string
    The access level to the share. Can either be rw or ro.
    AccessTo string
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    AccessType string
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    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 access. Changing this creates a new share access.
    ShareId string
    The UUID of the share to which you are granted access.
    State string
    The share access state.
    AccessKey string
    The access credential of the entity granted access.
    AccessLevel string
    The access level to the share. Can either be rw or ro.
    AccessTo string
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    AccessType string
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    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 access. Changing this creates a new share access.
    ShareId string
    The UUID of the share to which you are granted access.
    State string
    The share access state.
    accessKey String
    The access credential of the entity granted access.
    accessLevel String
    The access level to the share. Can either be rw or ro.
    accessTo String
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType String
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    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 access. Changing this creates a new share access.
    shareId String
    The UUID of the share to which you are granted access.
    state String
    The share access state.
    accessKey string
    The access credential of the entity granted access.
    accessLevel string
    The access level to the share. Can either be rw or ro.
    accessTo string
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType string
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    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 access. Changing this creates a new share access.
    shareId string
    The UUID of the share to which you are granted access.
    state string
    The share access state.
    access_key str
    The access credential of the entity granted access.
    access_level str
    The access level to the share. Can either be rw or ro.
    access_to str
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    access_type str
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    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 access. Changing this creates a new share access.
    share_id str
    The UUID of the share to which you are granted access.
    state str
    The share access state.
    accessKey String
    The access credential of the entity granted access.
    accessLevel String
    The access level to the share. Can either be rw or ro.
    accessTo String
    The value that defines the access. Can either be an IP address or a username verified by configured Security Service of the Share Network.
    accessType String
    The access rule type. Can either be an ip, user, cert, or cephx. cephx support requires an OpenStack environment that supports Shared Filesystem microversion 2.13 (Mitaka) or later.
    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 access. Changing this creates a new share access.
    shareId String
    The UUID of the share to which you are granted access.
    state String
    The share access state.

    Import

    This resource can be imported by specifying the ID of the share and the ID of the share access, separated by a slash, e.g.:

    $ pulumi import openstack:sharedfilesystem/shareAccess:ShareAccess share_access_1 share_id/share_access_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.
    openstack logo
    OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi