powerstore.SmbShare
Explore with Pulumi AI
This resource is used to manage the smb share entity of PowerStore Array. We can Create, Update and Delete the smb share using this resource. We can also import an existing smb share from PowerStore array.
(resource arguments)
}
$ pulumi import powerstore:index/smbShare:SmbShare Step 4 - Execute the command: "powerstore_smb_share.resource_block_name" "id_of_the_smb_share" (resource_block_name must be taken from step 3 and id must be taken from step 2)
Step 5 - After successful execution of the command , check the state file
Create SmbShare Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmbShare(name: string, args: SmbShareArgs, opts?: CustomResourceOptions);
@overload
def SmbShare(resource_name: str,
args: SmbShareArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmbShare(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
path: Optional[str] = None,
aces: Optional[Sequence[SmbShareAceArgs]] = None,
description: Optional[str] = None,
is_abe_enabled: Optional[bool] = None,
is_branch_cache_enabled: Optional[bool] = None,
is_continuous_availability_enabled: Optional[bool] = None,
is_encryption_enabled: Optional[bool] = None,
name: Optional[str] = None,
offline_availability: Optional[str] = None,
umask: Optional[str] = None)
func NewSmbShare(ctx *Context, name string, args SmbShareArgs, opts ...ResourceOption) (*SmbShare, error)
public SmbShare(string name, SmbShareArgs args, CustomResourceOptions? opts = null)
public SmbShare(String name, SmbShareArgs args)
public SmbShare(String name, SmbShareArgs args, CustomResourceOptions options)
type: powerstore:SmbShare
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 SmbShareArgs
- 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 SmbShareArgs
- 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 SmbShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmbShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmbShareArgs
- 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 smbShareResource = new Powerstore.SmbShare("smbShareResource", new()
{
FileSystemId = "string",
Path = "string",
Aces = new[]
{
new Powerstore.Inputs.SmbShareAceArgs
{
AccessLevel = "string",
AccessType = "string",
TrusteeName = "string",
TrusteeType = "string",
},
},
Description = "string",
IsAbeEnabled = false,
IsBranchCacheEnabled = false,
IsContinuousAvailabilityEnabled = false,
IsEncryptionEnabled = false,
Name = "string",
OfflineAvailability = "string",
Umask = "string",
});
example, err := powerstore.NewSmbShare(ctx, "smbShareResource", &powerstore.SmbShareArgs{
FileSystemId: pulumi.String("string"),
Path: pulumi.String("string"),
Aces: powerstore.SmbShareAceArray{
&powerstore.SmbShareAceArgs{
AccessLevel: pulumi.String("string"),
AccessType: pulumi.String("string"),
TrusteeName: pulumi.String("string"),
TrusteeType: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
IsAbeEnabled: pulumi.Bool(false),
IsBranchCacheEnabled: pulumi.Bool(false),
IsContinuousAvailabilityEnabled: pulumi.Bool(false),
IsEncryptionEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
OfflineAvailability: pulumi.String("string"),
Umask: pulumi.String("string"),
})
var smbShareResource = new SmbShare("smbShareResource", SmbShareArgs.builder()
.fileSystemId("string")
.path("string")
.aces(SmbShareAceArgs.builder()
.accessLevel("string")
.accessType("string")
.trusteeName("string")
.trusteeType("string")
.build())
.description("string")
.isAbeEnabled(false)
.isBranchCacheEnabled(false)
.isContinuousAvailabilityEnabled(false)
.isEncryptionEnabled(false)
.name("string")
.offlineAvailability("string")
.umask("string")
.build());
smb_share_resource = powerstore.SmbShare("smbShareResource",
file_system_id="string",
path="string",
aces=[{
"access_level": "string",
"access_type": "string",
"trustee_name": "string",
"trustee_type": "string",
}],
description="string",
is_abe_enabled=False,
is_branch_cache_enabled=False,
is_continuous_availability_enabled=False,
is_encryption_enabled=False,
name="string",
offline_availability="string",
umask="string")
const smbShareResource = new powerstore.SmbShare("smbShareResource", {
fileSystemId: "string",
path: "string",
aces: [{
accessLevel: "string",
accessType: "string",
trusteeName: "string",
trusteeType: "string",
}],
description: "string",
isAbeEnabled: false,
isBranchCacheEnabled: false,
isContinuousAvailabilityEnabled: false,
isEncryptionEnabled: false,
name: "string",
offlineAvailability: "string",
umask: "string",
});
type: powerstore:SmbShare
properties:
aces:
- accessLevel: string
accessType: string
trusteeName: string
trusteeType: string
description: string
fileSystemId: string
isAbeEnabled: false
isBranchCacheEnabled: false
isContinuousAvailabilityEnabled: false
isEncryptionEnabled: false
name: string
offlineAvailability: string
path: string
umask: string
SmbShare 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 SmbShare resource accepts the following input properties:
- File
System stringId - The unique identifier of the file system on which the SMB Share is created.
- Path string
- The local path to export relative to the NAS Server.
- Aces
List<Smb
Share Ace> - To specify the ACL access options.
- Description string
- User defined SMB share description.
- Is
Abe boolEnabled - Whether Access-based Enumeration (ABE) is enabled.
- Is
Branch boolCache Enabled - Whether BranchCache optimization is enabled.
- Is
Continuous boolAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- Is
Encryption boolEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- Name string
- The name of the SMB Share.
- Offline
Availability string - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - Umask string
- The default UNIX umask for new files created on the Share.
- File
System stringId - The unique identifier of the file system on which the SMB Share is created.
- Path string
- The local path to export relative to the NAS Server.
- Aces
[]Smb
Share Ace Args - To specify the ACL access options.
- Description string
- User defined SMB share description.
- Is
Abe boolEnabled - Whether Access-based Enumeration (ABE) is enabled.
- Is
Branch boolCache Enabled - Whether BranchCache optimization is enabled.
- Is
Continuous boolAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- Is
Encryption boolEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- Name string
- The name of the SMB Share.
- Offline
Availability string - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - Umask string
- The default UNIX umask for new files created on the Share.
- file
System StringId - The unique identifier of the file system on which the SMB Share is created.
- path String
- The local path to export relative to the NAS Server.
- aces
List<Smb
Share Ace> - To specify the ACL access options.
- description String
- User defined SMB share description.
- is
Abe BooleanEnabled - Whether Access-based Enumeration (ABE) is enabled.
- is
Branch BooleanCache Enabled - Whether BranchCache optimization is enabled.
- is
Continuous BooleanAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- is
Encryption BooleanEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- name String
- The name of the SMB Share.
- offline
Availability String - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - umask String
- The default UNIX umask for new files created on the Share.
- file
System stringId - The unique identifier of the file system on which the SMB Share is created.
- path string
- The local path to export relative to the NAS Server.
- aces
Smb
Share Ace[] - To specify the ACL access options.
- description string
- User defined SMB share description.
- is
Abe booleanEnabled - Whether Access-based Enumeration (ABE) is enabled.
- is
Branch booleanCache Enabled - Whether BranchCache optimization is enabled.
- is
Continuous booleanAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- is
Encryption booleanEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- name string
- The name of the SMB Share.
- offline
Availability string - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - umask string
- The default UNIX umask for new files created on the Share.
- file_
system_ strid - The unique identifier of the file system on which the SMB Share is created.
- path str
- The local path to export relative to the NAS Server.
- aces
Sequence[Smb
Share Ace Args] - To specify the ACL access options.
- description str
- User defined SMB share description.
- is_
abe_ boolenabled - Whether Access-based Enumeration (ABE) is enabled.
- is_
branch_ boolcache_ enabled - Whether BranchCache optimization is enabled.
- is_
continuous_ boolavailability_ enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- is_
encryption_ boolenabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- name str
- The name of the SMB Share.
- offline_
availability str - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - umask str
- The default UNIX umask for new files created on the Share.
- file
System StringId - The unique identifier of the file system on which the SMB Share is created.
- path String
- The local path to export relative to the NAS Server.
- aces List<Property Map>
- To specify the ACL access options.
- description String
- User defined SMB share description.
- is
Abe BooleanEnabled - Whether Access-based Enumeration (ABE) is enabled.
- is
Branch BooleanCache Enabled - Whether BranchCache optimization is enabled.
- is
Continuous BooleanAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- is
Encryption BooleanEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- name String
- The name of the SMB Share.
- offline
Availability String - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - umask String
- The default UNIX umask for new files created on the Share.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmbShare resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SmbShare Resource
Get an existing SmbShare 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?: SmbShareState, opts?: CustomResourceOptions): SmbShare
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aces: Optional[Sequence[SmbShareAceArgs]] = None,
description: Optional[str] = None,
file_system_id: Optional[str] = None,
is_abe_enabled: Optional[bool] = None,
is_branch_cache_enabled: Optional[bool] = None,
is_continuous_availability_enabled: Optional[bool] = None,
is_encryption_enabled: Optional[bool] = None,
name: Optional[str] = None,
offline_availability: Optional[str] = None,
path: Optional[str] = None,
umask: Optional[str] = None) -> SmbShare
func GetSmbShare(ctx *Context, name string, id IDInput, state *SmbShareState, opts ...ResourceOption) (*SmbShare, error)
public static SmbShare Get(string name, Input<string> id, SmbShareState? state, CustomResourceOptions? opts = null)
public static SmbShare get(String name, Output<String> id, SmbShareState state, CustomResourceOptions options)
resources: _: type: powerstore:SmbShare get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Aces
List<Smb
Share Ace> - To specify the ACL access options.
- Description string
- User defined SMB share description.
- File
System stringId - The unique identifier of the file system on which the SMB Share is created.
- Is
Abe boolEnabled - Whether Access-based Enumeration (ABE) is enabled.
- Is
Branch boolCache Enabled - Whether BranchCache optimization is enabled.
- Is
Continuous boolAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- Is
Encryption boolEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- Name string
- The name of the SMB Share.
- Offline
Availability string - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - Path string
- The local path to export relative to the NAS Server.
- Umask string
- The default UNIX umask for new files created on the Share.
- Aces
[]Smb
Share Ace Args - To specify the ACL access options.
- Description string
- User defined SMB share description.
- File
System stringId - The unique identifier of the file system on which the SMB Share is created.
- Is
Abe boolEnabled - Whether Access-based Enumeration (ABE) is enabled.
- Is
Branch boolCache Enabled - Whether BranchCache optimization is enabled.
- Is
Continuous boolAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- Is
Encryption boolEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- Name string
- The name of the SMB Share.
- Offline
Availability string - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - Path string
- The local path to export relative to the NAS Server.
- Umask string
- The default UNIX umask for new files created on the Share.
- aces
List<Smb
Share Ace> - To specify the ACL access options.
- description String
- User defined SMB share description.
- file
System StringId - The unique identifier of the file system on which the SMB Share is created.
- is
Abe BooleanEnabled - Whether Access-based Enumeration (ABE) is enabled.
- is
Branch BooleanCache Enabled - Whether BranchCache optimization is enabled.
- is
Continuous BooleanAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- is
Encryption BooleanEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- name String
- The name of the SMB Share.
- offline
Availability String - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - path String
- The local path to export relative to the NAS Server.
- umask String
- The default UNIX umask for new files created on the Share.
- aces
Smb
Share Ace[] - To specify the ACL access options.
- description string
- User defined SMB share description.
- file
System stringId - The unique identifier of the file system on which the SMB Share is created.
- is
Abe booleanEnabled - Whether Access-based Enumeration (ABE) is enabled.
- is
Branch booleanCache Enabled - Whether BranchCache optimization is enabled.
- is
Continuous booleanAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- is
Encryption booleanEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- name string
- The name of the SMB Share.
- offline
Availability string - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - path string
- The local path to export relative to the NAS Server.
- umask string
- The default UNIX umask for new files created on the Share.
- aces
Sequence[Smb
Share Ace Args] - To specify the ACL access options.
- description str
- User defined SMB share description.
- file_
system_ strid - The unique identifier of the file system on which the SMB Share is created.
- is_
abe_ boolenabled - Whether Access-based Enumeration (ABE) is enabled.
- is_
branch_ boolcache_ enabled - Whether BranchCache optimization is enabled.
- is_
continuous_ boolavailability_ enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- is_
encryption_ boolenabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- name str
- The name of the SMB Share.
- offline_
availability str - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - path str
- The local path to export relative to the NAS Server.
- umask str
- The default UNIX umask for new files created on the Share.
- aces List<Property Map>
- To specify the ACL access options.
- description String
- User defined SMB share description.
- file
System StringId - The unique identifier of the file system on which the SMB Share is created.
- is
Abe BooleanEnabled - Whether Access-based Enumeration (ABE) is enabled.
- is
Branch BooleanCache Enabled - Whether BranchCache optimization is enabled.
- is
Continuous BooleanAvailability Enabled - Whether continuous availability for Server Message Block (SMB) 3.0 is enabled for the SMB Share.
- is
Encryption BooleanEnabled - Whether encryption for Server Message Block (SMB) 3.0 is enabled at the shared folder level.
- name String
- The name of the SMB Share.
- offline
Availability String - Defines valid states of Offline Availability, where the states are:
Manual
- Only specified files will be available offline.Documents
- All files that users open will be available offline.Programs
- Program will preferably run from the offline cache even when connected to the network. All files that users open will be available offline.None
- Prevents clients from storing documents and programs in offline cache. - path String
- The local path to export relative to the NAS Server.
- umask String
- The default UNIX umask for new files created on the Share.
Supporting Types
SmbShareAce, SmbShareAceArgs
- Access
Level string - The access level.
- Access
Type string - The access type.
- Trustee
Name string - The name of the trustee.
- Trustee
Type string - The type of the trustee.
- Access
Level string - The access level.
- Access
Type string - The access type.
- Trustee
Name string - The name of the trustee.
- Trustee
Type string - The type of the trustee.
- access
Level String - The access level.
- access
Type String - The access type.
- trustee
Name String - The name of the trustee.
- trustee
Type String - The type of the trustee.
- access
Level string - The access level.
- access
Type string - The access type.
- trustee
Name string - The name of the trustee.
- trustee
Type string - The type of the trustee.
- access_
level str - The access level.
- access_
type str - The access type.
- trustee_
name str - The name of the trustee.
- trustee_
type str - The type of the trustee.
- access
Level String - The access level.
- access
Type String - The access type.
- trustee
Name String - The name of the trustee.
- trustee
Type String - The type of the trustee.
Package Details
- Repository
- powerstore dell/terraform-provider-powerstore
- License
- Notes
- This Pulumi package is based on the
powerstore
Terraform Provider.