Terraform provider reference
fiberax Provider
Manage Fiberax infrastructure through the public API api.fiberax.com/v1. The token is issued in the client area, section API tokens. A project key belongs to ONE project: several projects mean several tokens and several provider configurations. An object storage project is one of them: its resources (fiberax_object_storage_*) take a provider configuration with an alias and its own token - the FIBERAX_TOKEN environment variable is shared by every configuration.
An account key works in every Virtual Data Center project of the account: it manages the projects themselves and their keys (fiberax_project, fiberax_project_token, fiberax_projects), and inside a project it needs the project named with project_id - one provider configuration per project, with an alias, the same way as for object storage.
Example Usage
# Minimum version: Terraform 1.11 or OpenTofu 1.11. fiberax_server.password and
# setup are write-only arguments, which older versions reject with "WriteOnly
# Attribute Not Allowed"; a Windows server cannot be described without password.
terraform {
required_version = ">= 1.11"
required_providers {
fiberax = {
source = "fiberax/fiberax"
}
}
}
# The token is issued in the client area: the API tokens section. A project key belongs to
# ONE project, so several projects mean several provider configurations with different tokens.
# An account key works in every project of the account: name the project with project_id
# (or FIBERAX_PROJECT_ID), one provider configuration per project.
#
# Creating and changing anything needs a token with the read and write access level.
provider "fiberax" {
# token = "fbx_..." # better through the FIBERAX_TOKEN environment variable
# project_id = 4711 # with an account key only
}
Schema
Optional
endpoint(String) API address. Defaults tohttps://api.fiberax.com/v1; environment variableFIBERAX_ENDPOINT. Changed only for testing.project_id(Number) The Virtual Data Center project an account key works in: every request inside a project carries it in theFiberax-Projectheader. Taken from theFIBERAX_PROJECT_IDenvironment variable when it is not set here. Without it an account key manages only the projects and their keys; servers, networks and the other project resources answerproject_required. The ids are listed by the data sourcefiberax_projects.
A project key needs no project_id; if set, it must be the key's own project, otherwise every request answers project_mismatch.
The value must be known when the plan starts: a project created by fiberax_project in the same run cannot feed it. Create the project first (terraform apply -target=fiberax_project.<name>), or keep projects in a configuration of their own and pass the id in. Several projects in one configuration - one provider configuration per project, with an alias.
token(String, Sensitive) Public API token (fbx_...). Taken from theFIBERAX_TOKENenvironment variable when it is not set here. Creating and changing requires a token with the read and write access level: a read-only token answersinsufficient_scope.
Guides
- Projects with an account key
- Public addresses and what they cost
- Getting started with the fiberax provider
- Importing what you already have
- A project end to end
- Object storage (S3) with the fiberax provider
- Retries, 409 and 503
Resources
- fiberax_disk
- fiberax_ip
- fiberax_network
- fiberax_network_interface
- fiberax_object_storage_access_key
- fiberax_object_storage_bucket
- fiberax_object_storage_reservation
- fiberax_object_storage_service_account
- fiberax_project
- fiberax_project_backup_policy
- fiberax_project_token
- fiberax_router_firewall_rule
- fiberax_router_openvpn
- fiberax_router_openvpn_device
- fiberax_router_port_forward
- fiberax_router_wireguard
- fiberax_router_wireguard_device
- fiberax_server
- fiberax_server_backup_policy
- fiberax_server_firewall
- fiberax_ssh_key
Data sources
- fiberax_image
- fiberax_images
- fiberax_object_storage
- fiberax_projects
- fiberax_server_type
- fiberax_server_type_hosts
- fiberax_server_type_pricing
- fiberax_server_types
Generated from the provider schema for version 0.11.0. How to install the provider: Terraform provider.