Enable‐OPNsense - fvanroie/PS_OPNsense GitHub Wiki
Enable a OPNsense objects
Enable-OPNsense [-CaptivePortalZone] [<CommonParameters>]Enable-OPNsense [-CronJob] [<CommonParameters>]Enable-OPNsense [-IdsRule] [<CommonParameters>]Enable-OPNsense [-IdsRuleSet] [<CommonParameters>]Enable-OPNsense [-IdsUserRule] [<CommonParameters>]Enable-OPNsense [-ProxyRemoteBlackList] [<CommonParameters>]Enable-OPNsense [-Route] [<CommonParameters>]Enable-OPNsense [-TrafficShaperPipe] [<CommonParameters>]Enable-OPNsense [-TrafficShaperQueue] [<CommonParameters>]Enables one or more OPNsense objects based on their UUID within the REST api. You can pass multiple UUIDs, but they must all belong to the same object type. You cannot mix UUIDs of different object types. Use Get-OPNsense to retieve the UUID of an object.
-CaptivePortalZone <SwitchParameter>
Enable a CaptivePortal Zone object
| Required? | false |
| Position? | named |
| Default Value? | |
| Pipeline Input? | false |
-CronJob <SwitchParameter>
Enable a CronJob object
| Required? | false |
| Position? | named |
| Default Value? | |
| Pipeline Input? | false |
-IdsRule <SwitchParameter>
Enable a IDS Rule object
| Required? | false |
| Position? | named |
| Default Value? | |
| Pipeline Input? | false |
-IdsRuleSet <SwitchParameter>
Enable a IDS RuleSet object
| Required? | false |
| Position? | named |
| Default Value? | |
| Pipeline Input? | false |
-IdsUserRule <SwitchParameter>
Enable a IDS UserRule object
| Required? | false |
| Position? | named |
| Default Value? | |
| Pipeline Input? | false |
-ProxyRemoteBlackList <SwitchParameter>
Enable a Proxy RemoteBlacklist object
| Required? | false |
| Position? | named |
| Default Value? | |
| Pipeline Input? | false |
-Route <SwitchParameter>
Enable a Route object
| Required? | false |
| Position? | named |
| Default Value? | |
| Pipeline Input? | false |
-TrafficShaperPipe <SwitchParameter>
Enable a TrafficShaper Pipe object
| Required? | false |
| Position? | named |
| Default Value? | |
| Pipeline Input? | false |
-TrafficShaperQueue <SwitchParameter>
Enable a TrafficShaper Queue object
| Required? | false |
| Position? | named |
| Default Value? | |
| Pipeline Input? | false |
$cronJobs = 'b5123c61-c036-4449-b400-9d214b914865', 'fc011654-9bf4-4109-abc5-985929e9a8d3'
Enable-OPNsense -CronJob $cronJobs