Get-SdStorageConnectionSetting
Gets the storage system connection, transport, and credential settings from the configuration repository.
Syntax
Get-SdStorageConnectionSetting [-Name] <String[]> [-Session] <String> [-Host] <String> [-DefaultSetting] <> [-Session] <String> [-Host] <String>
Detailed Description
This cmdlet reads the storage system, transport, and credential settings from the configuration repository to make a connection to the storage system. These settings include the storage server name (virtual storage server name or IP,) port, transport type, user login, and password. Ifyou do not include parameters, this cmdlet reads all the storage connection settings from the repository.Related cmdlets: Set-SdStorageConnectionSetting and Remove-SdStorageConnectionSetting
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
Name |
Specifies the name or IP address of the storage system (storage controller or virtual storage server) for which you want to retrieve connection settings. |
false |
true (ByPropertyName) |
|
Session |
false |
true (ByPropertyName) |
||
Host |
Specifies the name or IP address of the host on which you execute the operation. The default is your local machine. |
false |
true (ByPropertyName) |
|
DefaultSetting |
Indicates that you want to view the default storage system connection settings. When you do not specify explicit storage system connection values, you use the default settings. |
true |
false |
Examples
Example 1: Getting a named connection setting
PS C:\> Get-SdStorageConnectionSetting -StorageSystem 'vmStorageServer'
This example syntax gets the storage system connection settings for the specified storage system "vmStorageServer".
Storage System Name/IP : vmStorageServer
User : vsadmin
Port : 80
Protocol : Http
Example 2: Getting all connection settings
PS C:\> Get-SdStorageConnectionSetting
This example syntax retrieves all the storage connection settings.
Storage System Name/IP : vmStorageServer User : vsadmin Port : 80 Protocol : Http Storage System Name/IP : vmStorageServer2 User : vsadmin2 Port : 443 Protocol : Https
Example 3: Getting the default connection setting
PS C:\> Get-SdStorageConnectionSetting -DefaultSetting
This example syntax retrieves the default connection settings.
User : vsadmin
Port : 80
Protocol : Http