Skip to content

Instantly share code, notes, and snippets.

View codyhosterman's full-sized avatar

Cody Hosterman codyhosterman

View GitHub Profile
@codyhosterman
codyhosterman / New-Pfa2VvolDatastore.ps1
Created December 23, 2022 21:21
Create new vVol datastore on Flasharray
[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 July 4, 2023 03:51
Pure1 Python JWT generator
#!/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