1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. SfsAccessRuleV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.SfsAccessRuleV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Provides an access rule resource of Scalable File Resource (SFS).

    Example Usage

    Usage in VPC authorization scenarios

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const shareName = config.requireObject("shareName");
    const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
    const share_file = new flexibleengine.SfsFileSystemV2("share-file", {
        size: 100,
        shareProto: "NFS",
    });
    const rule1 = new flexibleengine.SfsAccessRuleV2("rule1", {
        sfsId: share_file.sfsFileSystemV2Id,
        accessTo: exampleVpc.vpcV1Id,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    share_name = config.require_object("shareName")
    example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
    share_file = flexibleengine.SfsFileSystemV2("share-file",
        size=100,
        share_proto="NFS")
    rule1 = flexibleengine.SfsAccessRuleV2("rule1",
        sfs_id=share_file.sfs_file_system_v2_id,
        access_to=example_vpc.vpc_v1_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		shareName := cfg.RequireObject("shareName")
    		exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
    			Cidr: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		share_file, err := flexibleengine.NewSfsFileSystemV2(ctx, "share-file", &flexibleengine.SfsFileSystemV2Args{
    			Size:       pulumi.Float64(100),
    			ShareProto: pulumi.String("NFS"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewSfsAccessRuleV2(ctx, "rule1", &flexibleengine.SfsAccessRuleV2Args{
    			SfsId:    share_file.SfsFileSystemV2Id,
    			AccessTo: exampleVpc.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var shareName = config.RequireObject<dynamic>("shareName");
        var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
        {
            Cidr = "192.168.0.0/16",
        });
    
        var share_file = new Flexibleengine.SfsFileSystemV2("share-file", new()
        {
            Size = 100,
            ShareProto = "NFS",
        });
    
        var rule1 = new Flexibleengine.SfsAccessRuleV2("rule1", new()
        {
            SfsId = share_file.SfsFileSystemV2Id,
            AccessTo = exampleVpc.VpcV1Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.VpcV1;
    import com.pulumi.flexibleengine.VpcV1Args;
    import com.pulumi.flexibleengine.SfsFileSystemV2;
    import com.pulumi.flexibleengine.SfsFileSystemV2Args;
    import com.pulumi.flexibleengine.SfsAccessRuleV2;
    import com.pulumi.flexibleengine.SfsAccessRuleV2Args;
    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 config = ctx.config();
            final var shareName = config.get("shareName");
            var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
                .cidr("192.168.0.0/16")
                .build());
    
            var share_file = new SfsFileSystemV2("share-file", SfsFileSystemV2Args.builder()
                .size(100)
                .shareProto("NFS")
                .build());
    
            var rule1 = new SfsAccessRuleV2("rule1", SfsAccessRuleV2Args.builder()
                .sfsId(share_file.sfsFileSystemV2Id())
                .accessTo(exampleVpc.vpcV1Id())
                .build());
    
        }
    }
    
    configuration:
      shareName:
        type: dynamic
    resources:
      exampleVpc:
        type: flexibleengine:VpcV1
        properties:
          cidr: 192.168.0.0/16
      share-file:
        type: flexibleengine:SfsFileSystemV2
        properties:
          size: 100
          shareProto: NFS
      rule1:
        type: flexibleengine:SfsAccessRuleV2
        properties:
          sfsId: ${["share-file"].sfsFileSystemV2Id}
          accessTo: ${exampleVpc.vpcV1Id}
    

    Create SfsAccessRuleV2 Resource

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

    Constructor syntax

    new SfsAccessRuleV2(name: string, args: SfsAccessRuleV2Args, opts?: CustomResourceOptions);
    @overload
    def SfsAccessRuleV2(resource_name: str,
                        args: SfsAccessRuleV2Args,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SfsAccessRuleV2(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        access_to: Optional[str] = None,
                        sfs_id: Optional[str] = None,
                        access_level: Optional[str] = None,
                        access_type: Optional[str] = None,
                        sfs_access_rule_v2_id: Optional[str] = None,
                        timeouts: Optional[SfsAccessRuleV2TimeoutsArgs] = None)
    func NewSfsAccessRuleV2(ctx *Context, name string, args SfsAccessRuleV2Args, opts ...ResourceOption) (*SfsAccessRuleV2, error)
    public SfsAccessRuleV2(string name, SfsAccessRuleV2Args args, CustomResourceOptions? opts = null)
    public SfsAccessRuleV2(String name, SfsAccessRuleV2Args args)
    public SfsAccessRuleV2(String name, SfsAccessRuleV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:SfsAccessRuleV2
    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 SfsAccessRuleV2Args
    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 SfsAccessRuleV2Args
    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 SfsAccessRuleV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SfsAccessRuleV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SfsAccessRuleV2Args
    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 sfsAccessRuleV2Resource = new Flexibleengine.SfsAccessRuleV2("sfsAccessRuleV2Resource", new()
    {
        AccessTo = "string",
        SfsId = "string",
        AccessLevel = "string",
        AccessType = "string",
        SfsAccessRuleV2Id = "string",
        Timeouts = new Flexibleengine.Inputs.SfsAccessRuleV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := flexibleengine.NewSfsAccessRuleV2(ctx, "sfsAccessRuleV2Resource", &flexibleengine.SfsAccessRuleV2Args{
    	AccessTo:          pulumi.String("string"),
    	SfsId:             pulumi.String("string"),
    	AccessLevel:       pulumi.String("string"),
    	AccessType:        pulumi.String("string"),
    	SfsAccessRuleV2Id: pulumi.String("string"),
    	Timeouts: &flexibleengine.SfsAccessRuleV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var sfsAccessRuleV2Resource = new SfsAccessRuleV2("sfsAccessRuleV2Resource", SfsAccessRuleV2Args.builder()
        .accessTo("string")
        .sfsId("string")
        .accessLevel("string")
        .accessType("string")
        .sfsAccessRuleV2Id("string")
        .timeouts(SfsAccessRuleV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    sfs_access_rule_v2_resource = flexibleengine.SfsAccessRuleV2("sfsAccessRuleV2Resource",
        access_to="string",
        sfs_id="string",
        access_level="string",
        access_type="string",
        sfs_access_rule_v2_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const sfsAccessRuleV2Resource = new flexibleengine.SfsAccessRuleV2("sfsAccessRuleV2Resource", {
        accessTo: "string",
        sfsId: "string",
        accessLevel: "string",
        accessType: "string",
        sfsAccessRuleV2Id: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: flexibleengine:SfsAccessRuleV2
    properties:
        accessLevel: string
        accessTo: string
        accessType: string
        sfsAccessRuleV2Id: string
        sfsId: string
        timeouts:
            create: string
            delete: string
    

    SfsAccessRuleV2 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 SfsAccessRuleV2 resource accepts the following input properties:

    AccessTo string

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    SfsId string
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    AccessLevel string
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    AccessType string
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    SfsAccessRuleV2Id string
    The UUID of the share access rule.
    Timeouts SfsAccessRuleV2Timeouts
    AccessTo string

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    SfsId string
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    AccessLevel string
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    AccessType string
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    SfsAccessRuleV2Id string
    The UUID of the share access rule.
    Timeouts SfsAccessRuleV2TimeoutsArgs
    accessTo String

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    sfsId String
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    accessLevel String
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    accessType String
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    sfsAccessRuleV2Id String
    The UUID of the share access rule.
    timeouts SfsAccessRuleV2Timeouts
    accessTo string

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    sfsId string
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    accessLevel string
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    accessType string
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    sfsAccessRuleV2Id string
    The UUID of the share access rule.
    timeouts SfsAccessRuleV2Timeouts
    access_to str

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    sfs_id str
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    access_level str
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    access_type str
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    sfs_access_rule_v2_id str
    The UUID of the share access rule.
    timeouts SfsAccessRuleV2TimeoutsArgs
    accessTo String

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    sfsId String
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    accessLevel String
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    accessType String
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    sfsAccessRuleV2Id String
    The UUID of the share access rule.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the share access rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the share access rule.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the share access rule.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the share access rule.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the share access rule.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the share access rule.

    Look up Existing SfsAccessRuleV2 Resource

    Get an existing SfsAccessRuleV2 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?: SfsAccessRuleV2State, opts?: CustomResourceOptions): SfsAccessRuleV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_level: Optional[str] = None,
            access_to: Optional[str] = None,
            access_type: Optional[str] = None,
            sfs_access_rule_v2_id: Optional[str] = None,
            sfs_id: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[SfsAccessRuleV2TimeoutsArgs] = None) -> SfsAccessRuleV2
    func GetSfsAccessRuleV2(ctx *Context, name string, id IDInput, state *SfsAccessRuleV2State, opts ...ResourceOption) (*SfsAccessRuleV2, error)
    public static SfsAccessRuleV2 Get(string name, Input<string> id, SfsAccessRuleV2State? state, CustomResourceOptions? opts = null)
    public static SfsAccessRuleV2 get(String name, Output<String> id, SfsAccessRuleV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:SfsAccessRuleV2    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.
    The following state arguments are supported:
    AccessLevel string
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    AccessTo string

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    AccessType string
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    SfsAccessRuleV2Id string
    The UUID of the share access rule.
    SfsId string
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    Status string
    The status of the share access rule.
    Timeouts SfsAccessRuleV2Timeouts
    AccessLevel string
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    AccessTo string

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    AccessType string
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    SfsAccessRuleV2Id string
    The UUID of the share access rule.
    SfsId string
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    Status string
    The status of the share access rule.
    Timeouts SfsAccessRuleV2TimeoutsArgs
    accessLevel String
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    accessTo String

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    accessType String
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    sfsAccessRuleV2Id String
    The UUID of the share access rule.
    sfsId String
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    status String
    The status of the share access rule.
    timeouts SfsAccessRuleV2Timeouts
    accessLevel string
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    accessTo string

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    accessType string
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    sfsAccessRuleV2Id string
    The UUID of the share access rule.
    sfsId string
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    status string
    The status of the share access rule.
    timeouts SfsAccessRuleV2Timeouts
    access_level str
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    access_to str

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    access_type str
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    sfs_access_rule_v2_id str
    The UUID of the share access rule.
    sfs_id str
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    status str
    The status of the share access rule.
    timeouts SfsAccessRuleV2TimeoutsArgs
    accessLevel String
    Specifies the access level of the shared file system. Possible values are ro (read-only and rw (read-write). The default value is rw (read/write). Changing this will create a new access rule.
    accessTo String

    Specifies the value that defines the access rule. The value contains 1 to 255 characters. Changing this will create a new access rule. The value varies according to the scenario:

    • Set the VPC ID in VPC authorization scenarios.
    • Set this parameter in IP address authorization scenario.
    • For an NFS shared file system, the value in the format of VPC_ID#IP_address#priority#user_permission. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#100#all_squash,root_squash.

    • For a CIFS shared file system, the value in the format of VPC_ID#IP_address#priority. For example, 0157b53f-4974-4e80-91c9-098532bcaf00#2.2.2.2/16#0.

    accessType String
    Specifies the type of the share access rule. The default value is cert. Changing this will create a new access rule.
    sfsAccessRuleV2Id String
    The UUID of the share access rule.
    sfsId String
    Specifies the UUID of the shared file system. Changing this will create a new access rule.
    status String
    The status of the share access rule.
    timeouts Property Map

    Supporting Types

    SfsAccessRuleV2Timeouts, SfsAccessRuleV2TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    SFS access rule can be imported by specifying the SFS ID and access rule ID separated by a slash, e.g.:

    $ pulumi import flexibleengine:index/sfsAccessRuleV2:SfsAccessRuleV2 flexibleengine_sfs_access_rule_v2 <sfs_id>/<rule_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud