> ## Documentation Index
> Fetch the complete documentation index at: https://docs.costgraph.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Huawei Cloud

> Bring Huawei Cloud cost into CostGraph, pulled by us or pushed by you

Huawei Cloud bills each resource by charge mode, whether pay-per-use, yearly or monthly, or covered by a reserved instance. CostGraph shows that spend per resource, region, and enterprise project.

CostGraph reads Huawei Cloud as **FOCUS 1.2** records at a grain of day x resource x bill type.

## Choose how the data reaches us

> [card] CostGraph pulls it
>
> You supply a read-only access key and we call Huawei Cloud daily. Nothing to run.

> [card] You push it
>
> You send us FOCUS records over the API. Credentials stay in your infrastructure.

## Before you begin

* Check which site your account belongs to. Accounts you sign in to at huaweicloud.com use the **international** site. Accounts you sign in to at huaweicloud.eu use the **europe** site. A key from one site does not work on the other.
* In the Huawei Cloud console, create an IAM user and attach the `BSS ReadonlyAccess` policy.
* Under **My Credentials** > **Access Keys**, create an access key for that user. Download the credentials file. Huawei Cloud shows the secret access key only at creation.

## Let CostGraph pull

1. Open **Integrations** and pick **Huawei Cloud**.
2. Name the connection and pick the tenant these charges belong to.
3. Enter the access key ID and the secret access key.
4. Enter `europe` as the site if your account is on huaweicloud.eu. Leave it empty for the international site.
5. Select **Connect**.

CostGraph verifies the key with a short fetch before saving. If you picked the wrong site, the form tells you which site the key belongs to.

Huawei Cloud finalizes each month's bill on the 4th of the following month, so the current month's figures are estimates until then.

> [!NOTE]
>
> Credentials are encrypted at rest and used only to read billing data. Revoke the access key in Huawei Cloud at any time and the connection stops. Nothing else is affected.

## Push cost data

Send the charges to CostGraph as FOCUS records instead. [Push FOCUS data](https://docs.costgraph.ai/costgraph/integrations/focus-push.md) covers the connection id, the `focus:write` key, and the request shape.

## Run the exporter

Rather than build that request yourself, run our exporter. It reads Huawei Cloud on a schedule and pushes the records for you.

```bash theme={null}
focus-exporter --provider huaweicloud --sink costgraph
```

Your access key stays where you put it. Only the finished FOCUS records reach CostGraph. [Run the exporter](https://docs.costgraph.ai/costgraph/integrations/exporter.md) covers the ways to run it and the variables it reads.

## Cost processing

Records land as raw billing rows, are normalised into line items, and roll up into daily cost. From there Huawei Cloud spend appears in Cost Overview and in anomaly detection alongside every other provider.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.