> ## 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.

# NEO Lite Pro (Terraform)

> Resource dan data source Terraform buat VPS NEO Lite Pro

NEO Lite Pro itu tier KVM VPS premium (vCPU/RAM dedicated, NVMe SSD), di-expose lewat API group `/neolite-pros`. Schema-nya nyomot dari NEO Lite - bedanya punya pool keypair, disk, sama snapshot sendiri - dan gak ada `migrate_to_pro` (Pro itu *tujuan* migrasinya).

> [!NOTE]
>
> Setiap create/upgrade bikin **order berbayar beneran**. Baca [panduan billing](https://biznetgio.creations.ren/id/guides/billing.md) buat nilai `cycle` dan semantics `pay_with_credit_card`.

## `biznetgio_neolite_pro_vm`

```hcl theme={null}
data "biznetgio_neolite_pro_products" "all" {}

data "biznetgio_neolite_pro_os_list" "ubuntu" {
  product_id = data.biznetgio_neolite_pro_products.all.products[0].product_id
}

resource "biznetgio_neolite_pro_keypair" "main" {
  name = "neo-lite-pro-key"
}

resource "biznetgio_neolite_pro_vm" "main" {
  ssh_and_console_user = "adminuser"
  console_password     = "s3cretP4ssw0rd"
  vm_name              = "neo-pro-1"
  product_id           = data.biznetgio_neolite_pro_products.all.products[0].product_id
  select_os            = data.biznetgio_neolite_pro_os_list.ubuntu.oss[0].name
  keypair_id           = biznetgio_neolite_pro_keypair.main.keypair_id
  cycle                = "m"
}
```

| Name | Type | Mode | Notes |
| - | - | - | - |
| `id` | string | computed | sama dengan `account_id` |
| `ssh_and_console_user` | string | required | 6-32 char, `[a-zA-Z0-9\-.]`; create-only |
| `console_password` | string | required, sensitive | ≥8 char, alphanumeric dengan upper+lower+digit; create-only |
| `product_id` | int64 | required | dari `biznetgio_neolite_pro_products`; ganti = change-package |
| `select_os` | string | required | dari `biznetgio_neolite_pro_os_list`; create-only (ganti OS = `rebuild_os`) |
| `keypair_id` | int64 | required | dari `biznetgio_neolite_pro_keypair`; ganti = change-keypair |
| `cycle` | string | required | `m a q s b t p4 p5`; create-only |
| `vm_name` | string | optional | default `server-name`; 6-16 char; bisa di-update |
| `description` | string | optional | default `""`; create-only |
| `pay_with_credit_card` | bool | optional | default `true` |
| `promocode` | string | optional | create-only |
| `power_state` | string | optional | `start stop suspend resume shutdown`; API dipanggil cuma pas berubah |
| `rebuild_os` | string | optional | one-shot reinstall OS (destructive); ganti value buat re-fire |
| `disk_size` | int64 | optional | target GB absolut, cuma bisa naik |
| `status` | string | computed | `Active` / `Pending` / `Suspended` / `Terminated` |
| `order_id` | string | computed | |
| `uptime` | int64 | computed | detik |
| `maxdisk` / `maxmem` / `mem` / `cpus` | int64 | computed | |
| `ciuser` | string | computed | |
| `cipassword` | string | computed, sensitive | |
| `osname` | string | computed | |
| `region` / `region_label` | string | computed | |
| `next_due` | string | computed | tanggal billing berikutnya |
| `recurring_amount` | int64 | computed | |
| `billingcycle` | string | computed | |
| `product_name` | string | computed | |
| `last_invoice` | block | computed | `id`, `paid_id`, `status`, `date`, `duedate`, `paybefore`, `datepaid`, `invoice_type` |
| `raw` | string | computed, sensitive | secrets di-redact |
| `timeouts` | block | optional | create/update/delete, default 20m/20m/10m |

Import pake numeric account id. Buat mindahin VM NEO Lite ke tier ini, pake `migrate_to_pro` di `biznetgio_neolite_vm` aja, jangan create di sini.

## `biznetgio_neolite_pro_keypair`

Sama kayak `biznetgio_neolite_keypair`, tapi di pool NEO Lite Pro.

```hcl theme={null}
resource "biznetgio_neolite_pro_keypair" "main" {
  name = "neo-lite-pro-key"
}
```

| Name | Type | Mode | Notes |
| - | - | - | - |
| `id` | string | computed | sama dengan `keypair_id` |
| `name` | string | required | create-only |
| `keypair_id` | int64 | computed | |
| `public_key` | string | computed | |
| `private_key` | string | computed, sensitive | return sekali pas create; disimpen di state |

Update ditolak. Import pake keypair id.

## `biznetgio_neolite_pro_snapshot`

Sama kayak `biznetgio_neolite_snapshot`, buat VM Pro.

```hcl theme={null}
resource "biznetgio_neolite_pro_snapshot" "main" {
  neolite_account_id = biznetgio_neolite_pro_vm.main.id
  name               = "pro-snapshot"
  cycle              = "m"
}
```

| Name | Type | Mode | Notes |
| - | - | - | - |
| `id` | string | computed | sama dengan `account_id` snapshot |
| `neolite_account_id` | int64 | required | |
| `cycle` | string | required | `m a q s b t p4 p5` |
| `name` | string | optional | default `snapshot-name` |
| `description` | string | optional | default `""` |
| `pay_with_credit_card` | bool | optional | default `true` |
| `promocode` | string | optional | |
| `status` | string | computed | |
| `order_id` | string | computed | |
| `timeouts` | block | optional | create/delete |

Semua input create-only. Import pake snapshot account id.

## `biznetgio_neolite_pro_disk`

Disk tambahan buat VM NEO Lite Pro. Semantics-nya sama kayak `biznetgio_neolite_disk`, minimal 30 GB.

```hcl theme={null}
resource "biznetgio_neolite_pro_disk" "main" {
  product_id           = 60
  cycle                = "m"
  neolite_account_id   = biznetgio_neolite_pro_vm.main.id
  service_name         = "pro-extra-disk"
  size                 = 30
}
```

| Name | Type | Mode | Notes |
| - | - | - | - |
| `id` | string | computed | sama dengan `account_id` disk |
| `product_id` | int64 | required | dari `GET /neolite-pros/disks/products` |
| `cycle` | string | required | `m a q s b t p4 p5` |
| `neolite_account_id` | int64 | required | |
| `service_name` | string | optional | default `service-name` |
| `size` | int64 | optional | default `30` GB, minimal 30, cuma bisa naik |
| `promocode` | string | optional | |
| `pay_with_credit_card` | bool | optional | default `true` |
| `status` | string | computed | |
| `order_id` | string | computed | |
| `raw` | string | computed, sensitive | |
| `timeouts` | block | optional | create/update/delete |

Import pake disk account id.

## Data sources

> [!NOTE]
>
> Buat harga beneran dan cara milih paket tertentu, bukan asal percaya `[0]`, liat halaman [Katalog Produk](https://biznetgio.creations.ren/id/products/neolite-pro.md).

Kelima data source ini nyomot dari data source NEO Lite, nargetin group `/neolite-pros`:

### `biznetgio_neolite_pro_products`

Katalog produk; item `products` ada `product_id`, `name`, `description`, `category_id`, `category_name`, `options`, sama nested `billing`.

### `biznetgio_neolite_pro_os_list`

OS image buat produk (argument `product_id` wajib); item `oss`: `vmid`, `node`, `name`, `maxmem`, `maxcpu`.

### `biznetgio_neolite_pro_change_package_options`

JSON `raw` dari opsi change-package buat akun (argument `account_id`).

### `biznetgio_neolite_pro_storage_upgrade_options`

JSON `raw` dari harga upgrade storage buat akun (argument `account_id`).

### `biznetgio_neolite_pro_ip_availability`

Argument `product_id`; return `available` (bool).


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