一、描述
高性能应用服务,产品介绍。
支持的购买方式:
·后付费
·预付费(用户余额支付)
二、示例
resource "tencentcloud_hai_instance" "example_hai" { region = var.hai_region.region application_id = var.hai_application_id bundle_type = var.hai_bundle_type.bundle_type # system_disk_type = "CLOUD_PREMIUM" system_disk_size = 200 instance_charge_type = "POSTPAID_BY_HOUR" # instance_charge_type_prepaid_period = "" # instance_charge_type_prepaid_renew_flag = "" count = var.platform == "HAI" ? 1 : 0}
三、参数说明
| 类型 | 名称 | 数据类型 | 说明 |
| 必填 | application_id | string | 应用 ID |
| 必填 | instance_charge_type | string | 实例计费方式POSTPAID_BY_HOUR:按小时后付费PREPAID_BY_MONTH:按月预付费 |
| 必填 | bundle_type | string | 算力方案DescribeAppBundles 接口返回的 BundleType 字段。 |
| 可选 | region | `ap-${string}` | 地域 |
| 可选 | availability_zone | string | 可用区 |
| 可选 | count | int | 资源数量,默认为 1 如果为 0 则不创建资源 |
| 可选 | activity_id | int | 计费活动 ID,保留字段 |
| 可选 | instance_charge_type_prepaid_period | int | 预付费时长,单位为月,取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36 |
| 可选 | instance_charge_type_prepaid_renew_flag | string | 续费标志,可选参数:NOTIFY_AND_MANUAL_RENEW:表示默认状态(用户未设置,即初始状态:若用户有预付费不停服特权,也会对该值进行自动续费)NOTIFY_AND_AUTO_RENEW:表示自动续费DISABLE_NOTIFY_AND_MANUAL_RENEW:表示明确不自动续费(用户设置)默认值:NOTIFY_AND_MANUAL_RENEW |
| 可选 | system_disk_type | string | 系统盘类型。系统盘类型限制详见 存储概述若不指定该参数,则按照系统默认值进行分配 |
| 可选 | system_disk_size | int | 系统盘大小,单位:GB |
| 生成 | id | string | 资源实例 ID |
| 生成 | create_time | string | 资源创建时间 |