This API will accept a raw set of rules and compile them and return the compiled rules or return a descriptive error if compilation fails. This is good for testing if a set of rules are valid.
| URL | https://api.telecomx.dk/zerotier/compile | ||
|---|---|---|---|
| Method | POST | ||
| Access level | MAMAGER or OWNER that belongs to the customer RESELLER, RESELLER_ADMIN for the customer or ADMIN |
||
| Body | rawRules | String | Rules to compile. |
{ rawRules: 'drop not ethertype ipv4;\naccept;\n' }
On success an array of the rules will be returned.
See network for details.
| Error code | Message | Description |
|---|---|---|
| 422 | rawRules | Failed to parse rule at <line>:<pos>: <error description> |
| 403 | access_denied | Access denied |
| 500 | internal_error | <Unspecified> |