We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the Get-FGTMonitorSystemConfigBackup command with -vdom vdomX it will return the full config.
This is easily fixed as the scope just needs to be changed from global to vdom if vdom is given on commandline.
$scope=global if ( $PsBoundParameters.ContainsKey('vdom') ) { $invokeParams.add( 'vdom', $vdom ) $scope="vdom" }
#before 7.6.x, config/backup is available with get method and using paramater if ($connection.version -lt "7.6.0") { $method = "get" $uri = 'api/v2/monitor/system/config/backup?scope=$scope' $body = "" } else { $method = "post" $uri = 'api/v2/monitor/system/config/backup' $body = @{ "scope" = "$scope" } }
The text was updated successfully, but these errors were encountered:
Hi @johan-kummeneje-complior
thanks for the report ! Can you push a PR with the fix ?
Sorry, something went wrong.
Pull request #272 is created.
No branches or pull requests
When using the Get-FGTMonitorSystemConfigBackup command with -vdom vdomX it will return the full config.
This is easily fixed as the scope just needs to be changed from global to vdom if vdom is given on commandline.
$scope=global
if ( $PsBoundParameters.ContainsKey('vdom') ) {
$invokeParams.add( 'vdom', $vdom )
$scope="vdom"
}
#before 7.6.x, config/backup is available with get method and using paramater
if ($connection.version -lt "7.6.0") {
$method = "get"
$uri = 'api/v2/monitor/system/config/backup?scope=$scope'
$body = ""
}
else {
$method = "post"
$uri = 'api/v2/monitor/system/config/backup'
$body = @{
"scope" = "$scope"
}
}
The text was updated successfully, but these errors were encountered: