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

<name>

Yes

string

Sets the name of the rule.

<match-value>

Yes

string

Sets the Match Values.

<destination>

Yes

string

Sets the Routing Destination.

-d, --domain <domain-UUID>

No

UUID

The domain UUID to associate with the record.
Default: 00000000-0000-0000-0000-000000000000

-e, --exact

No

Use the match value to match against verbatim.

-o, --order <value>

Required for MX rules.

integer

Priority order of a rule.

-p, --pattern

Yes

Use the match value as a pattern to match against.

--redirect

No

integer

Sets the routing action value to redirect.

--rewrite

No

Sets the routing action value to rewrite.

Global Flags

Option Required Type Description

-h, --help

No

Displays inline help for the command.

--config <file-location>

No

string

Location of client configuration file (default file path is $HOME/.edjx/.edjx.yaml).

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
routing rule examples