add_nas_share_to_host
Add a network share to a host.
Arguments
Name
Type
Description
Choices
hostname
str
The hostname or IP Address of the host serving the NAS share.
share_type
str
The type of NAS Share you wish to backup.
NFS, SMB
export_point
str
Name of the share exported by the NAS host.
Keyword Arguments
Name
Type
Description
Choices
Default
username
str
Username if the network share requires authentication.
None
password
str
Password if the network share requires authentication.
None
domain
str
Domain name of account credentials used for authentication.
None
timeout
int
The number of seconds to wait to establish a connection the Rubrik cluster before returning a timeout error.
60
Returns
Type
Return Value
str
No change required. The share with the given hostname and export point has already been added.
dict
The full API response for POST /internal/host/share
with the given share arguments.
Exceptions
Type
Message
InvalidParameterException
The add_nas_share_to_host() share_type argument must be one of the following: ['NFS', 'SMB'].
Example
Last updated