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

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.

Guides

Resources

Data sources

Generated from the provider schema for version 0.11.0. How to install the provider: Terraform provider.