Initial commit
This commit is contained in:
commit
6bf433c9a9
20 changed files with 1162 additions and 0 deletions
25
Public/GpfsCluster.ps1
Normal file
25
Public/GpfsCluster.ps1
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue