Skip to content

Instantly share code, notes, and snippets.

Avatar

Cody Hosterman codyhosterman

View GitHub Profile
@codyhosterman
codyhosterman / New-Pfa2VvolDatastore.ps1
Created December 23, 2022 21:21
Create new vVol datastore on Flasharray
View New-Pfa2VvolDatastore.ps1
[CmdletBinding()]
Param(
[Parameter(Position=0,mandatory=$true,ValueFromPipeline=$True)]
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]$Cluster,
[Parameter(Position=1,mandatory=$true)]
[string]$FlashArray,
[Parameter(Position=2,ValueFromPipeline=$True,mandatory=$true)]
[System.Management.Automation.PSCredential]$Credentials,
@codyhosterman
codyhosterman / pure1_token_factory.py
Last active September 27, 2020 14:35
Pure1 Python JWT generator
View pure1_token_factory.py
#!/usr/bin/env python3
"""
Copyright Pure Storage, Inc. 2020. All Rights Reserved
usage: pure1_api_client.py [-h] [-p PASSWORD] [-o OUTPUT]
id private_key_file
Retrieves an Access Token for Pure1 Public API