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

# Import (Terraform)

> Masukin resource Biznet GIO yang udah ada ke state Terraform

Semua resource support `terraform import`. Kebanyakan pake numeric account id langsung; resource composite pake id yang dipisah pakai `:`.

## Import

```bash theme={null}
terraform import biznetgio_neolite_vm.main 12345
```

Setelah import, Terraform baca resource-nya dan refresh semua computed attributes. Input required harus cocok sama resource yang live - jalanin `terraform plan` dan beresin diff-nya.

## Format ID

| Resource | Import ID |
| - | - |
| `biznetgio_neolite_vm` | `<account_id>` |
| `biznetgio_neolite_keypair` | `<keypair_id>` |
| `biznetgio_neolite_snapshot` | `<snapshot account_id>` |
| `biznetgio_neolite_vm_from_snapshot` | `<restored VM account_id>` |
| `biznetgio_neolite_disk` | `<disk account_id>` |
| `biznetgio_neolite_pro_vm` | `<account_id>` |
| `biznetgio_neolite_pro_keypair` | `<keypair_id>` |
| `biznetgio_neolite_pro_snapshot` | `<snapshot account_id>` |
| `biznetgio_neolite_pro_disk` | `<disk account_id>` |
| `biznetgio_baremetal` | `<account_id>` |
| `biznetgio_baremetal_keypair` | `<keypair_id>` |
| `biznetgio_baremetal_additional_ip` | `<account_id>` |
| `biznetgio_baremetal_additional_ip_assignment` | `<metal_account_id>:<additional_ip_id>` |
| `biznetgio_baremetal_elastic_storage` | `<storage account_id>` |
| `biznetgio_gpu_instance` | `<account_id>` |
| `biznetgio_gpu_keypair` | `<keypair_id>` |
| `biznetgio_object_storage` | `<account_id>` |
| `biznetgio_object_storage_bucket` | `<account_id>:<bucket_name>` |
| `biznetgio_object_storage_credential` | `<account_id>:<access_key>` (literal or 16-hex hashed form) |
| `biznetgio_object_storage_object` | `<account_id>:<bucket>:<key>` |

> [!NOTE]
>
> Keypair id gak bisa dituker antar service - keypair id NEO Lite cuma bisa di-import ke `biznetgio_neolite_keypair`.

## Contoh composite id

```bash theme={null}
# additional IP assignment: server 12345 + additional ip 67890
terraform import biznetgio_baremetal_additional_ip_assignment.main 12345:67890

# bucket inside instance 12345
terraform import biznetgio_object_storage_bucket.assets 12345:my-assets

# credential: access key given literally
terraform import biznetgio_object_storage_credential.main 12345:ABCDEFGHIJKLMNOP

# object inside bucket my-assets
terraform import biznetgio_object_storage_object.index 12345:my-assets:site/index.html
```

> [!WARNING]
>
> Import credential nyimpen bentuk **hashed** dari access key di id (`<account_id>:<sha256(access_key)>[:16]`) - plaintext key-nya gak pernah ditulis ke state.


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