一、描述
API 网关服务
二、示例
resource "tencentcloud_api_gateway_service" "service" { protocol = "http&https" service_desc = "your nice service" net_type = ["INNER", "OUTER"] ip_version = "IPv4"}
三、参数说明
| 类型 | 名称 | 数据类型 | 说明 |
| 必填 | region | string | 地域,如:ap-guangzhou,默认使用 provider 中定义的 region 也可以在 resource 中指定地域,覆盖默认设置 |
| 必填 | availability_zone | string | 可用区 |
| 必填 | protocol | enum | 服务的前端请求类型。如 http、https、http&https。枚举值:httphttpshttp&https |
| 必填 | net_type | string[] | 网络类型列表,用于指定支持的访问类型。默认为 OUTER,可选值:INNER: 内网访问OUTER: 外网访问 |
| 可选 | count | int | 资源数量,默认为 1 如果为 0 则不创建资源 |
| 可选 | activity_id | int | 计费活动 ID,保留字段 |
| 可选 | service_desc | string | 服务描述 |
| 可选 | ip_version | enum | IP版本号,支持IPv4和IPv6,默认为IPv4。枚举值:IPv4:IP 版本为 ipv4IPv6:IP 版本为 ipv6 |
| 可选 | uniq_vpc_id | string | VPC ID |
| 生成 | id | string | 资源实例 ID |
| 生成 | create_time | string | 资源创建时间 |
| 生成 | service_name | string | 服务名称 |
| 生成 | outer_sub_domain | string | 外网访问子域名 |
| 生成 | internal_sub_domain | string | 内网访问子域名 |