alicloud.nas.SmbAclAttachment
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.nas.getZones({
fileSystemType: "standard",
});
const exampleFileSystem = new alicloud.nas.FileSystem("example", {
protocolType: "SMB",
storageType: "Capacity",
description: "terraform-example",
encryptType: 0,
fileSystemType: "standard",
zoneId: example.then(example => example.zones?.[0]?.zoneId),
});
const exampleSmbAclAttachment = new alicloud.nas.SmbAclAttachment("example", {
fileSystemId: exampleFileSystem.id,
keytab: "BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhoOXYadj",
keytabMd5: "E3CCF7E2416DF04FA958AA4513EA29E8",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.nas.get_zones(file_system_type="standard")
example_file_system = alicloud.nas.FileSystem("example",
protocol_type="SMB",
storage_type="Capacity",
description="terraform-example",
encrypt_type=0,
file_system_type="standard",
zone_id=example.zones[0].zone_id)
example_smb_acl_attachment = alicloud.nas.SmbAclAttachment("example",
file_system_id=example_file_system.id,
keytab="BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhoOXYadj",
keytab_md5="E3CCF7E2416DF04FA958AA4513EA29E8")
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 {
example, err := nas.GetZones(ctx, &nas.GetZonesArgs{
FileSystemType: pulumi.StringRef("standard"),
}, nil)
if err != nil {
return err
}
exampleFileSystem, err := nas.NewFileSystem(ctx, "example", &nas.FileSystemArgs{
ProtocolType: pulumi.String("SMB"),
StorageType: pulumi.String("Capacity"),
Description: pulumi.String("terraform-example"),
EncryptType: pulumi.Int(0),
FileSystemType: pulumi.String("standard"),
ZoneId: pulumi.String(example.Zones[0].ZoneId),
})
if err != nil {
return err
}
_, err = nas.NewSmbAclAttachment(ctx, "example", &nas.SmbAclAttachmentArgs{
FileSystemId: exampleFileSystem.ID(),
Keytab: pulumi.String("BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhoOXYadj"),
KeytabMd5: pulumi.String("E3CCF7E2416DF04FA958AA4513EA29E8"),
})
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 example = AliCloud.Nas.GetZones.Invoke(new()
{
FileSystemType = "standard",
});
var exampleFileSystem = new AliCloud.Nas.FileSystem("example", new()
{
ProtocolType = "SMB",
StorageType = "Capacity",
Description = "terraform-example",
EncryptType = 0,
FileSystemType = "standard",
ZoneId = example.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId),
});
var exampleSmbAclAttachment = new AliCloud.Nas.SmbAclAttachment("example", new()
{
FileSystemId = exampleFileSystem.Id,
Keytab = "BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhoOXYadj",
KeytabMd5 = "E3CCF7E2416DF04FA958AA4513EA29E8",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.NasFunctions;
import com.pulumi.alicloud.nas.inputs.GetZonesArgs;
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) {
final var example = NasFunctions.getZones(GetZonesArgs.builder()
.fileSystemType("standard")
.build());
var exampleFileSystem = new FileSystem("exampleFileSystem", FileSystemArgs.builder()
.protocolType("SMB")
.storageType("Capacity")
.description("terraform-example")
.encryptType("0")
.fileSystemType("standard")
.zoneId(example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()))
.build());
var exampleSmbAclAttachment = new SmbAclAttachment("exampleSmbAclAttachment", SmbAclAttachmentArgs.builder()
.fileSystemId(exampleFileSystem.id())
.keytab("BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhoOXYadj")
.keytabMd5("E3CCF7E2416DF04FA958AA4513EA29E8")
.build());
}
}
resources:
exampleFileSystem:
type: alicloud:nas:FileSystem
name: example
properties:
protocolType: SMB
storageType: Capacity
description: terraform-example
encryptType: '0'
fileSystemType: standard
zoneId: ${example.zones[0].zoneId}
exampleSmbAclAttachment:
type: alicloud:nas:SmbAclAttachment
name: example
properties:
fileSystemId: ${exampleFileSystem.id}
keytab: BQIAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAQAIqIx6v7p11oUAAABHAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAAwAIqIx6v7p11oUAAABPAAIADUFMSUFEVEVTVC5DT00ABGNpZnMAGXNtYnNlcnZlcjI0LmFsaWFkdGVzdC5jb20AAAABAAAAAAEAFwAQnQZWB3RAPHU7PMIJyBWePAAAAF8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQASACAGJ7F0s+bcBjf6jD5HlvlRLmPSOW+qDZe0Qk0lQcf8WwAAAE8AAgANQUxJQURURVNULkNPTQAEY2lmcwAZc21ic2VydmVyMjQuYWxpYWR0ZXN0LmNvbQAAAAEAAAAAAQARABDdFmanrSIatnDDhoOXYadj
keytabMd5: E3CCF7E2416DF04FA958AA4513EA29E8
variables:
example:
fn::invoke:
Function: alicloud:nas:getZones
Arguments:
fileSystemType: standard
Create SmbAclAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmbAclAttachment(name: string, args: SmbAclAttachmentArgs, opts?: CustomResourceOptions);
@overload
def SmbAclAttachment(resource_name: str,
args: SmbAclAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmbAclAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
keytab: Optional[str] = None,
keytab_md5: Optional[str] = None,
enable_anonymous_access: Optional[bool] = None,
encrypt_data: Optional[bool] = None,
home_dir_path: Optional[str] = None,
reject_unencrypted_access: Optional[bool] = None,
super_admin_sid: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var smbAclAttachmentResource = new AliCloud.Nas.SmbAclAttachment("smbAclAttachmentResource", new()
{
FileSystemId = "string",
Keytab = "string",
KeytabMd5 = "string",
EnableAnonymousAccess = false,
EncryptData = false,
HomeDirPath = "string",
RejectUnencryptedAccess = false,
SuperAdminSid = "string",
});
example, err := nas.NewSmbAclAttachment(ctx, "smbAclAttachmentResource", &nas.SmbAclAttachmentArgs{
FileSystemId: pulumi.String("string"),
Keytab: pulumi.String("string"),
KeytabMd5: pulumi.String("string"),
EnableAnonymousAccess: pulumi.Bool(false),
EncryptData: pulumi.Bool(false),
HomeDirPath: pulumi.String("string"),
RejectUnencryptedAccess: pulumi.Bool(false),
SuperAdminSid: pulumi.String("string"),
})
var smbAclAttachmentResource = new SmbAclAttachment("smbAclAttachmentResource", SmbAclAttachmentArgs.builder()
.fileSystemId("string")
.keytab("string")
.keytabMd5("string")
.enableAnonymousAccess(false)
.encryptData(false)
.homeDirPath("string")
.rejectUnencryptedAccess(false)
.superAdminSid("string")
.build());
smb_acl_attachment_resource = alicloud.nas.SmbAclAttachment("smbAclAttachmentResource",
file_system_id="string",
keytab="string",
keytab_md5="string",
enable_anonymous_access=False,
encrypt_data=False,
home_dir_path="string",
reject_unencrypted_access=False,
super_admin_sid="string")
const smbAclAttachmentResource = new alicloud.nas.SmbAclAttachment("smbAclAttachmentResource", {
fileSystemId: "string",
keytab: "string",
keytabMd5: "string",
enableAnonymousAccess: false,
encryptData: false,
homeDirPath: "string",
rejectUnencryptedAccess: false,
superAdminSid: "string",
});
type: alicloud:nas:SmbAclAttachment
properties:
enableAnonymousAccess: false
encryptData: false
fileSystemId: string
homeDirPath: string
keytab: string
keytabMd5: string
rejectUnencryptedAccess: false
superAdminSid: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SmbAclAttachment resource accepts the following input properties:
- File
System stringId - The ID of the file system.
- Keytab string
- The string that is generated after the system encodes the keytab file by using Base64.
- Keytab
Md5 string - RThe string that is generated after the system encodes the keytab file by using MD5.
- Enable
Anonymous boolAccess - 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 stringPath - 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 boolAccess - 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 stringSid - 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 stringId - The ID of the file system.
- Keytab string
- The string that is generated after the system encodes the keytab file by using Base64.
- Keytab
Md5 string - RThe string that is generated after the system encodes the keytab file by using MD5.
- Enable
Anonymous boolAccess - 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 stringPath - 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 boolAccess - 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 stringSid - 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 StringId - The ID of the file system.
- keytab String
- The string that is generated after the system encodes the keytab file by using Base64.
- keytab
Md5 String - RThe string that is generated after the system encodes the keytab file by using MD5.
- enable
Anonymous BooleanAccess - 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 Boolean - Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.
- home
Dir StringPath - 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 BooleanAccess - 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 StringSid - 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 stringId - The ID of the file system.
- keytab string
- The string that is generated after the system encodes the keytab file by using Base64.
- keytab
Md5 string - RThe string that is generated after the system encodes the keytab file by using MD5.
- enable
Anonymous booleanAccess - 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 boolean - Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.
- home
Dir stringPath - 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 booleanAccess - 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 stringSid - 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_ strid - 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_ boolaccess - 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_ strpath - 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_ boolaccess - 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_ strsid - 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 StringId - The ID of the file system.
- keytab String
- The string that is generated after the system encodes the keytab file by using Base64.
- keytab
Md5 String - RThe string that is generated after the system encodes the keytab file by using MD5.
- enable
Anonymous BooleanAccess - 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 Boolean - Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.
- home
Dir StringPath - 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 BooleanAccess - 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 StringSid - 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:
- Auth
Method 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 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 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 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.
- auth
Method 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.
- Auth
Method string - The method that is used to authenticate network identities.
- Enable
Anonymous boolAccess - 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.
- 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 stringId - The ID of the file system.
- Home
Dir stringPath - 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.
- Keytab
Md5 string - RThe string that is generated after the system encodes the keytab file by using MD5.
- Reject
Unencrypted boolAccess - 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 stringSid - 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 string - The method that is used to authenticate network identities.
- Enable
Anonymous boolAccess - 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.
- 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 stringId - The ID of the file system.
- Home
Dir stringPath - 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.
- Keytab
Md5 string - RThe string that is generated after the system encodes the keytab file by using MD5.
- Reject
Unencrypted boolAccess - 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 stringSid - 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 String - The method that is used to authenticate network identities.
- enable
Anonymous BooleanAccess - 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.
- encrypt
Data Boolean - Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.
- file
System StringId - The ID of the file system.
- home
Dir StringPath - 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.
- keytab
Md5 String - RThe string that is generated after the system encodes the keytab file by using MD5.
- reject
Unencrypted BooleanAccess - 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 StringSid - 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 string - The method that is used to authenticate network identities.
- enable
Anonymous booleanAccess - 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.
- encrypt
Data boolean - Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.
- file
System stringId - The ID of the file system.
- home
Dir stringPath - 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.
- keytab
Md5 string - RThe string that is generated after the system encodes the keytab file by using MD5.
- reject
Unencrypted booleanAccess - 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 stringSid - 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_ boolaccess - 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_ strid - The ID of the file system.
- home_
dir_ strpath - 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_ boolaccess - 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_ strsid - 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 String - The method that is used to authenticate network identities.
- enable
Anonymous BooleanAccess - 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.
- encrypt
Data Boolean - Specifies whether to enable encryption in transit. Valid values: true: enables encryption in transit. false: disables encryption in transit. Default value: false.
- file
System StringId - The ID of the file system.
- home
Dir StringPath - 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.
- keytab
Md5 String - RThe string that is generated after the system encodes the keytab file by using MD5.
- reject
Unencrypted BooleanAccess - 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 StringSid - 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.