1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. nas
  5. AccessPoint
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

alicloud.nas.AccessPoint

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

    Provides a NAS Access Point resource.

    For information about NAS Access Point and how to use it, see What is Access Point.

    NOTE: Available since v1.224.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const regionId = config.get("regionId") || "cn-hangzhou";
    const azone = config.get("azone") || "cn-hangzhou-g";
    const default = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultkyVC70 = new alicloud.vpc.Network("defaultkyVC70", {
        cidrBlock: "172.16.0.0/12",
        description: "接入点测试noRootDirectory",
    });
    const defaultoZAPmO = new alicloud.vpc.Switch("defaultoZAPmO", {
        vpcId: defaultkyVC70.id,
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
        cidrBlock: "172.16.0.0/24",
    });
    const defaultBbc7ev = new alicloud.nas.AccessGroup("defaultBbc7ev", {
        accessGroupType: "Vpc",
        accessGroupName: name,
        fileSystemType: "standard",
    });
    const defaultVtUpDh = new alicloud.nas.FileSystem("defaultVtUpDh", {
        storageType: "Performance",
        zoneId: azone,
        encryptType: 0,
        protocolType: "NFS",
        fileSystemType: "standard",
        description: "AccessPointnoRootDirectory",
    });
    const defaultAccessPoint = new alicloud.nas.AccessPoint("default", {
        vpcId: defaultkyVC70.id,
        accessGroup: defaultBbc7ev.accessGroupName,
        vswitchId: defaultoZAPmO.id,
        fileSystemId: defaultVtUpDh.id,
        accessPointName: name,
        posixUser: {
            posixGroupId: 123,
            posixUserId: 123,
        },
        rootPathPermission: {
            ownerGroupId: 1,
            ownerUserId: 1,
            permission: "0777",
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    region_id = config.get("regionId")
    if region_id is None:
        region_id = "cn-hangzhou"
    azone = config.get("azone")
    if azone is None:
        azone = "cn-hangzhou-g"
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    defaultky_vc70 = alicloud.vpc.Network("defaultkyVC70",
        cidr_block="172.16.0.0/12",
        description="接入点测试noRootDirectory")
    defaulto_za_pm_o = alicloud.vpc.Switch("defaultoZAPmO",
        vpc_id=defaultky_vc70.id,
        zone_id=default.zones[0].id,
        cidr_block="172.16.0.0/24")
    default_bbc7ev = alicloud.nas.AccessGroup("defaultBbc7ev",
        access_group_type="Vpc",
        access_group_name=name,
        file_system_type="standard")
    default_vt_up_dh = alicloud.nas.FileSystem("defaultVtUpDh",
        storage_type="Performance",
        zone_id=azone,
        encrypt_type=0,
        protocol_type="NFS",
        file_system_type="standard",
        description="AccessPointnoRootDirectory")
    default_access_point = alicloud.nas.AccessPoint("default",
        vpc_id=defaultky_vc70.id,
        access_group=default_bbc7ev.access_group_name,
        vswitch_id=defaulto_za_pm_o.id,
        file_system_id=default_vt_up_dh.id,
        access_point_name=name,
        posix_user={
            "posix_group_id": 123,
            "posix_user_id": 123,
        },
        root_path_permission={
            "owner_group_id": 1,
            "owner_user_id": 1,
            "permission": "0777",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"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, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		regionId := "cn-hangzhou"
    		if param := cfg.Get("regionId"); param != "" {
    			regionId = param
    		}
    		azone := "cn-hangzhou-g"
    		if param := cfg.Get("azone"); param != "" {
    			azone = param
    		}
    		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultkyVC70, err := vpc.NewNetwork(ctx, "defaultkyVC70", &vpc.NetworkArgs{
    			CidrBlock:   pulumi.String("172.16.0.0/12"),
    			Description: pulumi.String("接入点测试noRootDirectory"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultoZAPmO, err := vpc.NewSwitch(ctx, "defaultoZAPmO", &vpc.SwitchArgs{
    			VpcId:     defaultkyVC70.ID(),
    			ZoneId:    pulumi.String(_default.Zones[0].Id),
    			CidrBlock: pulumi.String("172.16.0.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultBbc7ev, err := nas.NewAccessGroup(ctx, "defaultBbc7ev", &nas.AccessGroupArgs{
    			AccessGroupType: pulumi.String("Vpc"),
    			AccessGroupName: pulumi.String(name),
    			FileSystemType:  pulumi.String("standard"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultVtUpDh, err := nas.NewFileSystem(ctx, "defaultVtUpDh", &nas.FileSystemArgs{
    			StorageType:    pulumi.String("Performance"),
    			ZoneId:         pulumi.String(azone),
    			EncryptType:    pulumi.Int(0),
    			ProtocolType:   pulumi.String("NFS"),
    			FileSystemType: pulumi.String("standard"),
    			Description:    pulumi.String("AccessPointnoRootDirectory"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = nas.NewAccessPoint(ctx, "default", &nas.AccessPointArgs{
    			VpcId:           defaultkyVC70.ID(),
    			AccessGroup:     defaultBbc7ev.AccessGroupName,
    			VswitchId:       defaultoZAPmO.ID(),
    			FileSystemId:    defaultVtUpDh.ID(),
    			AccessPointName: pulumi.String(name),
    			PosixUser: &nas.AccessPointPosixUserArgs{
    				PosixGroupId: pulumi.Int(123),
    				PosixUserId:  pulumi.Int(123),
    			},
    			RootPathPermission: &nas.AccessPointRootPathPermissionArgs{
    				OwnerGroupId: pulumi.Int(1),
    				OwnerUserId:  pulumi.Int(1),
    				Permission:   pulumi.String("0777"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var regionId = config.Get("regionId") ?? "cn-hangzhou";
        var azone = config.Get("azone") ?? "cn-hangzhou-g";
        var @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultkyVC70 = new AliCloud.Vpc.Network("defaultkyVC70", new()
        {
            CidrBlock = "172.16.0.0/12",
            Description = "接入点测试noRootDirectory",
        });
    
        var defaultoZAPmO = new AliCloud.Vpc.Switch("defaultoZAPmO", new()
        {
            VpcId = defaultkyVC70.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
            CidrBlock = "172.16.0.0/24",
        });
    
        var defaultBbc7ev = new AliCloud.Nas.AccessGroup("defaultBbc7ev", new()
        {
            AccessGroupType = "Vpc",
            AccessGroupName = name,
            FileSystemType = "standard",
        });
    
        var defaultVtUpDh = new AliCloud.Nas.FileSystem("defaultVtUpDh", new()
        {
            StorageType = "Performance",
            ZoneId = azone,
            EncryptType = 0,
            ProtocolType = "NFS",
            FileSystemType = "standard",
            Description = "AccessPointnoRootDirectory",
        });
    
        var defaultAccessPoint = new AliCloud.Nas.AccessPoint("default", new()
        {
            VpcId = defaultkyVC70.Id,
            AccessGroup = defaultBbc7ev.AccessGroupName,
            VswitchId = defaultoZAPmO.Id,
            FileSystemId = defaultVtUpDh.Id,
            AccessPointName = name,
            PosixUser = new AliCloud.Nas.Inputs.AccessPointPosixUserArgs
            {
                PosixGroupId = 123,
                PosixUserId = 123,
            },
            RootPathPermission = new AliCloud.Nas.Inputs.AccessPointRootPathPermissionArgs
            {
                OwnerGroupId = 1,
                OwnerUserId = 1,
                Permission = "0777",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.nas.AccessGroup;
    import com.pulumi.alicloud.nas.AccessGroupArgs;
    import com.pulumi.alicloud.nas.FileSystem;
    import com.pulumi.alicloud.nas.FileSystemArgs;
    import com.pulumi.alicloud.nas.AccessPoint;
    import com.pulumi.alicloud.nas.AccessPointArgs;
    import com.pulumi.alicloud.nas.inputs.AccessPointPosixUserArgs;
    import com.pulumi.alicloud.nas.inputs.AccessPointRootPathPermissionArgs;
    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 name = config.get("name").orElse("terraform-example");
            final var regionId = config.get("regionId").orElse("cn-hangzhou");
            final var azone = config.get("azone").orElse("cn-hangzhou-g");
            final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var defaultkyVC70 = new Network("defaultkyVC70", NetworkArgs.builder()
                .cidrBlock("172.16.0.0/12")
                .description("接入点测试noRootDirectory")
                .build());
    
            var defaultoZAPmO = new Switch("defaultoZAPmO", SwitchArgs.builder()
                .vpcId(defaultkyVC70.id())
                .zoneId(default_.zones()[0].id())
                .cidrBlock("172.16.0.0/24")
                .build());
    
            var defaultBbc7ev = new AccessGroup("defaultBbc7ev", AccessGroupArgs.builder()
                .accessGroupType("Vpc")
                .accessGroupName(name)
                .fileSystemType("standard")
                .build());
    
            var defaultVtUpDh = new FileSystem("defaultVtUpDh", FileSystemArgs.builder()
                .storageType("Performance")
                .zoneId(azone)
                .encryptType("0")
                .protocolType("NFS")
                .fileSystemType("standard")
                .description("AccessPointnoRootDirectory")
                .build());
    
            var defaultAccessPoint = new AccessPoint("defaultAccessPoint", AccessPointArgs.builder()
                .vpcId(defaultkyVC70.id())
                .accessGroup(defaultBbc7ev.accessGroupName())
                .vswitchId(defaultoZAPmO.id())
                .fileSystemId(defaultVtUpDh.id())
                .accessPointName(name)
                .posixUser(AccessPointPosixUserArgs.builder()
                    .posixGroupId("123")
                    .posixUserId("123")
                    .build())
                .rootPathPermission(AccessPointRootPathPermissionArgs.builder()
                    .ownerGroupId("1")
                    .ownerUserId("1")
                    .permission("0777")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      regionId:
        type: string
        default: cn-hangzhou
      azone:
        type: string
        default: cn-hangzhou-g
    resources:
      defaultkyVC70:
        type: alicloud:vpc:Network
        properties:
          cidrBlock: 172.16.0.0/12
          description: 接入点测试noRootDirectory
      defaultoZAPmO:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultkyVC70.id}
          zoneId: ${default.zones[0].id}
          cidrBlock: 172.16.0.0/24
      defaultBbc7ev:
        type: alicloud:nas:AccessGroup
        properties:
          accessGroupType: Vpc
          accessGroupName: ${name}
          fileSystemType: standard
      defaultVtUpDh:
        type: alicloud:nas:FileSystem
        properties:
          storageType: Performance
          zoneId: ${azone}
          encryptType: '0'
          protocolType: NFS
          fileSystemType: standard
          description: AccessPointnoRootDirectory
      defaultAccessPoint:
        type: alicloud:nas:AccessPoint
        name: default
        properties:
          vpcId: ${defaultkyVC70.id}
          accessGroup: ${defaultBbc7ev.accessGroupName}
          vswitchId: ${defaultoZAPmO.id}
          fileSystemId: ${defaultVtUpDh.id}
          accessPointName: ${name}
          posixUser:
            posixGroupId: '123'
            posixUserId: '123'
          rootPathPermission:
            ownerGroupId: '1'
            ownerUserId: '1'
            permission: '0777'
    variables:
      default:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create AccessPoint Resource

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

    Constructor syntax

    new AccessPoint(name: string, args: AccessPointArgs, opts?: CustomResourceOptions);
    @overload
    def AccessPoint(resource_name: str,
                    args: AccessPointArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccessPoint(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    access_group: Optional[str] = None,
                    file_system_id: Optional[str] = None,
                    vpc_id: Optional[str] = None,
                    vswitch_id: Optional[str] = None,
                    access_point_name: Optional[str] = None,
                    enabled_ram: Optional[bool] = None,
                    posix_user: Optional[AccessPointPosixUserArgs] = None,
                    root_path: Optional[str] = None,
                    root_path_permission: Optional[AccessPointRootPathPermissionArgs] = None)
    func NewAccessPoint(ctx *Context, name string, args AccessPointArgs, opts ...ResourceOption) (*AccessPoint, error)
    public AccessPoint(string name, AccessPointArgs args, CustomResourceOptions? opts = null)
    public AccessPoint(String name, AccessPointArgs args)
    public AccessPoint(String name, AccessPointArgs args, CustomResourceOptions options)
    
    type: alicloud:nas:AccessPoint
    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 AccessPointArgs
    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 AccessPointArgs
    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 AccessPointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessPointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccessPointArgs
    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 accessPointResource = new AliCloud.Nas.AccessPoint("accessPointResource", new()
    {
        AccessGroup = "string",
        FileSystemId = "string",
        VpcId = "string",
        VswitchId = "string",
        AccessPointName = "string",
        EnabledRam = false,
        PosixUser = new AliCloud.Nas.Inputs.AccessPointPosixUserArgs
        {
            PosixGroupId = 0,
            PosixSecondaryGroupIds = new[]
            {
                0,
            },
            PosixUserId = 0,
        },
        RootPath = "string",
        RootPathPermission = new AliCloud.Nas.Inputs.AccessPointRootPathPermissionArgs
        {
            OwnerGroupId = 0,
            OwnerUserId = 0,
            Permission = "string",
        },
    });
    
    example, err := nas.NewAccessPoint(ctx, "accessPointResource", &nas.AccessPointArgs{
    	AccessGroup:     pulumi.String("string"),
    	FileSystemId:    pulumi.String("string"),
    	VpcId:           pulumi.String("string"),
    	VswitchId:       pulumi.String("string"),
    	AccessPointName: pulumi.String("string"),
    	EnabledRam:      pulumi.Bool(false),
    	PosixUser: &nas.AccessPointPosixUserArgs{
    		PosixGroupId: pulumi.Int(0),
    		PosixSecondaryGroupIds: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    		PosixUserId: pulumi.Int(0),
    	},
    	RootPath: pulumi.String("string"),
    	RootPathPermission: &nas.AccessPointRootPathPermissionArgs{
    		OwnerGroupId: pulumi.Int(0),
    		OwnerUserId:  pulumi.Int(0),
    		Permission:   pulumi.String("string"),
    	},
    })
    
    var accessPointResource = new AccessPoint("accessPointResource", AccessPointArgs.builder()
        .accessGroup("string")
        .fileSystemId("string")
        .vpcId("string")
        .vswitchId("string")
        .accessPointName("string")
        .enabledRam(false)
        .posixUser(AccessPointPosixUserArgs.builder()
            .posixGroupId(0)
            .posixSecondaryGroupIds(0)
            .posixUserId(0)
            .build())
        .rootPath("string")
        .rootPathPermission(AccessPointRootPathPermissionArgs.builder()
            .ownerGroupId(0)
            .ownerUserId(0)
            .permission("string")
            .build())
        .build());
    
    access_point_resource = alicloud.nas.AccessPoint("accessPointResource",
        access_group="string",
        file_system_id="string",
        vpc_id="string",
        vswitch_id="string",
        access_point_name="string",
        enabled_ram=False,
        posix_user={
            "posix_group_id": 0,
            "posix_secondary_group_ids": [0],
            "posix_user_id": 0,
        },
        root_path="string",
        root_path_permission={
            "owner_group_id": 0,
            "owner_user_id": 0,
            "permission": "string",
        })
    
    const accessPointResource = new alicloud.nas.AccessPoint("accessPointResource", {
        accessGroup: "string",
        fileSystemId: "string",
        vpcId: "string",
        vswitchId: "string",
        accessPointName: "string",
        enabledRam: false,
        posixUser: {
            posixGroupId: 0,
            posixSecondaryGroupIds: [0],
            posixUserId: 0,
        },
        rootPath: "string",
        rootPathPermission: {
            ownerGroupId: 0,
            ownerUserId: 0,
            permission: "string",
        },
    });
    
    type: alicloud:nas:AccessPoint
    properties:
        accessGroup: string
        accessPointName: string
        enabledRam: false
        fileSystemId: string
        posixUser:
            posixGroupId: 0
            posixSecondaryGroupIds:
                - 0
            posixUserId: 0
        rootPath: string
        rootPathPermission:
            ownerGroupId: 0
            ownerUserId: 0
            permission: string
        vpcId: string
        vswitchId: string
    

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

    AccessGroup string
    The permission group name.
    FileSystemId string
    The ID of the file system.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The vSwitch ID.
    AccessPointName string
    The Access Point Name.
    EnabledRam bool
    Whether to enable the RAM policy.
    PosixUser Pulumi.AliCloud.Nas.Inputs.AccessPointPosixUser
    The Posix user. See posix_user below.
    RootPath string
    The root directory.
    RootPathPermission Pulumi.AliCloud.Nas.Inputs.AccessPointRootPathPermission
    Root permissions. See root_path_permission below.
    AccessGroup string
    The permission group name.
    FileSystemId string
    The ID of the file system.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The vSwitch ID.
    AccessPointName string
    The Access Point Name.
    EnabledRam bool
    Whether to enable the RAM policy.
    PosixUser AccessPointPosixUserArgs
    The Posix user. See posix_user below.
    RootPath string
    The root directory.
    RootPathPermission AccessPointRootPathPermissionArgs
    Root permissions. See root_path_permission below.
    accessGroup String
    The permission group name.
    fileSystemId String
    The ID of the file system.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The vSwitch ID.
    accessPointName String
    The Access Point Name.
    enabledRam Boolean
    Whether to enable the RAM policy.
    posixUser AccessPointPosixUser
    The Posix user. See posix_user below.
    rootPath String
    The root directory.
    rootPathPermission AccessPointRootPathPermission
    Root permissions. See root_path_permission below.
    accessGroup string
    The permission group name.
    fileSystemId string
    The ID of the file system.
    vpcId string
    The ID of the VPC.
    vswitchId string
    The vSwitch ID.
    accessPointName string
    The Access Point Name.
    enabledRam boolean
    Whether to enable the RAM policy.
    posixUser AccessPointPosixUser
    The Posix user. See posix_user below.
    rootPath string
    The root directory.
    rootPathPermission AccessPointRootPathPermission
    Root permissions. See root_path_permission below.
    access_group str
    The permission group name.
    file_system_id str
    The ID of the file system.
    vpc_id str
    The ID of the VPC.
    vswitch_id str
    The vSwitch ID.
    access_point_name str
    The Access Point Name.
    enabled_ram bool
    Whether to enable the RAM policy.
    posix_user AccessPointPosixUserArgs
    The Posix user. See posix_user below.
    root_path str
    The root directory.
    root_path_permission AccessPointRootPathPermissionArgs
    Root permissions. See root_path_permission below.
    accessGroup String
    The permission group name.
    fileSystemId String
    The ID of the file system.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The vSwitch ID.
    accessPointName String
    The Access Point Name.
    enabledRam Boolean
    Whether to enable the RAM policy.
    posixUser Property Map
    The Posix user. See posix_user below.
    rootPath String
    The root directory.
    rootPathPermission Property Map
    Root permissions. See root_path_permission below.

    Outputs

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

    AccessPointId string
    Access point ID.
    CreateTime string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Current access point state.
    AccessPointId string
    Access point ID.
    CreateTime string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Current access point state.
    accessPointId String
    Access point ID.
    createTime String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Current access point state.
    accessPointId string
    Access point ID.
    createTime string
    Creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Current access point state.
    access_point_id str
    Access point ID.
    create_time str
    Creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Current access point state.
    accessPointId String
    Access point ID.
    createTime String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Current access point state.

    Look up Existing AccessPoint Resource

    Get an existing AccessPoint 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?: AccessPointState, opts?: CustomResourceOptions): AccessPoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_group: Optional[str] = None,
            access_point_id: Optional[str] = None,
            access_point_name: Optional[str] = None,
            create_time: Optional[str] = None,
            enabled_ram: Optional[bool] = None,
            file_system_id: Optional[str] = None,
            posix_user: Optional[AccessPointPosixUserArgs] = None,
            root_path: Optional[str] = None,
            root_path_permission: Optional[AccessPointRootPathPermissionArgs] = None,
            status: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None) -> AccessPoint
    func GetAccessPoint(ctx *Context, name string, id IDInput, state *AccessPointState, opts ...ResourceOption) (*AccessPoint, error)
    public static AccessPoint Get(string name, Input<string> id, AccessPointState? state, CustomResourceOptions? opts = null)
    public static AccessPoint get(String name, Output<String> id, AccessPointState 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:
    AccessGroup string
    The permission group name.
    AccessPointId string
    Access point ID.
    AccessPointName string
    The Access Point Name.
    CreateTime string
    Creation time.
    EnabledRam bool
    Whether to enable the RAM policy.
    FileSystemId string
    The ID of the file system.
    PosixUser Pulumi.AliCloud.Nas.Inputs.AccessPointPosixUser
    The Posix user. See posix_user below.
    RootPath string
    The root directory.
    RootPathPermission Pulumi.AliCloud.Nas.Inputs.AccessPointRootPathPermission
    Root permissions. See root_path_permission below.
    Status string
    Current access point state.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The vSwitch ID.
    AccessGroup string
    The permission group name.
    AccessPointId string
    Access point ID.
    AccessPointName string
    The Access Point Name.
    CreateTime string
    Creation time.
    EnabledRam bool
    Whether to enable the RAM policy.
    FileSystemId string
    The ID of the file system.
    PosixUser AccessPointPosixUserArgs
    The Posix user. See posix_user below.
    RootPath string
    The root directory.
    RootPathPermission AccessPointRootPathPermissionArgs
    Root permissions. See root_path_permission below.
    Status string
    Current access point state.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The vSwitch ID.
    accessGroup String
    The permission group name.
    accessPointId String
    Access point ID.
    accessPointName String
    The Access Point Name.
    createTime String
    Creation time.
    enabledRam Boolean
    Whether to enable the RAM policy.
    fileSystemId String
    The ID of the file system.
    posixUser AccessPointPosixUser
    The Posix user. See posix_user below.
    rootPath String
    The root directory.
    rootPathPermission AccessPointRootPathPermission
    Root permissions. See root_path_permission below.
    status String
    Current access point state.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The vSwitch ID.
    accessGroup string
    The permission group name.
    accessPointId string
    Access point ID.
    accessPointName string
    The Access Point Name.
    createTime string
    Creation time.
    enabledRam boolean
    Whether to enable the RAM policy.
    fileSystemId string
    The ID of the file system.
    posixUser AccessPointPosixUser
    The Posix user. See posix_user below.
    rootPath string
    The root directory.
    rootPathPermission AccessPointRootPathPermission
    Root permissions. See root_path_permission below.
    status string
    Current access point state.
    vpcId string
    The ID of the VPC.
    vswitchId string
    The vSwitch ID.
    access_group str
    The permission group name.
    access_point_id str
    Access point ID.
    access_point_name str
    The Access Point Name.
    create_time str
    Creation time.
    enabled_ram bool
    Whether to enable the RAM policy.
    file_system_id str
    The ID of the file system.
    posix_user AccessPointPosixUserArgs
    The Posix user. See posix_user below.
    root_path str
    The root directory.
    root_path_permission AccessPointRootPathPermissionArgs
    Root permissions. See root_path_permission below.
    status str
    Current access point state.
    vpc_id str
    The ID of the VPC.
    vswitch_id str
    The vSwitch ID.
    accessGroup String
    The permission group name.
    accessPointId String
    Access point ID.
    accessPointName String
    The Access Point Name.
    createTime String
    Creation time.
    enabledRam Boolean
    Whether to enable the RAM policy.
    fileSystemId String
    The ID of the file system.
    posixUser Property Map
    The Posix user. See posix_user below.
    rootPath String
    The root directory.
    rootPathPermission Property Map
    Root permissions. See root_path_permission below.
    status String
    Current access point state.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The vSwitch ID.

    Supporting Types

    AccessPointPosixUser, AccessPointPosixUserArgs

    PosixGroupId int
    The ID of the Posix user group.
    PosixSecondaryGroupIds List<int>
    The ID of the second user group.
    PosixUserId int
    The Posix user ID.
    PosixGroupId int
    The ID of the Posix user group.
    PosixSecondaryGroupIds []int
    The ID of the second user group.
    PosixUserId int
    The Posix user ID.
    posixGroupId Integer
    The ID of the Posix user group.
    posixSecondaryGroupIds List<Integer>
    The ID of the second user group.
    posixUserId Integer
    The Posix user ID.
    posixGroupId number
    The ID of the Posix user group.
    posixSecondaryGroupIds number[]
    The ID of the second user group.
    posixUserId number
    The Posix user ID.
    posix_group_id int
    The ID of the Posix user group.
    posix_secondary_group_ids Sequence[int]
    The ID of the second user group.
    posix_user_id int
    The Posix user ID.
    posixGroupId Number
    The ID of the Posix user group.
    posixSecondaryGroupIds List<Number>
    The ID of the second user group.
    posixUserId Number
    The Posix user ID.

    AccessPointRootPathPermission, AccessPointRootPathPermissionArgs

    OwnerGroupId int
    The ID of the primary user group.
    OwnerUserId int
    The owner user ID.
    Permission string
    POSIX permission.
    OwnerGroupId int
    The ID of the primary user group.
    OwnerUserId int
    The owner user ID.
    Permission string
    POSIX permission.
    ownerGroupId Integer
    The ID of the primary user group.
    ownerUserId Integer
    The owner user ID.
    permission String
    POSIX permission.
    ownerGroupId number
    The ID of the primary user group.
    ownerUserId number
    The owner user ID.
    permission string
    POSIX permission.
    owner_group_id int
    The ID of the primary user group.
    owner_user_id int
    The owner user ID.
    permission str
    POSIX permission.
    ownerGroupId Number
    The ID of the primary user group.
    ownerUserId Number
    The owner user ID.
    permission String
    POSIX permission.

    Import

    NAS Access Point can be imported using the id, e.g.

    $ pulumi import alicloud:nas/accessPoint:AccessPoint example <file_system_id>:<access_point_id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi