Functions/New-IAWidgetConfigurationVulnerabilities.ps1
Function New-IAWidgetConfigurationVulnerability { Param( [Parameter(Mandatory = $true)] [PSObject] $IAWidgetConfigurationVulnerabilitiesObject, [Switch] $Passthru ) $Uri = "WidgetConfigurationVulnerabilities" $Body = $IAWidgetConfigurationVulnerabilitiesObject | ConvertTo-Json Write-Verbose "Body: $Body" $response = Invoke-IAQuery -QueryUrl $Uri -Method Post -Body $Body if($Passthru){ if ($null -eq $response) { return $null } return $response } } |