forked from mirrors/terraform-provider-binarylane
77271b0efd0d80233b24601886217c23f55b37ee
separate_private_network_interface to server resource & data source (#125) (#126)
* Initial plan * Initial plan for separate_private_network_interface support Agent-Logs-Url: https://github.com/oscarhermoso/terraform-provider-binarylane/sessions/df438ec9-fdbb-47a3-8ebb-592ee2843eed * Add separate_private_network_interface to server resource and data source Agent-Logs-Url: https://github.com/oscarhermoso/terraform-provider-binarylane/sessions/df438ec9-fdbb-47a3-8ebb-592ee2843eed * Run go fmt and add AGENTS.md Agent-Logs-Url: https://github.com/oscarhermoso/terraform-provider-binarylane/sessions/1f274b93-d7c2-4547-a24d-8d36472c8092 * Add source_and_destination_check assertion to data source test checks Agent-Logs-Url: https://github.com/oscarhermoso/terraform-provider-binarylane/sessions/8684d505-33e7-407c-a4fb-c6260ffdb2ea * go generate: update types_gen.go with latest API schema (Action.Reason, Action.Title, Invoice.InvoiceViewUrl) Agent-Logs-Url: https://github.com/oscarhermoso/terraform-provider-binarylane/sessions/1baa947c-aaee-4c45-b2b8-9495ccf38b82 * Fix separate_private_network_interface: add ModifyPlan unknown handling and IsUnknown guard in Update Agent-Logs-Url: https://github.com/oscarhermoso/terraform-provider-binarylane/sessions/e9b9d51d-8447-48a5-8c61-9c749562c3e1 * Simplify separate_private_network_interface description and remove dead code Match the OpenAPI schema phrasing for consistency with other attribute descriptions, and drop the defensive IsUnknown guard in Update — ModifyPlan already resolves Unknown to Null/false before Update runs. --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
terraform-provider-binarylane
See the documentation on the Terraform Registry, or see examples in the examples directory.
resource "binarylane_server" "example" {
region = "per"
image = "ubuntu-24.04"
size = "std-min"
public_ipv4_count = 1
}
Progress
Planned features:
- Servers
- Firewall Rules
- Cloud Init
- Updating server properties
- "Advanced Features"
- IPV6
- Customised Backups
- Software
- Alerts
- SSH Keys
- Virtual Private Cloud
- Load Balancers
- Images
- DNS
- Docs
- Generated docs
- Review & fill out remaining descriptions
- Include examples in docs
- Examples
- Basic
- Cloud Init
- K3s
- NixOS
- Virtual Private Cloud
Server parameters
Regions
curl for regions
curl -X GET "https://api.binarylane.com.au/v2/regions" \
-H "Authorization: Bearer $BINARYLANE_API_TOKEN" > tmp/regions.json
jq '[ .regions[] | .slug ] | sort' tmp/regions.json
[
"bne",
"mel",
"per",
"sin",
"syd"
]
Images
curl for images
curl -X GET "https://api.binarylane.com.au/v2/images?type=distribution&&page=1&per_page=200" \
-H "Authorization: Bearer $BINARYLANE_API_TOKEN" > tmp/images.json
jq '[ .images[] | .slug ] | sort' tmp/images.json
[
"alma-8",
"alma-9",
"byo-os",
"byo-os-virtio-disabled",
"cpanel-plus-whm",
"debian-11",
"debian-12",
"rocky-8",
"rocky-9",
"ubuntu-20.04-neon-desktop",
"ubuntu-20.04.6",
"ubuntu-22.04",
"ubuntu-22.04-desktop",
"ubuntu-24.04",
"windows-2012-r2",
"windows-2016",
"windows-2016-sql-2016-web",
"windows-2019",
"windows-2019-sql-2017-std",
"windows-2019-sql-2017-web",
"windows-2022",
"windows-2022-sql-2019-std",
"windows-2022-sql-2019-web"
]
Sizes
curl for sizes
curl -X GET "https://api.binarylane.com.au/v2/sizes" \
-H "Authorization: Bearer $BINARYLANE_API_TOKEN" > tmp/sizes.json
jq '[ .sizes[] | .slug ] | sort' tmp/sizes.json
[
"cpu-2thr",
"cpu-4thr",
"cpu-6thr",
"cpu-8thr",
"ded-3900x-1600gb",
"ded-e2136-400gb",
"ded-e2136-800gb",
"ded-e2288g-400gb",
"ded-e2288g-800gb",
"hdd-1000gb",
"hdd-2000gb",
"hdd-500gb",
"std-1vcpu",
"std-2vcpu",
"std-4vcpu",
"std-6vcpu",
"std-8vcpu",
"std-min"
]
Languages
Go
92.1%
Shell
7.1%
Makefile
0.8%