Skip to content

Commit 6bcc95f

Browse files
committed
feat/apigw
1 parent 0fb34ae commit 6bcc95f

File tree

3 files changed

+24
-19
lines changed

3 files changed

+24
-19
lines changed

vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,11 +1094,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319
10941094
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.711
10951095
## explicit; go 1.14
10961096
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016
1097-
<<<<<<< HEAD
10981097
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.736
1099-
=======
1100-
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.734
1101-
>>>>>>> eeb98cb66c41746414f4dd12d75910512fa903d9
11021098
## explicit; go 1.14
11031099
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common
11041100
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors

website/docs/r/api_gateway_service.html.markdown

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,30 @@ description: |-
1111

1212
Use this resource to create API gateway service.
1313

14+
~> **NOTE:** After setting `uniq_vpc_id`, it cannot be modified.
15+
1416
## Example Usage
1517

1618
### Shared Service
1719

1820
```hcl
19-
resource "tencentcloud_api_gateway_service" "service" {
20-
service_name = "niceservice"
21+
resource "tencentcloud_vpc" "vpc" {
22+
name = "example-vpc"
23+
cidr_block = "10.0.0.0/16"
24+
}
25+
26+
resource "tencentcloud_api_gateway_service" "example" {
27+
service_name = "tf-example"
2128
protocol = "http&https"
22-
service_desc = "your nice service"
29+
service_desc = "desc."
2330
net_type = ["INNER", "OUTER"]
2431
ip_version = "IPv4"
32+
uniq_vpc_id = tencentcloud_vpc.vpc.id
33+
2534
tags = {
26-
test-key1 = "test-value1"
27-
test-key2 = "test-value2"
35+
createdBy = "terraform"
2836
}
37+
2938
release_limit = 500
3039
pre_limit = 500
3140
test_limit = 500
@@ -35,16 +44,19 @@ resource "tencentcloud_api_gateway_service" "service" {
3544
### Exclusive Service
3645

3746
```hcl
38-
resource "tencentcloud_api_gateway_service" "service" {
39-
service_name = "service"
47+
resource "tencentcloud_api_gateway_service" "example" {
48+
service_name = "tf-example"
4049
protocol = "http&https"
41-
service_desc = "your nice service"
50+
service_desc = "desc."
4251
net_type = ["INNER", "OUTER"]
4352
ip_version = "IPv4"
53+
uniq_vpc_id = tencentcloud_vpc.vpc.id
54+
instance_id = "instance-rc6fcv4e"
55+
4456
tags = {
45-
test-key1 = "test-value1"
57+
createdBy = "terraform"
4658
}
47-
instance_id = "instance-rc6fcv4e"
59+
4860
release_limit = 500
4961
pre_limit = 500
5062
test_limit = 500
@@ -59,13 +71,14 @@ The following arguments are supported:
5971
* `protocol` - (Required, String) Service frontend request type. Valid values: `http`, `https`, `http&https`.
6072
* `service_name` - (Required, String) Custom service name.
6173
* `exclusive_set_name` - (Optional, String, ForceNew, **Deprecated**) It has been deprecated from version 1.81.9. Self-deployed cluster name, which is used to specify the self-deployed cluster where the service is to be created.
62-
* `instance_id` - (Optional, String) Exclusive instance ID.
74+
* `instance_id` - (Optional, String, ForceNew) Exclusive instance ID.
6375
* `ip_version` - (Optional, String, ForceNew) IP version number. Valid values: `IPv4`, `IPv6`. Default value: `IPv4`.
6476
* `pre_limit` - (Optional, Int) API QPS value. Enter a positive number to limit the API query rate per second `QPS`.
6577
* `release_limit` - (Optional, Int) API QPS value. Enter a positive number to limit the API query rate per second `QPS`.
6678
* `service_desc` - (Optional, String) Custom service description.
6779
* `tags` - (Optional, Map) Tag description list.
6880
* `test_limit` - (Optional, Int) API QPS value. Enter a positive number to limit the API query rate per second `QPS`.
81+
* `uniq_vpc_id` - (Optional, String) VPC ID.
6982

7083
## Attributes Reference
7184

0 commit comments

Comments
 (0)