alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.nas.SmbAclAttachment

Provides a Nas Smb Acl resource.

Alibaba Cloud SMB protocol file storage service supports user authentication based on AD domain system and permission access control at the file system level. Connecting and accessing the SMB file system as a domain user can implement the requirements for access control at the file and directory level in the SMB protocol file system. The current Alibaba Cloud SMB protocol file storage service does not support multi-user file and directory-level permission access control, and only provides file system-level authentication and access based on the whitelist mechanism that supports cloud accounts and source IP permission groups control.

NOTE: Available in 1.186.0+.

Example Usage

Basic Usage

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

return await Deployment.RunAsync(() => 
{
    var exampleFileSystem = new AliCloud.Nas.FileSystem("exampleFileSystem", new()
    {
        ProtocolType = "SMB",
        StorageType = "Performance",
        FileSystemType = "standard",
        ZoneId = "cn-hangzhou-g",
    });

    var exampleSmbAclAttachment = new AliCloud.Nas.SmbAclAttachment("exampleSmbAclAttachment", new()
    {
        FileSystemId = exampleFileSystem.Id,
        Keytab = "BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhxxxxx",
        KeytabMd5 = "E3CCF7E2416DF04FA958AA4513*****",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleFileSystem, err := nas.NewFileSystem(ctx, "exampleFileSystem", &nas.FileSystemArgs{
			ProtocolType:   pulumi.String("SMB"),
			StorageType:    pulumi.String("Performance"),
			FileSystemType: pulumi.String("standard"),
			ZoneId:         pulumi.String("cn-hangzhou-g"),
		})
		if err != nil {
			return err
		}
		_, err = nas.NewSmbAclAttachment(ctx, "exampleSmbAclAttachment", &nas.SmbAclAttachmentArgs{
			FileSystemId: exampleFileSystem.ID(),
			Keytab:       pulumi.String("BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhxxxxx"),
			KeytabMd5:    pulumi.String("E3CCF7E2416DF04FA958AA4513*****"),
		})
		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.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import com.pulumi.alicloud.nas.SmbAclAttachment;
import com.pulumi.alicloud.nas.SmbAclAttachmentArgs;
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 exampleFileSystem = new FileSystem("exampleFileSystem", FileSystemArgs.builder()        
            .protocolType("SMB")
            .storageType("Performance")
            .fileSystemType("standard")
            .zoneId("cn-hangzhou-g")
            .build());

        var exampleSmbAclAttachment = new SmbAclAttachment("exampleSmbAclAttachment", SmbAclAttachmentArgs.builder()        
            .fileSystemId(exampleFileSystem.id())
            .keytab("BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhxxxxx")
            .keytabMd5("E3CCF7E2416DF04FA958AA4513*****")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example_file_system = alicloud.nas.FileSystem("exampleFileSystem",
    protocol_type="SMB",
    storage_type="Performance",
    file_system_type="standard",
    zone_id="cn-hangzhou-g")
example_smb_acl_attachment = alicloud.nas.SmbAclAttachment("exampleSmbAclAttachment",
    file_system_id=example_file_system.id,
    keytab="BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhxxxxx",
    keytab_md5="E3CCF7E2416DF04FA958AA4513*****")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const exampleFileSystem = new alicloud.nas.FileSystem("exampleFileSystem", {
    protocolType: "SMB",
    storageType: "Performance",
    fileSystemType: "standard",
    zoneId: "cn-hangzhou-g",
});
const exampleSmbAclAttachment = new alicloud.nas.SmbAclAttachment("exampleSmbAclAttachment", {
    fileSystemId: exampleFileSystem.id,
    keytab: "BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhxxxxx",
    keytabMd5: "E3CCF7E2416DF04FA958AA4513*****",
});
resources:
  exampleFileSystem:
    type: alicloud:nas:FileSystem
    properties:
      protocolType: SMB
      storageType: Performance
      fileSystemType: standard
      zoneId: cn-hangzhou-g
  exampleSmbAclAttachment:
    type: alicloud:nas:SmbAclAttachment
    properties:
      fileSystemId: ${exampleFileSystem.id}
      keytab: BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhxxxxx
      keytabMd5: E3CCF7E2416DF04FA958AA4513*****

Create SmbAclAttachment Resource

new SmbAclAttachment(name: string, args: SmbAclAttachmentArgs, opts?: CustomResourceOptions);
@overload
def SmbAclAttachment(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     enable_anonymous_access: Optional[bool] = None,
                     encrypt_data: Optional[bool] = None,
                     file_system_id: Optional[str] = None,
                     home_dir_path: Optional[str] = None,
                     keytab: Optional[str] = None,
                     keytab_md5: Optional[str] = None,
                     reject_unencrypted_access: Optional[bool] = None,
                     super_admin_sid: Optional[str] = None)
@overload
def SmbAclAttachment(resource_name: str,
                     args: SmbAclAttachmentArgs,
                     opts: Optional[ResourceOptions] = None)
func NewSmbAclAttachment(ctx *Context, name string, args SmbAclAttachmentArgs, opts ...ResourceOption) (*SmbAclAttachment, error)
public SmbAclAttachment(string name, SmbAclAttachmentArgs args, CustomResourceOptions? opts = null)
public SmbAclAttachment(String name, SmbAclAttachmentArgs args)
public SmbAclAttachment(String name, SmbAclAttachmentArgs args, CustomResourceOptions options)
type: alicloud:nas:SmbAclAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

FileSystemId string

The ID of the file system.

Keytab string

The string that is generated after the system encodes the keytab file by using Base64.

KeytabMd5 string

RThe string that is generated after the system encodes the keytab file by using MD5.

EnableAnonymousAccess bool

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

EncryptData bool

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

HomeDirPath string

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

RejectUnencryptedAccess bool

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

SuperAdminSid string

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

FileSystemId string

The ID of the file system.

Keytab string

The string that is generated after the system encodes the keytab file by using Base64.

KeytabMd5 string

RThe string that is generated after the system encodes the keytab file by using MD5.

EnableAnonymousAccess bool

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

EncryptData bool

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

HomeDirPath string

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

RejectUnencryptedAccess bool

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

SuperAdminSid string

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

fileSystemId String

The ID of the file system.

keytab String

The string that is generated after the system encodes the keytab file by using Base64.

keytabMd5 String

RThe string that is generated after the system encodes the keytab file by using MD5.

enableAnonymousAccess Boolean

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

encryptData Boolean

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

homeDirPath String

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

rejectUnencryptedAccess Boolean

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

superAdminSid String

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

fileSystemId string

The ID of the file system.

keytab string

The string that is generated after the system encodes the keytab file by using Base64.

keytabMd5 string

RThe string that is generated after the system encodes the keytab file by using MD5.

enableAnonymousAccess boolean

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

encryptData boolean

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

homeDirPath string

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

rejectUnencryptedAccess boolean

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

superAdminSid string

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

file_system_id str

The ID of the file system.

keytab str

The string that is generated after the system encodes the keytab file by using Base64.

keytab_md5 str

RThe string that is generated after the system encodes the keytab file by using MD5.

enable_anonymous_access bool

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

encrypt_data bool

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

home_dir_path str

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

reject_unencrypted_access bool

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

super_admin_sid str

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

fileSystemId String

The ID of the file system.

keytab String

The string that is generated after the system encodes the keytab file by using Base64.

keytabMd5 String

RThe string that is generated after the system encodes the keytab file by using MD5.

enableAnonymousAccess Boolean

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

encryptData Boolean

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

homeDirPath String

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

rejectUnencryptedAccess Boolean

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

superAdminSid String

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

Outputs

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

AuthMethod string

The method that is used to authenticate network identities.

Enabled string

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

Id string

The provider-assigned unique ID for this managed resource.

AuthMethod string

The method that is used to authenticate network identities.

Enabled string

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

Id string

The provider-assigned unique ID for this managed resource.

authMethod String

The method that is used to authenticate network identities.

enabled String

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

id String

The provider-assigned unique ID for this managed resource.

authMethod string

The method that is used to authenticate network identities.

enabled string

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

id string

The provider-assigned unique ID for this managed resource.

auth_method str

The method that is used to authenticate network identities.

enabled str

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

id str

The provider-assigned unique ID for this managed resource.

authMethod String

The method that is used to authenticate network identities.

enabled String

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing SmbAclAttachment Resource

Get an existing SmbAclAttachment 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?: SmbAclAttachmentState, opts?: CustomResourceOptions): SmbAclAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auth_method: Optional[str] = None,
        enable_anonymous_access: Optional[bool] = None,
        enabled: Optional[str] = None,
        encrypt_data: Optional[bool] = None,
        file_system_id: Optional[str] = None,
        home_dir_path: Optional[str] = None,
        keytab: Optional[str] = None,
        keytab_md5: Optional[str] = None,
        reject_unencrypted_access: Optional[bool] = None,
        super_admin_sid: Optional[str] = None) -> SmbAclAttachment
func GetSmbAclAttachment(ctx *Context, name string, id IDInput, state *SmbAclAttachmentState, opts ...ResourceOption) (*SmbAclAttachment, error)
public static SmbAclAttachment Get(string name, Input<string> id, SmbAclAttachmentState? state, CustomResourceOptions? opts = null)
public static SmbAclAttachment get(String name, Output<String> id, SmbAclAttachmentState 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:
AuthMethod string

The method that is used to authenticate network identities.

EnableAnonymousAccess bool

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

Enabled string

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

EncryptData bool

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

FileSystemId string

The ID of the file system.

HomeDirPath string

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

Keytab string

The string that is generated after the system encodes the keytab file by using Base64.

KeytabMd5 string

RThe string that is generated after the system encodes the keytab file by using MD5.

RejectUnencryptedAccess bool

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

SuperAdminSid string

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

AuthMethod string

The method that is used to authenticate network identities.

EnableAnonymousAccess bool

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

Enabled string

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

EncryptData bool

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

FileSystemId string

The ID of the file system.

HomeDirPath string

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

Keytab string

The string that is generated after the system encodes the keytab file by using Base64.

KeytabMd5 string

RThe string that is generated after the system encodes the keytab file by using MD5.

RejectUnencryptedAccess bool

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

SuperAdminSid string

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

authMethod String

The method that is used to authenticate network identities.

enableAnonymousAccess Boolean

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

enabled String

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

encryptData Boolean

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

fileSystemId String

The ID of the file system.

homeDirPath String

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

keytab String

The string that is generated after the system encodes the keytab file by using Base64.

keytabMd5 String

RThe string that is generated after the system encodes the keytab file by using MD5.

rejectUnencryptedAccess Boolean

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

superAdminSid String

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

authMethod string

The method that is used to authenticate network identities.

enableAnonymousAccess boolean

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

enabled string

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

encryptData boolean

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

fileSystemId string

The ID of the file system.

homeDirPath string

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

keytab string

The string that is generated after the system encodes the keytab file by using Base64.

keytabMd5 string

RThe string that is generated after the system encodes the keytab file by using MD5.

rejectUnencryptedAccess boolean

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

superAdminSid string

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

auth_method str

The method that is used to authenticate network identities.

enable_anonymous_access bool

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

enabled str

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

encrypt_data bool

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

file_system_id str

The ID of the file system.

home_dir_path str

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

keytab str

The string that is generated after the system encodes the keytab file by using Base64.

keytab_md5 str

RThe string that is generated after the system encodes the keytab file by using MD5.

reject_unencrypted_access bool

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

super_admin_sid str

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

authMethod String

The method that is used to authenticate network identities.

enableAnonymousAccess Boolean

Specifies whether to allow anonymous access. Valid values: true: The file system allows anonymous access. false: The file system denies anonymous access. Default value: false.

enabled String

Specifies whether to enable the ACL feature. true: enables the ACL feature. false: disables the ACL feature.

encryptData Boolean

Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.

fileSystemId String

The ID of the file system.

homeDirPath String

The home directory of each user. Each user-specific home directory must meet the following requirements:
Each segment starts with a forward slash (/) or a backslash (). Each segment does not contain the following special characters: <>":?*. Each segment is 0 to 255 characters in length. The total length is 0 to 32,767 characters. For example, if you create a user named A and the home directory is /home, the file system automatically creates a directory named /home/A when User A logs on to the file system. If the /home/A directory already exists, the file system does not create the directory.

keytab String

The string that is generated after the system encodes the keytab file by using Base64.

keytabMd5 String

RThe string that is generated after the system encodes the keytab file by using MD5.

rejectUnencryptedAccess Boolean

Specifies whether to deny access from non-encrypted clients. Valid values: true: The file system denies access from non-encrypted clients. false: The file system allows access from non-encrypted clients. Default value: false.

superAdminSid String

The ID of a super admin. The ID must meet the following requirements: The ID starts with S and does not contain letters except S. The ID contains at least three hyphens (-) as delimiters. Example: S-1-5-22 and S-1-5-22-23.

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.