v2.28.0
Storage Box API Experimental
This release adds support for the Storage Box API.
The Storage Box integration will be introduced as an experimental feature. This experimental phase is expected to last until 21 November 2025. During this period, upcoming minor releases of the project may include breaking changes to features related to the Storage Box API.
This release includes all changes from the recent Storage Box API changelog entry.
Examples
result, _, err := client.StorageBox.Create(ctx, hcloud.StorageBoxCreateOpts{
Name: "my-storage-box",
StorageBoxType: &hcloud.StorageBoxType{Name: "bx11"},
Location: &hcloud.Location{Name: "fsn1"},
Password: "my-secure-password",
SSHKeys: []*hcloud.SSHKey{{ PublicKey: "ssh-rsa AAAAB3NzaC1yc2E..." }},
Labels: map[string]string{"key": "value"},
AccessSettings: &hcloud.StorageBoxCreateOptsAccessSettings{
ReachableExternally: hcloud.Ptr(true),
SSHEnabled: hcloud.Ptr(true),
},
})
err = client.Action.WaitFor(ctx, result.Action)