Table of Contents

API : ZeroTier : Rules Compiler

Introduction

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.

Request

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.

Body example

{
  rawRules: 'drop not ethertype ipv4;\naccept;\n'
}

Response

On success an array of the rules will be returned.

See network for details.

Errors

Error code Message Description
422 rawRules Failed to parse rule at <line>:<pos>: <error description>
403 access_denied Access denied
500 internal_error <Unspecified>