published on Friday, Feb 20, 2026 by stackitcloud
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:
- Project
Id 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<Sfs
Export Policy Rule>
- Project
Id 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
[]Sfs
Export Policy Rule Args
- project
Id 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<Sfs
Export Policy Rule>
- project
Id 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
Sfs
Export Policy Rule[]
- 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[Sfs
Export Policy Rule Args]
- project
Id 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:
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) -> SfsExportPolicyfunc 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.
- 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[Sfs
Export Policy Rule Args]
Supporting Types
SfsExportPolicyRule, SfsExportPolicyRuleArgs
- Ip
Acls 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
- 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
- Ip
Acls []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
- 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
- ip
Acls 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
- read
Only Boolean - Flag to indicate if client IPs matching this rule can only mount the share in read only mode
- set
Uuid Boolean - Flag to honor set UUID
- super
User Boolean - Flag to indicate if client IPs matching this rule have root access on the Share
- ip
Acls 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
- read
Only boolean - Flag to indicate if client IPs matching this rule can only mount the share in read only mode
- set
Uuid boolean - Flag to honor set UUID
- super
User 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
- ip
Acls 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
- read
Only Boolean - Flag to indicate if client IPs matching this rule can only mount the share in read only mode
- set
Uuid Boolean - Flag to honor set UUID
- super
User 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
stackitTerraform Provider.
published on Friday, Feb 20, 2026 by stackitcloud
