18 lines
437 B
PowerShell
18 lines
437 B
PowerShell
function Get-GpfsClusterConfig {
|
|
[CmdletBinding()]
|
|
param()
|
|
|
|
Invoke-GpfsApiRequest -Method GET -Endpoint 'config'
|
|
}
|
|
|
|
function Set-GpfsClusterConfig {
|
|
[CmdletBinding(SupportsShouldProcess)]
|
|
param(
|
|
[Parameter(Mandatory)]
|
|
[hashtable]$Settings
|
|
)
|
|
|
|
if ($PSCmdlet.ShouldProcess('cluster configuration', 'Update')) {
|
|
Invoke-GpfsApiRequest -Method PUT -Endpoint 'config' -Body $Settings
|
|
}
|
|
}
|