tencentcloud_hai_instance

最近更新时间:2025-09-04 14:56:13

我的收藏

描述

高性能应用服务,产品介绍
支持的购买方式:
后付费
预付费(用户余额支付)

示例

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
资源创建时间