Functions/Disable-HetznerCloudServerRescue.ps1
function Disable-HetznerCloudServerRescue { [CmdletBinding()] param( [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)] [ValidateNotNullOrEmpty()] [int[]] $Id ) process { $Id | ForEach-Object { Invoke-HetznerCloudApi -Api 'servers' -Id $_ -Action 'disable_rescue' -Method 'Post' } } } |