edjx domain rules create
Create a rule for a domain.
Usage
edjx domain rules create <name> <match-value> <destination> [-d, --domain <domain-UUID>] [-e, --exact] [-o, --order <value>] [-p, --pattern] [ --redirect] [ --rewrite]
Options
Option | Required | Type | Description |
---|---|---|---|
|
Yes |
string |
Sets the name of the rule. |
|
Yes |
string |
Sets the Match Values. |
|
Yes |
string |
Sets the Routing Destination. |
|
No |
UUID |
The domain UUID to associate with the record. |
|
No |
Use the match value to match against verbatim. |
|
|
Required for MX rules. |
integer |
Priority order of a rule. |
|
Yes |
Use the match value as a pattern to match against. |
|
|
No |
integer |
Sets the routing action value to redirect. |
|
No |
Sets the routing action value to rewrite. |
Global Flags
Option | Required | Type | Description |
---|---|---|---|
|
No |
Displays inline help for the command. |
|
|
No |
string |
Location of client configuration file (default file path is |
Sample Output
root@edjx:~ # edjx domain rules create rule-exact-match http://or1.com/support?name=support http://org1.com -e --redirect Rule created successfully. Rule ID: 79afb1a1-21d1-4029-82d0-d9a7913ded63
