Connect a source

Connect IONOS Cloud

Paste the API token of a dedicated IONOS Cloud contract administrator and your contract number, and Costfluent imports each invoiced month's cost per data center and meter.

Costfluent reads your IONOS Cloud spend from IONOS's invoices, through its Billing API, with the API token of a user you create for Costfluent. One connection is one IONOS Cloud contract, and the cost of every data center in it.

How Costfluent connects

Costfluent collects each invoiced month's IONOS Cloud cost per data center and meter, net, as IONOS invoices it. A month is there once IONOS issues its invoice, normally in the first days of the next month; until then the running month shows no IONOS Cloud cost.

You give Costfluent the token and your contract number. Costfluent keeps the token encrypted and never hands it to a collection agent: for each collection it exchanges the token at IONOS for a token valid for about a minute, and the collection reads with that one. Costfluent reads only the contract's billing profile and its invoices. The contract number is the connection's identity, and the token is only ever used for that connection.

IONOS has no role that may only read billing: only contract owners and administrators may read invoices through its Billing API, so the token carries the administrator's full rights on the contract. Create a user for Costfluent alone, as the prerequisites describe, so that you can see and remove its access on its own.

Prerequisites

  1. The Owner or Integration owner organization role in Costfluent.
  2. Contract owner access to the IONOS Cloud contract in the Data Center Designer (DCD), to create the user.
  3. A user for Costfluent with administrator rights on the contract. Only contract owners and administrators may read invoices through the Billing API, and an administrator of a reseller's sub-contract may not read them either. In the DCD, open Menu, then Management, then Users & Groups, select Create in the Users tab, enter a name and an email address of your own, and turn on the user's administrator option.
  4. That user without two-factor authentication, and with a random password nobody keeps. IONOS lets a user with two-factor authentication create tokens only in the DCD's Token Manager, so Costfluent could not create the short-lived token it collects with. Leave Force 2-Factor Auth cleared in the user's Meta Data tab, and do not set up two-factor authentication when you sign in as it. Nobody signs in as this user after the token is created.
  5. The user's API token. Sign in to the DCD as the new user, open Menu, then Management, then Token Manager, select "Generate Token" and choose a TTL of a year at most: 365 Days is the longest IONOS offers. Copy the token before you close the window: IONOS shows its value only once.
  6. Your contract number. In the DCD, open Your Profile, then My Customer Data, and copy the "Contract Number" shown there: 5 to 10 digits.

Connect

  1. Open Settings, then Integrations, select IONOS Cloud, and open the Connect tab.
  2. Select "Add API token", keep the suggested Display name or enter your own, and paste the token into API token and the contract number into Contract number.
  3. Select "Test connection" to see each check, or "Connect" to save.

Before storing anything, Costfluent finds the contract in the token user's billing profile, creates a short-lived token from yours as each collection will, and lists the contract's invoices with it. A connection that saves can therefore read your invoices. A second connection of the same contract is refused. If IONOS does not answer during that check, the connection is saved anyway and checked again automatically.

Data and freshness

IONOS invoices a contract once a month, after the month ends, so Costfluent shows each data center's cost for a month on the first day of that month. Month and longer views are exact; a daily chart shows the whole month on its first day, and daily cost for IONOS Cloud is not available.

The running month has no invoice, so it shows no IONOS Cloud cost until IONOS issues that invoice, normally in the first days of the next month. Each sync also reads the previous month again until the 28th of the month, so an invoice issued in those days arrives with the next sync.

Amounts are net, as IONOS invoices them, in the invoice's currency. A rebate on the invoice is a credit.

Connecting imports as far back as your plan's backfill reaches, and at most six months (Manage connections), for each month IONOS has invoiced.

Reporting dimensions

  • Service is the IONOS Cloud product a meter belongs to, such as Compute Engine, Managed Kubernetes or Network Traffic, with its Service category; a meter Costfluent does not recognize, and a rebate, has the service IONOS Cloud and the category Other.
  • SKU is IONOS's meter ID, described by the meter's description on the invoice.
  • Resource is the data center, by its name and ID, and Region is its location.
  • The billing account and the sub-account are the IONOS Cloud contract, and the billing period is the invoice's month.

Update or disconnect

After connecting

The Manage tab lists the connection by its display name, with its contract number. Open the gear icon beside it to see whether the invoices are still readable, which workspaces the connection feeds, and which months have been imported. Run checks runs the checks again on request.

Rotating or removing access

IONOS does not rotate the token for you, and it stops working when its TTL ends. Before then, generate a new token in the Token Manager, select Update credentials on the connection page and paste it with the same contract number. Another contract's number is refused. Generating a token means signing in as its user, and nobody keeps the Costfluent user's password, which IONOS lets only the user itself change, so create a new user for Costfluent the same way and generate the new token as that user. Once the connection reads with it, delete the old user in Users & Groups, which ends the old token's access.

Deleting the user removes Costfluent's access to IONOS. To retire the connection, remove it in Costfluent, then delete the user. Removing it erases the cost it imported (Remove a connection).

Troubleshooting

The check's messages say what IONOS answered:

  • IONOS refused the token. The token is wrong, its TTL has ended or it was deleted. Generate a new token for the user and paste it.
  • The contract is not one the token's user belongs to. The contract number is mistyped, or the user was created in another contract. Copy the "Contract Number" from My Customer Data again, or create the user in the contract you connect.
  • The user may not read invoices. The user is not an administrator of the contract. Turn on its administrator option in Users & Groups, then select Run checks. An administrator of a reseller's sub-contract cannot read invoices at all: upload that contract's cost to a custom provider instead.
  • The token cannot create tokens. Its user has two-factor authentication on, so IONOS lets it create tokens only in the Token Manager. Create a user without two-factor authentication, as the prerequisites describe, and connect its token.
  • IONOS could not be reached. IONOS did not answer, or answered with an error of its own. Select Run checks later; a connection saved meanwhile is checked again automatically.