Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for traffic management #164

Open
myoung34 opened this issue Sep 3, 2023 · 0 comments
Open

Add support for traffic management #164

myoung34 opened this issue Sep 3, 2023 · 0 comments

Comments

@myoung34
Copy link

myoung34 commented Sep 3, 2023

Currently go-unifi (and terraform downstream) cannot manage traffic management

Endpoint is api/site/default/trafficrules and an example GET

[
  {
    "_id": "6341da70ae89fe09e5458a22",
    "action": "BLOCK",
    "app_category_ids": [],
    "app_ids": [],
    "bandwidth_limit": {
      "download_limit_kbps": 1024,
      "enabled": false,
      "upload_limit_kbps": 1024
    },
    "description": "Traffic Rule",
    "domains": [
      {
        "domain": "somedomain.com",
        "port_ranges": [],
        "ports": []
      }
    ],
    "enabled": false,
    "ip_addresses": [],
    "ip_ranges": [],
    "matching_target": "DOMAIN",
    "network_ids": [],
    "regions": [],
    "schedule": {
      "date_end": "2022-10-15",
      "date_start": "2022-10-08",
      "mode": "ALWAYS",
      "repeat_on_days": [],
      "time_all_day": false,
      "time_range_end": "12:00",
      "time_range_start": "09:00"
    },
    "target_devices": [
      {
        "client_mac": "78:c8:81:cd:dd:6d",
        "type": "CLIENT"
      }
    ]
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant