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