Initial commit

This commit is contained in:
Laurence Horrocks-Barlow 2026-05-19 00:35:27 +01:00
commit 6bf433c9a9
20 changed files with 1162 additions and 0 deletions

25
Public/GpfsCluster.ps1 Normal file
View file

@ -0,0 +1,25 @@
function Get-GpfsCluster {
[CmdletBinding()]
param()
Invoke-GpfsApiRequest -Method GET -Endpoint 'cluster'
}
function Get-GpfsClusterAuditLog {
[CmdletBinding()]
param()
Invoke-GpfsApiRequest -Method GET -Endpoint 'cluster/auditlog'
}
function Set-GpfsClusterAuditLog {
[CmdletBinding(SupportsShouldProcess)]
param(
[Parameter(Mandatory)]
[hashtable]$Settings
)
if ($PSCmdlet.ShouldProcess('cluster audit log', 'Update')) {
Invoke-GpfsApiRequest -Method PUT -Endpoint 'cluster/auditlog' -Body $Settings
}
}