terraform apply. The same configuration works with Terraform and OpenTofu: both install the provider from their own registry.
Prerequisites
- An OnetSolutions account
- An API key
- Terraform 1.5 or later, or OpenTofu 1.6 or later
Get started
1
Create an API key
Create an API key in the console. It acts with your rights, in every organization and project you can reach.
2
Export it
Keep the key out of your configuration files by passing it in an environment variable:
3
Declare the provider
4
Apply
organization_id and project_id on the provider, or on each resource.
What you can manage
Actions also restart an instance, reinstall it from an image or restore one of its backups, straight from your configuration. Every resource has its page, with examples, in the provider documentation.
Creating an instance, a web hosting or a domain places an order, billed like an order from the console. The plan tells you before anything is ordered or cancelled.
Bring existing resources under management
Everything you created in the console can be imported, with animport block or terraform import. Each resource page gives its import ID:

