Get-SmStorageConnection
Contributors
Suggest changes
Retrieves all storage system connections.
Syntax
Get-SmStorageConnection [-Storage] <String> [-StorageType] <String> [-AzureNetAppAccountId] <bigint(20)>
Detailed Description
Retrieves information about available storage system connections. You can get information about a specified storage system, or about all of them.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
Storage |
false |
true (ByPropertyName) |
||
StorageType |
Specifies storage type. Valid values are DataOntap and AzureNetAppAccount. |
false |
true (ByPropertyName) |
|
AzureNetAppAccountId |
Specifies Azure NetApp Account ID. |
false |
true (ByPropertyName) |
Examples
Example 1: Getting storage system connections for a specified storage system
Get-SmStorageConnection -SVM 172.17.168.13
This example syntax retrieves information for a specified storage system connection.
UserName: vsadmin Password: Port: 80 TransportType : Http ModifyTime : 1/1/0001 12:00:00 AM Mode: OntapiMajorVersion : OntapiMinorVersion : Version : NetApp Release 8.2.2X33 Cluster-Mode: Fri Aug 22 06:04:17 PDT 2014 StorageSystemOSType : DataOntap Passphrase : Id : 5 Timeout : 60 Uuid: OperationContext: PreferredIpAddress : Aliases : {} SmIPAddresses : {SMCoreContracts.SmIPAddress, SMCoreContracts.SmIPAddress, SMCoreContracts.SmIPAddress, SMCoreContracts.SmIPAddress...} IPAddresses : {172.17.168.13, 172.17.168.13, 172.17.168.13, 172.17.168.13...} Name: mva-dev-3270-02-d1.lab.netapp.com IsResolved : True IsValid : True Identity: mva-dev-3270-02-d1.lab.netapp.com
Example 2: Getting storage system connections for all available storage systems
Get-SmStorageConnection
This example syntax gets information about all available storage system connections.
UserName: vsadmin Password: Port: 80 TransportType : Http ModifyTime : 1/1/0001 12:00:00 AM Mode: OntapiMajorVersion : OntapiMinorVersion : Version : StorageSystemOSType : Passphrase : Id : 1 Timeout : 60 Uuid: OperationContext: PreferredIpAddress : Aliases : {} SmIPAddresses : {SMCoreContracts.SmIPAddress, SMCoreContracts.SmIPAddress, SMCoreContracts.SmIPAddress, SMCoreContracts.SmIPAddress...} IPAddresses : {172.17.124.165, 172.17.124.165, 172.17.124.165, 172.17.124.165...} Name: neeraj_vs1 IsResolved : True IsValid : True Identity: neeraj_vs1 UserName: vsadmin Password: Port: 80 TransportType : Http ModifyTime : 1/1/0001 12:00:00 AM Mode: OntapiMajorVersion : OntapiMinorVersion : Version : StorageSystemOSType : Passphrase : Id : 2 Timeout : Uuid: OperationContext: PreferredIpAddress : Aliases : {} SmIPAddresses : {SMCoreContracts.SmIPAddress, SMCoreContracts.SmIPAddress, SMCoreContracts.SmIPAddress, SMCoreContracts.SmIPAddress...} IPAddresses : {10.225.13.49, 10.225.13.49, 10.225.13.49, 10.225.13.49...} Name: rtp-rr1-d2.gdl.mycompany.com IsResolved : True IsValid : True Identity: rtp-rr1-d2.gdl.mycompany.com
Example 3: Getting Azure NetApp Account with specified ID
Get-SmStorageConnection -StorageType AzureNetAppAccount -AzureNetAppAccountId 1
This example gets information about Azure NetApp Account with specified ID.
NetAppAccountId : 9 NetAppAccountName : test ResourceGroupName : test StorageOSType : AzureNetAppAccount CredentialName: test1 CredentialId : 209 ModifyTime: 3/4/2020 6:45:08 AM ModifyTimeTicks : 637189011080000000 StorageBaseId : 211