Pure1 PowerShell Module

To help our customers I have written a module that makes it easy to connect to the Pure1 REST API with PowerShell.

The module is called PureStorage.Pure1

To report issues or request new features, please enter them here:

https://github.com/PureStorage-OpenConnect/PureStorage.Pure1/issues

For questions, join our Pure Storage Code Slack team!

There are a couple of places you can download this. The best option is the PowerShell gallery! This allows you to use install-module to automatically install the module.

To install:

install-module PureStorage.Pure1

To load the module:

import-module PureStorage.Pure1 

To update:

update-module PureStorage.Pure1

Blog post on Pure1 REST Authentication:

Use either get-help or get-command to see the details:

Comment on Versioning

Versions numbering w.x.y.z (for example 1.2.0.0)

  • W is iterated for large updates
  • X is iterated for new cmdlets
  • Y is iterated for new functions to existing cmdlets
  • Z is iterated for bug fixes

Latest version 1.0.1.1 (April 30th, 2020)

See version details: https://github.com/PureStorage-OpenConnect/PureStorage.Pure1/projects/1

New features:

  • Continuation Token Support
  • -Debug support
  • Handle exceeding rate limits
  • Get-Help examples
  • Support for varied REST versions in global parameter $Global:PureOneRestVersion
  • Support for customer query result limits in global parameter $Global:PureOneRateLimit
  • Various internal improvements

Bug Fixes:

  • Get-PureOneVolumeSnapshot fails at scale
  • Volume filter didn’t work for Get-PureOneVolumeSnapshot
  • No Parameter sets/mandatory parameters
  • Defaulting to REST 1.0 only

Cmdlets:

  • New-PureOneCertificate
  • Get-PureOnePublicKey
  • New-PureOneJwt
  • New-PureOneRestConnection
  • Get-PureOneArrays
  • New-PureOneRestOperation
  • Get-PureOneArrayTags
  • Set-PureOneArrayTags
  • Remove-PureOneArrayTags
  • Get-PureOneArrayNetworking
  • Get-PureOneMetricDetails
  • Get-PureOneMetrics
  • Get-PureOneVolumes
  • Get-PureOnePods
  • Get-PureOneVolumeSnapshots
  • Get-PureOneFileSystems
  • Get-PureOneFileSystemSnapshots
  • Get-PureOneArrayBusyMeter