1. Packages
  2. stackit
  3. API Docs
  4. SfsShare
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 Share 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_share" "example" {
      project_id                 = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
      resource_pool_id           = "YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY"
      name                       = "my-nfs-share"
      export_policy              = "high-performance-class"
      space_hard_limit_gigabytes = 32
    }
    
    # Only use the import statement, if you want to import an existing sfs share
    import {
      to = stackit_sfs_resource_pool.resourcepool
      id = "${var.project_id},${var.region},${var.resource_pool_id},${var.share_id}"
    }
    

    Create SfsShare Resource

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

    Constructor syntax

    new SfsShare(name: string, args: SfsShareArgs, opts?: CustomResourceOptions);
    @overload
    def SfsShare(resource_name: str,
                 args: SfsShareArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SfsShare(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 export_policy: Optional[str] = None,
                 project_id: Optional[str] = None,
                 resource_pool_id: Optional[str] = None,
                 space_hard_limit_gigabytes: Optional[int] = None,
                 name: Optional[str] = None,
                 region: Optional[str] = None)
    func NewSfsShare(ctx *Context, name string, args SfsShareArgs, opts ...ResourceOption) (*SfsShare, error)
    public SfsShare(string name, SfsShareArgs args, CustomResourceOptions? opts = null)
    public SfsShare(String name, SfsShareArgs args)
    public SfsShare(String name, SfsShareArgs args, CustomResourceOptions options)
    
    type: stackit:SfsShare
    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 SfsShareArgs
    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 SfsShareArgs
    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 SfsShareArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SfsShareArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SfsShareArgs
    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 sfsShareResource = new Stackit.SfsShare("sfsShareResource", new()
    {
        ExportPolicy = "string",
        ProjectId = "string",
        ResourcePoolId = "string",
        SpaceHardLimitGigabytes = 0,
        Name = "string",
        Region = "string",
    });
    
    example, err := stackit.NewSfsShare(ctx, "sfsShareResource", &stackit.SfsShareArgs{
    	ExportPolicy:            pulumi.String("string"),
    	ProjectId:               pulumi.String("string"),
    	ResourcePoolId:          pulumi.String("string"),
    	SpaceHardLimitGigabytes: pulumi.Int(0),
    	Name:                    pulumi.String("string"),
    	Region:                  pulumi.String("string"),
    })
    
    var sfsShareResource = new SfsShare("sfsShareResource", SfsShareArgs.builder()
        .exportPolicy("string")
        .projectId("string")
        .resourcePoolId("string")
        .spaceHardLimitGigabytes(0)
        .name("string")
        .region("string")
        .build());
    
    sfs_share_resource = stackit.SfsShare("sfsShareResource",
        export_policy="string",
        project_id="string",
        resource_pool_id="string",
        space_hard_limit_gigabytes=0,
        name="string",
        region="string")
    
    const sfsShareResource = new stackit.SfsShare("sfsShareResource", {
        exportPolicy: "string",
        projectId: "string",
        resourcePoolId: "string",
        spaceHardLimitGigabytes: 0,
        name: "string",
        region: "string",
    });
    
    type: stackit:SfsShare
    properties:
        exportPolicy: string
        name: string
        projectId: string
        region: string
        resourcePoolId: string
        spaceHardLimitGigabytes: 0
    

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

    ExportPolicy string
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    ProjectId string
    STACKIT project ID to which the share is associated.
    ResourcePoolId string
    The ID of the resource pool for the SFS share.
    SpaceHardLimitGigabytes int
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    Name string
    Name of the share.
    Region string
    The resource region. If not defined, the provider region is used.
    ExportPolicy string
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    ProjectId string
    STACKIT project ID to which the share is associated.
    ResourcePoolId string
    The ID of the resource pool for the SFS share.
    SpaceHardLimitGigabytes int
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    Name string
    Name of the share.
    Region string
    The resource region. If not defined, the provider region is used.
    exportPolicy String
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    projectId String
    STACKIT project ID to which the share is associated.
    resourcePoolId String
    The ID of the resource pool for the SFS share.
    spaceHardLimitGigabytes Integer
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    name String
    Name of the share.
    region String
    The resource region. If not defined, the provider region is used.
    exportPolicy string
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    projectId string
    STACKIT project ID to which the share is associated.
    resourcePoolId string
    The ID of the resource pool for the SFS share.
    spaceHardLimitGigabytes number
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    name string
    Name of the share.
    region string
    The resource region. If not defined, the provider region is used.
    export_policy str
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    project_id str
    STACKIT project ID to which the share is associated.
    resource_pool_id str
    The ID of the resource pool for the SFS share.
    space_hard_limit_gigabytes int
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    name str
    Name of the share.
    region str
    The resource region. If not defined, the provider region is used.
    exportPolicy String
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    projectId String
    STACKIT project ID to which the share is associated.
    resourcePoolId String
    The ID of the resource pool for the SFS share.
    spaceHardLimitGigabytes Number
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    name String
    Name of the share.
    region String
    The resource region. If not defined, the provider region is used.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    MountPath string
    Mount path of the Share, used to mount the Share
    ShareId string
    share ID
    Id string
    The provider-assigned unique ID for this managed resource.
    MountPath string
    Mount path of the Share, used to mount the Share
    ShareId string
    share ID
    id String
    The provider-assigned unique ID for this managed resource.
    mountPath String
    Mount path of the Share, used to mount the Share
    shareId String
    share ID
    id string
    The provider-assigned unique ID for this managed resource.
    mountPath string
    Mount path of the Share, used to mount the Share
    shareId string
    share ID
    id str
    The provider-assigned unique ID for this managed resource.
    mount_path str
    Mount path of the Share, used to mount the Share
    share_id str
    share ID
    id String
    The provider-assigned unique ID for this managed resource.
    mountPath String
    Mount path of the Share, used to mount the Share
    shareId String
    share ID

    Look up Existing SfsShare Resource

    Get an existing SfsShare 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?: SfsShareState, opts?: CustomResourceOptions): SfsShare
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            export_policy: Optional[str] = None,
            mount_path: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            resource_pool_id: Optional[str] = None,
            share_id: Optional[str] = None,
            space_hard_limit_gigabytes: Optional[int] = None) -> SfsShare
    func GetSfsShare(ctx *Context, name string, id IDInput, state *SfsShareState, opts ...ResourceOption) (*SfsShare, error)
    public static SfsShare Get(string name, Input<string> id, SfsShareState? state, CustomResourceOptions? opts = null)
    public static SfsShare get(String name, Output<String> id, SfsShareState state, CustomResourceOptions options)
    resources:  _:    type: stackit:SfsShare    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:
    ExportPolicy string
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    MountPath string
    Mount path of the Share, used to mount the Share
    Name string
    Name of the share.
    ProjectId string
    STACKIT project ID to which the share is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ResourcePoolId string
    The ID of the resource pool for the SFS share.
    ShareId string
    share ID
    SpaceHardLimitGigabytes int
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    ExportPolicy string
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    MountPath string
    Mount path of the Share, used to mount the Share
    Name string
    Name of the share.
    ProjectId string
    STACKIT project ID to which the share is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ResourcePoolId string
    The ID of the resource pool for the SFS share.
    ShareId string
    share ID
    SpaceHardLimitGigabytes int
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    exportPolicy String
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    mountPath String
    Mount path of the Share, used to mount the Share
    name String
    Name of the share.
    projectId String
    STACKIT project ID to which the share is associated.
    region String
    The resource region. If not defined, the provider region is used.
    resourcePoolId String
    The ID of the resource pool for the SFS share.
    shareId String
    share ID
    spaceHardLimitGigabytes Integer
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    exportPolicy string
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    mountPath string
    Mount path of the Share, used to mount the Share
    name string
    Name of the share.
    projectId string
    STACKIT project ID to which the share is associated.
    region string
    The resource region. If not defined, the provider region is used.
    resourcePoolId string
    The ID of the resource pool for the SFS share.
    shareId string
    share ID
    spaceHardLimitGigabytes number
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    export_policy str
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    mount_path str
    Mount path of the Share, used to mount the Share
    name str
    Name of the share.
    project_id str
    STACKIT project ID to which the share is associated.
    region str
    The resource region. If not defined, the provider region is used.
    resource_pool_id str
    The ID of the resource pool for the SFS share.
    share_id str
    share ID
    space_hard_limit_gigabytes int
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)
    exportPolicy String
    Name of the Share Export Policy to use in the Share. Note that if this is set to an empty string, the Share can only be mounted in read only by clients with IPs matching the IP ACL of the Resource Pool hosting this Share. You can also assign a Share Export Policy after creating the Share
    mountPath String
    Mount path of the Share, used to mount the Share
    name String
    Name of the share.
    projectId String
    STACKIT project ID to which the share is associated.
    region String
    The resource region. If not defined, the provider region is used.
    resourcePoolId String
    The ID of the resource pool for the SFS share.
    shareId String
    share ID
    spaceHardLimitGigabytes Number
    Space hard limit for the Share. If zero, the Share will have access to the full space of the Resource Pool it lives in. (unit: gigabytes)

    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.