Comments (5)
Your best bet is to connect to the controller over IP address and look at the XHR requests to see what the JSON looks like behind the scenes from the UI. Then you can just emulate that in the SDK/provider.
from terraform-provider-unifi.
Ok, another lib is using a approach of getting the json from the API and convert it to golang structs. I tried to get stuff into that but in the meantime your projects poped up :-)
On the javascript variants a implementation seems to include this info .. i gonna try to get PR on the run
from terraform-provider-unifi.
The string slice in the browser seems to get values like this, an array of times to block off:
"schedule": ["tue|0000-0900", "tue|2000-2400", "thu|0715-1430"],
So you could just build those strings manually, or update the structs in go-unifi to handle it a bit more cleanly.
from terraform-provider-unifi.
I think for the HCL you could do something like:
resource "unifi_wlan" "test" {
schedule {
day_of_week = "tue"
block_start = "0:00"
block_end = "9:00"
}
}
from terraform-provider-unifi.
If you can PR great, if not, I'll add this to my list as well for some time in the next few weeks.
from terraform-provider-unifi.
Related Issues (20)
- ```unifi_user```could not resolve ip for given mac on create - only on second run
- DataUnifiUser should implement retry / wait HOT 2
- Error: invalid character '<' looking for beginning of value HOT 6
- Multicast and Broadcast Control support?
- Bug unifi_network -> subnet always assume 1 as ip address HOT 3
- Cannot create stastic route for ipv6
- Warnings in controller logs when running acceptance tests
- Migrate to Terraform Plugin Framework
- Support for unifi network version 7.4.XX ? HOT 7
- Firewall rule indices: FirewallRuleIndexExisted
- `network_id` for `unifi_account` doesn't work
- Provider seems to require site now HOT 4
- import and configuration mismatch HOT 2
- Shift WLAN passphrase to separate resource
- Wan vlan settings missing?
- Bug: Data `unifi_user` cannot get any information other than `id`, even though actual API request returns information
- Cannot update firewall rule from AddressGroup to Address
- unifi_network missing dhcp_relay ip fileds HOT 1
- Unifi 8.X broke the provider HOT 9
- intra_network_access appears to be deprecated, in favor of 'guest' network purpose / traffic rules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-unifi.