alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.eds.NasFileSystem

Provides a ECD Nas File System resource.

For information about ECD Nas File System and how to use it, see What is Nas File System.

NOTE: Available in v1.141.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Eds.SimpleOfficeSite("default", new()
    {
        CidrBlock = "172.16.0.0/12",
        DesktopAccessType = "Internet",
        OfficeSiteName = "your_office_site_name",
        EnableInternetAccess = false,
    });

    var example = new AliCloud.Eds.NasFileSystem("example", new()
    {
        NasFileSystemName = "example_value",
        OfficeSiteId = @default.Id,
        Description = "example_value",
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := eds.NewSimpleOfficeSite(ctx, "default", &eds.SimpleOfficeSiteArgs{
			CidrBlock:            pulumi.String("172.16.0.0/12"),
			DesktopAccessType:    pulumi.String("Internet"),
			OfficeSiteName:       pulumi.String("your_office_site_name"),
			EnableInternetAccess: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = eds.NewNasFileSystem(ctx, "example", &eds.NasFileSystemArgs{
			NasFileSystemName: pulumi.String("example_value"),
			OfficeSiteId:      _default.ID(),
			Description:       pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eds.SimpleOfficeSite;
import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs;
import com.pulumi.alicloud.eds.NasFileSystem;
import com.pulumi.alicloud.eds.NasFileSystemArgs;
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 default_ = new SimpleOfficeSite("default", SimpleOfficeSiteArgs.builder()        
            .cidrBlock("172.16.0.0/12")
            .desktopAccessType("Internet")
            .officeSiteName("your_office_site_name")
            .enableInternetAccess(false)
            .build());

        var example = new NasFileSystem("example", NasFileSystemArgs.builder()        
            .nasFileSystemName("example_value")
            .officeSiteId(default_.id())
            .description("example_value")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.eds.SimpleOfficeSite("default",
    cidr_block="172.16.0.0/12",
    desktop_access_type="Internet",
    office_site_name="your_office_site_name",
    enable_internet_access=False)
example = alicloud.eds.NasFileSystem("example",
    nas_file_system_name="example_value",
    office_site_id=default.id,
    description="example_value")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.eds.SimpleOfficeSite("default", {
    cidrBlock: "172.16.0.0/12",
    desktopAccessType: "Internet",
    officeSiteName: "your_office_site_name",
    enableInternetAccess: false,
});
const example = new alicloud.eds.NasFileSystem("example", {
    nasFileSystemName: "example_value",
    officeSiteId: _default.id,
    description: "example_value",
});
resources:
  default:
    type: alicloud:eds:SimpleOfficeSite
    properties:
      cidrBlock: 172.16.0.0/12
      desktopAccessType: Internet
      officeSiteName: your_office_site_name
      enableInternetAccess: false
  example:
    type: alicloud:eds:NasFileSystem
    properties:
      nasFileSystemName: example_value
      officeSiteId: ${default.id}
      description: example_value

Create NasFileSystem Resource

new NasFileSystem(name: string, args: NasFileSystemArgs, opts?: CustomResourceOptions);
@overload
def NasFileSystem(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  file_system_id: Optional[str] = None,
                  mount_target_domain: Optional[str] = None,
                  nas_file_system_name: Optional[str] = None,
                  office_site_id: Optional[str] = None,
                  reset: Optional[bool] = None)
@overload
def NasFileSystem(resource_name: str,
                  args: NasFileSystemArgs,
                  opts: Optional[ResourceOptions] = None)
func NewNasFileSystem(ctx *Context, name string, args NasFileSystemArgs, opts ...ResourceOption) (*NasFileSystem, error)
public NasFileSystem(string name, NasFileSystemArgs args, CustomResourceOptions? opts = null)
public NasFileSystem(String name, NasFileSystemArgs args)
public NasFileSystem(String name, NasFileSystemArgs args, CustomResourceOptions options)
type: alicloud:eds:NasFileSystem
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NasFileSystemArgs
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 NasFileSystemArgs
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 NasFileSystemArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NasFileSystemArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NasFileSystemArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

OfficeSiteId string

The ID of office site.

Description string

The description of nas file system.

FileSystemId string

The filesystem id of nas file system.

MountTargetDomain string

The domain of mount target.

NasFileSystemName string

The name of nas file system.

Reset bool

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

OfficeSiteId string

The ID of office site.

Description string

The description of nas file system.

FileSystemId string

The filesystem id of nas file system.

MountTargetDomain string

The domain of mount target.

NasFileSystemName string

The name of nas file system.

Reset bool

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

officeSiteId String

The ID of office site.

description String

The description of nas file system.

fileSystemId String

The filesystem id of nas file system.

mountTargetDomain String

The domain of mount target.

nasFileSystemName String

The name of nas file system.

reset Boolean

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

officeSiteId string

The ID of office site.

description string

The description of nas file system.

fileSystemId string

The filesystem id of nas file system.

mountTargetDomain string

The domain of mount target.

nasFileSystemName string

The name of nas file system.

reset boolean

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

office_site_id str

The ID of office site.

description str

The description of nas file system.

file_system_id str

The filesystem id of nas file system.

mount_target_domain str

The domain of mount target.

nas_file_system_name str

The name of nas file system.

reset bool

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

officeSiteId String

The ID of office site.

description String

The description of nas file system.

fileSystemId String

The filesystem id of nas file system.

mountTargetDomain String

The domain of mount target.

nasFileSystemName String

The name of nas file system.

reset Boolean

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

Look up Existing NasFileSystem Resource

Get an existing NasFileSystem 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?: NasFileSystemState, opts?: CustomResourceOptions): NasFileSystem
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        file_system_id: Optional[str] = None,
        mount_target_domain: Optional[str] = None,
        nas_file_system_name: Optional[str] = None,
        office_site_id: Optional[str] = None,
        reset: Optional[bool] = None,
        status: Optional[str] = None) -> NasFileSystem
func GetNasFileSystem(ctx *Context, name string, id IDInput, state *NasFileSystemState, opts ...ResourceOption) (*NasFileSystem, error)
public static NasFileSystem Get(string name, Input<string> id, NasFileSystemState? state, CustomResourceOptions? opts = null)
public static NasFileSystem get(String name, Output<String> id, NasFileSystemState 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:
Description string

The description of nas file system.

FileSystemId string

The filesystem id of nas file system.

MountTargetDomain string

The domain of mount target.

NasFileSystemName string

The name of nas file system.

OfficeSiteId string

The ID of office site.

Reset bool

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

Status string

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

Description string

The description of nas file system.

FileSystemId string

The filesystem id of nas file system.

MountTargetDomain string

The domain of mount target.

NasFileSystemName string

The name of nas file system.

OfficeSiteId string

The ID of office site.

Reset bool

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

Status string

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

description String

The description of nas file system.

fileSystemId String

The filesystem id of nas file system.

mountTargetDomain String

The domain of mount target.

nasFileSystemName String

The name of nas file system.

officeSiteId String

The ID of office site.

reset Boolean

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

status String

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

description string

The description of nas file system.

fileSystemId string

The filesystem id of nas file system.

mountTargetDomain string

The domain of mount target.

nasFileSystemName string

The name of nas file system.

officeSiteId string

The ID of office site.

reset boolean

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

status string

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

description str

The description of nas file system.

file_system_id str

The filesystem id of nas file system.

mount_target_domain str

The domain of mount target.

nas_file_system_name str

The name of nas file system.

office_site_id str

The ID of office site.

reset bool

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

status str

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

description String

The description of nas file system.

fileSystemId String

The filesystem id of nas file system.

mountTargetDomain String

The domain of mount target.

nasFileSystemName String

The name of nas file system.

officeSiteId String

The ID of office site.

reset Boolean

The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false.

status String

The status of nas file system. Valid values: Pending, Running, Stopped,Deleting, Deleted, Invalid.

Import

ECD Nas File System can be imported using the id, e.g.

 $ pulumi import alicloud:eds/nasFileSystem:NasFileSystem example <id>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.