zerotier / zerotier-one-api-spec

ZeroTier
https://zerotier.com
3 stars 0 forks source link

add rules, caps, tags properties to controller-network POST and GET #16

Open laduke opened 2 weeks ago

laduke commented 2 weeks ago

even if just specing them as any

here's an example from the my.zerotier.com rules engine

{
 "rules": [
  {
   "type": "MATCH_TAGS_BITWISE_AND",
   "not": true,
   "or": false,
   "id": 1,
   "value": 0
  },
  {
   "type": "ACTION_ACCEPT"
  },
  {
   "type": "ACTION_DROP"
  }
 ],
 "capabilities": [
  {
   "id": 1,
   "default": false,
   "rules": [
    {
     "type": "ACTION_ACCEPT"
    }
   ]
  }
 ],
 "tags": [
  {
   "id": 1,
   "default": 0
  }
 ]
}