PSGpfsApi/Public/GpfsCluster.ps1

25 lines
580 B
PowerShell

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
}
}