[SOLVED] pmgsh api

Grogory

Member
Feb 15, 2019
26
0
6
66
Moscow
Hello! I have custom DB rule for What objects with match Fields that have regular expressions. With pmgsh I get the ID=24 of this rule.
I can get with # pmgsh get config/ruledb/what/24/objects all objects from this rules.
But I can not create new rules with pmgsh.
I tried:
# pmgsh create config/ruledb/what/24/field --field "Received" --value ".*(?i)(.adsl.co.za)"
And have the Error:
no 'create' handler for 'config/ruledb/what/24/field'
I tried
# pmgsh create config/ruledb/what/24/field -field "Received" -value ".*(?i)(.adsl.co.za)"
# pmgsh create config/ruledb/what/24 -field "Received" -value ".*(?i)(.adsl.co.za)"
and have Error in both cases.
Can anyone help and explain how to create with pmgsh What object rules with key and value?
I need to import this rules with pmgsh.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!