1. Packages
  2. stackit
  3. API Docs
  4. SfsExportPolicy
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    SFS export policy resource schema. Must have a region specified in the provider configuration.

    This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.

    Example Usage

    resource "stackit_sfs_export_policy" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "example"
      rules = [
        {
          ip_acl = ["172.16.0.0/24", "172.16.0.250/32"]
          order  = 1
        }
      ]
    }
    
    # Only use the import statement, if you want to import an existing export policy
    import {
      to = stackit_sfs_export_policy.example
      id = "${var.project_id},${var.region},${var.policy_id}"
    }
    

    Create SfsExportPolicy Resource

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

    Constructor syntax

    new SfsExportPolicy(name: string, args: SfsExportPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def SfsExportPolicy(resource_name: str,
                        args: SfsExportPolicyArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SfsExportPolicy(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        project_id: Optional[str] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None,
                        rules: Optional[Sequence[SfsExportPolicyRuleArgs]] = None)
    func NewSfsExportPolicy(ctx *Context, name string, args SfsExportPolicyArgs, opts ...ResourceOption) (*SfsExportPolicy, error)
    public SfsExportPolicy(string name, SfsExportPolicyArgs args, CustomResourceOptions? opts = null)
    public SfsExportPolicy(String name, SfsExportPolicyArgs args)
    public SfsExportPolicy(String name, SfsExportPolicyArgs args, CustomResourceOptions options)
    
    type: stackit:SfsExportPolicy
    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 SfsExportPolicyArgs
    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 SfsExportPolicyArgs
    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 SfsExportPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SfsExportPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SfsExportPolicyArgs
    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 sfsExportPolicyResource = new Stackit.SfsExportPolicy("sfsExportPolicyResource", new()
    {
        ProjectId = "string",
        Name = "string",
        Region = "string",
        Rules = new[]
        {
            new Stackit.Inputs.SfsExportPolicyRuleArgs
            {
                IpAcls = new[]
                {
                    "string",
                },
                Order = 0,
                Description = "string",
                ReadOnly = false,
                SetUuid = false,
                SuperUser = false,
            },
        },
    });
    
    example, err := stackit.NewSfsExportPolicy(ctx, "sfsExportPolicyResource", &stackit.SfsExportPolicyArgs{
    	ProjectId: pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	Region:    pulumi.String("string"),
    	Rules: stackit.SfsExportPolicyRuleArray{
    		&stackit.SfsExportPolicyRuleArgs{
    			IpAcls: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Order:       pulumi.Int(0),
    			Description: pulumi.String("string"),
    			ReadOnly:    pulumi.Bool(false),
    			SetUuid:     pulumi.Bool(false),
    			SuperUser:   pulumi.Bool(false),
    		},
    	},
    })
    
    var sfsExportPolicyResource = new SfsExportPolicy("sfsExportPolicyResource", SfsExportPolicyArgs.builder()
        .projectId("string")
        .name("string")
        .region("string")
        .rules(SfsExportPolicyRuleArgs.builder()
            .ipAcls("string")
            .order(0)
            .description("string")
            .readOnly(false)
            .setUuid(false)
            .superUser(false)
            .build())
        .build());
    
    sfs_export_policy_resource = stackit.SfsExportPolicy("sfsExportPolicyResource",
        project_id="string",
        name="string",
        region="string",
        rules=[{
            "ip_acls": ["string"],
            "order": 0,
            "description": "string",
            "read_only": False,
            "set_uuid": False,
            "super_user": False,
        }])
    
    const sfsExportPolicyResource = new stackit.SfsExportPolicy("sfsExportPolicyResource", {
        projectId: "string",
        name: "string",
        region: "string",
        rules: [{
            ipAcls: ["string"],
            order: 0,
            description: "string",
            readOnly: false,
            setUuid: false,
            superUser: false,
        }],
    });
    
    type: stackit:SfsExportPolicy
    properties:
        name: string
        projectId: string
        region: string
        rules:
            - description: string
              ipAcls:
                - string
              order: 0
              readOnly: false
              setUuid: false
              superUser: false
    

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

    ProjectId string
    STACKIT project ID to which the export policy is associated.
    Name string
    Name of the export policy.
    Region string
    The resource region. If not defined, the provider region is used.
    Rules List<SfsExportPolicyRule>
    ProjectId string
    STACKIT project ID to which the export policy is associated.
    Name string
    Name of the export policy.
    Region string
    The resource region. If not defined, the provider region is used.
    Rules []SfsExportPolicyRuleArgs
    projectId String
    STACKIT project ID to which the export policy is associated.
    name String
    Name of the export policy.
    region String
    The resource region. If not defined, the provider region is used.
    rules List<SfsExportPolicyRule>
    projectId string
    STACKIT project ID to which the export policy is associated.
    name string
    Name of the export policy.
    region string
    The resource region. If not defined, the provider region is used.
    rules SfsExportPolicyRule[]
    project_id str
    STACKIT project ID to which the export policy is associated.
    name str
    Name of the export policy.
    region str
    The resource region. If not defined, the provider region is used.
    rules Sequence[SfsExportPolicyRuleArgs]
    projectId String
    STACKIT project ID to which the export policy is associated.
    name String
    Name of the export policy.
    region String
    The resource region. If not defined, the provider region is used.
    rules List<Property Map>

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyId string
    Export policy ID
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyId string
    Export policy ID
    id String
    The provider-assigned unique ID for this managed resource.
    policyId String
    Export policy ID
    id string
    The provider-assigned unique ID for this managed resource.
    policyId string
    Export policy ID
    id str
    The provider-assigned unique ID for this managed resource.
    policy_id str
    Export policy ID
    id String
    The provider-assigned unique ID for this managed resource.
    policyId String
    Export policy ID

    Look up Existing SfsExportPolicy Resource

    Get an existing SfsExportPolicy 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?: SfsExportPolicyState, opts?: CustomResourceOptions): SfsExportPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            policy_id: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            rules: Optional[Sequence[SfsExportPolicyRuleArgs]] = None) -> SfsExportPolicy
    func GetSfsExportPolicy(ctx *Context, name string, id IDInput, state *SfsExportPolicyState, opts ...ResourceOption) (*SfsExportPolicy, error)
    public static SfsExportPolicy Get(string name, Input<string> id, SfsExportPolicyState? state, CustomResourceOptions? opts = null)
    public static SfsExportPolicy get(String name, Output<String> id, SfsExportPolicyState state, CustomResourceOptions options)
    resources:  _:    type: stackit:SfsExportPolicy    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:
    Name string
    Name of the export policy.
    PolicyId string
    Export policy ID
    ProjectId string
    STACKIT project ID to which the export policy is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    Rules List<SfsExportPolicyRule>
    Name string
    Name of the export policy.
    PolicyId string
    Export policy ID
    ProjectId string
    STACKIT project ID to which the export policy is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    Rules []SfsExportPolicyRuleArgs
    name String
    Name of the export policy.
    policyId String
    Export policy ID
    projectId String
    STACKIT project ID to which the export policy is associated.
    region String
    The resource region. If not defined, the provider region is used.
    rules List<SfsExportPolicyRule>
    name string
    Name of the export policy.
    policyId string
    Export policy ID
    projectId string
    STACKIT project ID to which the export policy is associated.
    region string
    The resource region. If not defined, the provider region is used.
    rules SfsExportPolicyRule[]
    name str
    Name of the export policy.
    policy_id str
    Export policy ID
    project_id str
    STACKIT project ID to which the export policy is associated.
    region str
    The resource region. If not defined, the provider region is used.
    rules Sequence[SfsExportPolicyRuleArgs]
    name String
    Name of the export policy.
    policyId String
    Export policy ID
    projectId String
    STACKIT project ID to which the export policy is associated.
    region String
    The resource region. If not defined, the provider region is used.
    rules List<Property Map>

    Supporting Types

    SfsExportPolicyRule, SfsExportPolicyRuleArgs

    IpAcls List<string>
    IP access control list; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP).
    Order int
    Order of the rule within a Share Export Policy. The order is used so that when a client IP matches multiple rules, the first rule is applied
    Description string
    Description of the Rule
    ReadOnly bool
    Flag to indicate if client IPs matching this rule can only mount the share in read only mode
    SetUuid bool
    Flag to honor set UUID
    SuperUser bool
    Flag to indicate if client IPs matching this rule have root access on the Share
    IpAcls []string
    IP access control list; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP).
    Order int
    Order of the rule within a Share Export Policy. The order is used so that when a client IP matches multiple rules, the first rule is applied
    Description string
    Description of the Rule
    ReadOnly bool
    Flag to indicate if client IPs matching this rule can only mount the share in read only mode
    SetUuid bool
    Flag to honor set UUID
    SuperUser bool
    Flag to indicate if client IPs matching this rule have root access on the Share
    ipAcls List<String>
    IP access control list; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP).
    order Integer
    Order of the rule within a Share Export Policy. The order is used so that when a client IP matches multiple rules, the first rule is applied
    description String
    Description of the Rule
    readOnly Boolean
    Flag to indicate if client IPs matching this rule can only mount the share in read only mode
    setUuid Boolean
    Flag to honor set UUID
    superUser Boolean
    Flag to indicate if client IPs matching this rule have root access on the Share
    ipAcls string[]
    IP access control list; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP).
    order number
    Order of the rule within a Share Export Policy. The order is used so that when a client IP matches multiple rules, the first rule is applied
    description string
    Description of the Rule
    readOnly boolean
    Flag to indicate if client IPs matching this rule can only mount the share in read only mode
    setUuid boolean
    Flag to honor set UUID
    superUser boolean
    Flag to indicate if client IPs matching this rule have root access on the Share
    ip_acls Sequence[str]
    IP access control list; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP).
    order int
    Order of the rule within a Share Export Policy. The order is used so that when a client IP matches multiple rules, the first rule is applied
    description str
    Description of the Rule
    read_only bool
    Flag to indicate if client IPs matching this rule can only mount the share in read only mode
    set_uuid bool
    Flag to honor set UUID
    super_user bool
    Flag to indicate if client IPs matching this rule have root access on the Share
    ipAcls List<String>
    IP access control list; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP).
    order Number
    Order of the rule within a Share Export Policy. The order is used so that when a client IP matches multiple rules, the first rule is applied
    description String
    Description of the Rule
    readOnly Boolean
    Flag to indicate if client IPs matching this rule can only mount the share in read only mode
    setUuid Boolean
    Flag to honor set UUID
    superUser Boolean
    Flag to indicate if client IPs matching this rule have root access on the Share

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.