The long awaited update for the PowerShell Toolkit is now available. I track issues and/or suggestions via GitHub. I have implemented about 95%+ of the current REST APIs available in Purity 4.0. All of my development was done using Windows 8, Windows Server 2012 R2, PowerShell 5.0 (Preview November 2014) and SAPIEN PowerShell Studio.
Top 5 items for this release are:
- Includes 152 cmdlets that cover all areas of the REST API.
- Module updated to PureStoragePowerShell for easy importing, no more of that “.” non-sense.
- Tested with Windows Management Framework 5.0, and 4.0 and 3.0.
- Simple Windows Installer
(msi) - Full Get-Help support, all cmdlets are documented!
I’ll be posting new sample scripts and videos on over the coming days/weeks. Some of the samples I’ll be posting cover creating protection groups, setting up replication, setting up directory services, and more.
REST API Areas Covered
- Authentication
- Volume Shadow Copy
- Array
- Volumes & Snapshots
- Hosts
- Host Groups
- Protection Groups
- Connection Ports
- Alerts & Messages
- SNMP Manager
- SSL
- Network Interface
- Hardware
- Users
New Windows Installer
Easy installation and updates, no more manually copying to Modules directory. Download the installer from the GitHub repository at https://github.com/barkz/PureStoragePowerShellToolkit/blob/master/PureStoragePowerShell_2_8_0_430.msi If you want to use this in your My Documents WindowsPowerShell/Modules you will need to manually copy to that separate location.
Windows PowerShell ISE Commands Add-on
Use the Windows PowerShell ISE to set all the parameters for the individual cmdlets. The below example shows the various parameters for the New-PfaProtectionGroup cmdlet.
Full Support for Get-Help
Need help figuring out how to use a cmdlet? Well look no further than the way you get all the help in Windows PowerShell; Get-Help! Example below is for the New-PfaProtectionGroup cmdlet.
Pure Storage PowerShell Toolkit Cmdlet List
Below is the full list of cmdlets available in the toolkit.
Add-PfaHostGroupHosts Add-PfaProtectionGroupMembers Clear-PfaPermissionCache Connect-PfaController Connect-PfaHost Connect-PfaHostGroup Connect-PfaRemoteAssist Connect-PfaVolume Disable-PfaAlertRecipient Disable-PfaConsoleLock Disable-PfaDirectoryService Disable-PfaPhonehome Disable-PfaPorts Disable-PfaProtectionGroupReplication Disable-PfaProtectionGroupSnapshots Disconnect-PfaController Disconnect-PfaHostGroupVolume Disconnect-PfaRemoteAssist Disconnect-PfaVolume Enable-PfaAlertRecipient Enable-PfaConsoleLock Enable-PfaDirectoryService Enable-PfaPhonehome Enable-PfaPorts Enable-PfaProtectionGroupReplication Enable-PfaProtectionGroupSnapshots Eradicate-PfaProtectionGroup Eradicate-PfaVolume Export-PfaSslCert Get-HostBusAdapter Get-PfaAlertRecipient Get-PfaAlerts Get-PfaApiToken Get-PfaApiVersion Get-PfaArray Get-PfaConfiguration Get-PfaConnection Get-PfaConsoleLock Get-PfaDirectoryService Get-PfaDirectoryServiceCertificate Get-PfaDirectoryServiceGroups Get-PfaDns Get-PfaDrive Get-PfaDrives Get-PfaHardware Get-PfaHardwareComponent Get-PfaHistoricalPerformance Get-PfaHistoricalVolumePerformance Get-PfaHost Get-PfaHostGroups Get-PfaHostGroupVolumes Get-PfaHosts Get-PfaInitiators Get-PfaMessages Get-PfaNetwork Get-PfaNetworkInterface Get-PfaPendingOnlyVolumes Get-PfaPendingVolumes Get-PfaPhoneHome Get-PfaPorts Get-PfaProtectionGroup Get-PfaProtectionGroupPending Get-PfaProtectionGroupPendingOnly Get-PfaProtectionGroupRetentionPolicy Get-PfaProtectionGroups Get-PfaProtectionGroupSchedule Get-PfaProtectionGroupSnapshotSpace Get-PfaProtectionGroupSpace Get-PfaProtectionGroupsPending Get-PfaProtectionGroupsPendingOnly Get-PfaProtectionGroupsRetentionPolicy Get-PfaProtectionGroupsSchedule Get-PfaProtectionGroupsSnapshotSpace Get-PfaProtectionGroupsSpace Get-PfaProtectionGroupsTransferStatisics Get-PfaProtectionGroupTransferStatisics Get-PfaRemoteAssist Get-PfaShadowCopy Get-PfaSnapshots Get-PfaSnmp Get-PfaSnmpManager Get-PfaSpace Get-PfaSslCert Get-PfaUser Get-PfaUsers Get-PfaVolume Get-PfaVolumeDiff Get-PfaVolumePrivateConnections Get-PfaVolumes Get-PfaVolumeSharedConnections Get-PfaVolumeSnapshots Get-PfaVolumeSpace Get-PfaVolumesSpace Get-WindowsPowerScheme Hide-PfaMessage New-PfaAlertRecipient New-PfaApiToken New-PfaConnection New-PfaHost New-PfaHostGroup New-PfaProtectionGroup New-PfaProtectionGroupSnapshot New-PfaShadowCopy New-PfaSnapshot New-PfaSnmpv2cManager New-PfaSnmpv3Manager New-PfaVolume Open-PureStorageGitHub Recover-PfaProtectionGroup Recover-PfaSnapshot Recover-PfaVolume Refresh-PfaVolume Remove-PfaAlertRecipient Remove-PfaApiToken Remove-PfaConnection Remove-PfaHost Remove-PfaHostGroup Remove-PfaHostGroupHosts Remove-PfaProtectionGroup Remove-PfaProtectionGroupMembers Remove-PfaSnapshot Remove-PfaSnmpManager Remove-PfaVolume Rename-PfaHostGroup Rename-PfaProtectionGroup Rename-PfaVolume Resize-PfaVolume Send-PfaPhonehomeLogs Set-PfaBanner Set-PfaDns Set-PfaIdleTimeout Set-PfaName Set-PfaNtpServer Set-PfaProtectionGroupReplicationBlackout Set-PfaProxy Set-PfaRelayHost Set-PfaScsiTimeout Set-PfaSenderDomain Set-PfaSyslogServer Set-PfaUserPassword Set-PfaUserPublicKey Show-PfaHardwareLed Show-PfaMessage Test-PfaAlertRecipient Test-PfaDirectoryService Test-PfaSnmpManager Update-PfaDirectoryService Update-PfaHostGroupHosts Update-PfaProtectionGroupReplication Update-PfaSnmpManager Watch-PfaPerformance Watch-PfaVolumePerformance
Thanks and enjoy!
barkz