tencentcloud.ApiGatewayUpstream
Explore with Pulumi AI
Provides a resource to create a apigateway upstream
Example Usage
Create a basic VPC channel
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const zones = tencentcloud.getAvailabilityZonesByProduct({
product: "cvm",
});
const images = tencentcloud.getImages({
imageTypes: ["PUBLIC_IMAGE"],
imageNameRegex: "Final",
});
const instanceTypes = tencentcloud.getInstanceTypes({
filters: [{
name: "instance-family",
values: ["S5"],
}],
cpuCoreCount: 2,
excludeSoldOut: true,
});
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
const subnet = new tencentcloud.Subnet("subnet", {
availabilityZone: zones.then(zones => zones.zones?.[3]?.name),
vpcId: vpc.vpcId,
cidrBlock: "10.0.0.0/16",
isMulticast: false,
});
const exampleInstance = new tencentcloud.Instance("exampleInstance", {
instanceName: "tf_example",
availabilityZone: zones.then(zones => zones.zones?.[3]?.name),
imageId: images.then(images => images.images?.[0]?.imageId),
instanceType: instanceTypes.then(instanceTypes => instanceTypes.instanceTypes?.[0]?.instanceType),
systemDiskType: "CLOUD_PREMIUM",
systemDiskSize: 50,
hostname: "terraform",
projectId: 0,
vpcId: vpc.vpcId,
subnetId: subnet.subnetId,
dataDisks: [{
dataDiskType: "CLOUD_PREMIUM",
dataDiskSize: 50,
encrypt: false,
}],
tags: {
tagKey: "tagValue",
},
});
const exampleApiGatewayUpstream = new tencentcloud.ApiGatewayUpstream("exampleApiGatewayUpstream", {
scheme: "HTTP",
algorithm: "ROUND-ROBIN",
uniqVpcId: vpc.vpcId,
upstreamName: "tf_example",
upstreamDescription: "desc.",
upstreamType: "IP_PORT",
retries: 5,
nodes: [{
host: "1.1.1.1",
port: 9090,
weight: 10,
vmInstanceId: exampleInstance.instanceId,
tags: ["tags"],
}],
tags: {
createdBy: "terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
zones = tencentcloud.get_availability_zones_by_product(product="cvm")
images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
image_name_regex="Final")
instance_types = tencentcloud.get_instance_types(filters=[{
"name": "instance-family",
"values": ["S5"],
}],
cpu_core_count=2,
exclude_sold_out=True)
vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
subnet = tencentcloud.Subnet("subnet",
availability_zone=zones.zones[3].name,
vpc_id=vpc.vpc_id,
cidr_block="10.0.0.0/16",
is_multicast=False)
example_instance = tencentcloud.Instance("exampleInstance",
instance_name="tf_example",
availability_zone=zones.zones[3].name,
image_id=images.images[0].image_id,
instance_type=instance_types.instance_types[0].instance_type,
system_disk_type="CLOUD_PREMIUM",
system_disk_size=50,
hostname="terraform",
project_id=0,
vpc_id=vpc.vpc_id,
subnet_id=subnet.subnet_id,
data_disks=[{
"data_disk_type": "CLOUD_PREMIUM",
"data_disk_size": 50,
"encrypt": False,
}],
tags={
"tagKey": "tagValue",
})
example_api_gateway_upstream = tencentcloud.ApiGatewayUpstream("exampleApiGatewayUpstream",
scheme="HTTP",
algorithm="ROUND-ROBIN",
uniq_vpc_id=vpc.vpc_id,
upstream_name="tf_example",
upstream_description="desc.",
upstream_type="IP_PORT",
retries=5,
nodes=[{
"host": "1.1.1.1",
"port": 9090,
"weight": 10,
"vm_instance_id": example_instance.instance_id,
"tags": ["tags"],
}],
tags={
"createdBy": "terraform",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
zones, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
Product: "cvm",
}, nil)
if err != nil {
return err
}
images, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
ImageTypes: []string{
"PUBLIC_IMAGE",
},
ImageNameRegex: pulumi.StringRef("Final"),
}, nil)
if err != nil {
return err
}
instanceTypes, err := tencentcloud.GetInstanceTypes(ctx, &tencentcloud.GetInstanceTypesArgs{
Filters: []tencentcloud.GetInstanceTypesFilter{
{
Name: "instance-family",
Values: []string{
"S5",
},
},
},
CpuCoreCount: pulumi.Float64Ref(2),
ExcludeSoldOut: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
AvailabilityZone: pulumi.String(zones.Zones[3].Name),
VpcId: vpc.VpcId,
CidrBlock: pulumi.String("10.0.0.0/16"),
IsMulticast: pulumi.Bool(false),
})
if err != nil {
return err
}
exampleInstance, err := tencentcloud.NewInstance(ctx, "exampleInstance", &tencentcloud.InstanceArgs{
InstanceName: pulumi.String("tf_example"),
AvailabilityZone: pulumi.String(zones.Zones[3].Name),
ImageId: pulumi.String(images.Images[0].ImageId),
InstanceType: pulumi.String(instanceTypes.InstanceTypes[0].InstanceType),
SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
SystemDiskSize: pulumi.Float64(50),
Hostname: pulumi.String("terraform"),
ProjectId: pulumi.Float64(0),
VpcId: vpc.VpcId,
SubnetId: subnet.SubnetId,
DataDisks: tencentcloud.InstanceDataDiskArray{
&tencentcloud.InstanceDataDiskArgs{
DataDiskType: pulumi.String("CLOUD_PREMIUM"),
DataDiskSize: pulumi.Float64(50),
Encrypt: pulumi.Bool(false),
},
},
Tags: pulumi.StringMap{
"tagKey": pulumi.String("tagValue"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewApiGatewayUpstream(ctx, "exampleApiGatewayUpstream", &tencentcloud.ApiGatewayUpstreamArgs{
Scheme: pulumi.String("HTTP"),
Algorithm: pulumi.String("ROUND-ROBIN"),
UniqVpcId: vpc.VpcId,
UpstreamName: pulumi.String("tf_example"),
UpstreamDescription: pulumi.String("desc."),
UpstreamType: pulumi.String("IP_PORT"),
Retries: pulumi.Float64(5),
Nodes: tencentcloud.ApiGatewayUpstreamNodeArray{
&tencentcloud.ApiGatewayUpstreamNodeArgs{
Host: pulumi.String("1.1.1.1"),
Port: pulumi.Float64(9090),
Weight: pulumi.Float64(10),
VmInstanceId: exampleInstance.InstanceId,
Tags: pulumi.StringArray{
pulumi.String("tags"),
},
},
},
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var zones = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
{
Product = "cvm",
});
var images = Tencentcloud.GetImages.Invoke(new()
{
ImageTypes = new[]
{
"PUBLIC_IMAGE",
},
ImageNameRegex = "Final",
});
var instanceTypes = Tencentcloud.GetInstanceTypes.Invoke(new()
{
Filters = new[]
{
new Tencentcloud.Inputs.GetInstanceTypesFilterInputArgs
{
Name = "instance-family",
Values = new[]
{
"S5",
},
},
},
CpuCoreCount = 2,
ExcludeSoldOut = true,
});
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "10.0.0.0/16",
});
var subnet = new Tencentcloud.Subnet("subnet", new()
{
AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[3]?.Name),
VpcId = vpc.VpcId,
CidrBlock = "10.0.0.0/16",
IsMulticast = false,
});
var exampleInstance = new Tencentcloud.Instance("exampleInstance", new()
{
InstanceName = "tf_example",
AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[3]?.Name),
ImageId = images.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
InstanceType = instanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.InstanceType),
SystemDiskType = "CLOUD_PREMIUM",
SystemDiskSize = 50,
Hostname = "terraform",
ProjectId = 0,
VpcId = vpc.VpcId,
SubnetId = subnet.SubnetId,
DataDisks = new[]
{
new Tencentcloud.Inputs.InstanceDataDiskArgs
{
DataDiskType = "CLOUD_PREMIUM",
DataDiskSize = 50,
Encrypt = false,
},
},
Tags =
{
{ "tagKey", "tagValue" },
},
});
var exampleApiGatewayUpstream = new Tencentcloud.ApiGatewayUpstream("exampleApiGatewayUpstream", new()
{
Scheme = "HTTP",
Algorithm = "ROUND-ROBIN",
UniqVpcId = vpc.VpcId,
UpstreamName = "tf_example",
UpstreamDescription = "desc.",
UpstreamType = "IP_PORT",
Retries = 5,
Nodes = new[]
{
new Tencentcloud.Inputs.ApiGatewayUpstreamNodeArgs
{
Host = "1.1.1.1",
Port = 9090,
Weight = 10,
VmInstanceId = exampleInstance.InstanceId,
Tags = new[]
{
"tags",
},
},
},
Tags =
{
{ "createdBy", "terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
import com.pulumi.tencentcloud.inputs.GetImagesArgs;
import com.pulumi.tencentcloud.inputs.GetInstanceTypesArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.Instance;
import com.pulumi.tencentcloud.InstanceArgs;
import com.pulumi.tencentcloud.inputs.InstanceDataDiskArgs;
import com.pulumi.tencentcloud.ApiGatewayUpstream;
import com.pulumi.tencentcloud.ApiGatewayUpstreamArgs;
import com.pulumi.tencentcloud.inputs.ApiGatewayUpstreamNodeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var zones = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
.product("cvm")
.build());
final var images = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.imageNameRegex("Final")
.build());
final var instanceTypes = TencentcloudFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.filters(GetInstanceTypesFilterArgs.builder()
.name("instance-family")
.values("S5")
.build())
.cpuCoreCount(2)
.excludeSoldOut(true)
.build());
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var subnet = new Subnet("subnet", SubnetArgs.builder()
.availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[3].name()))
.vpcId(vpc.vpcId())
.cidrBlock("10.0.0.0/16")
.isMulticast(false)
.build());
var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.instanceName("tf_example")
.availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[3].name()))
.imageId(images.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.instanceType(instanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].instanceType()))
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize(50)
.hostname("terraform")
.projectId(0)
.vpcId(vpc.vpcId())
.subnetId(subnet.subnetId())
.dataDisks(InstanceDataDiskArgs.builder()
.dataDiskType("CLOUD_PREMIUM")
.dataDiskSize(50)
.encrypt(false)
.build())
.tags(Map.of("tagKey", "tagValue"))
.build());
var exampleApiGatewayUpstream = new ApiGatewayUpstream("exampleApiGatewayUpstream", ApiGatewayUpstreamArgs.builder()
.scheme("HTTP")
.algorithm("ROUND-ROBIN")
.uniqVpcId(vpc.vpcId())
.upstreamName("tf_example")
.upstreamDescription("desc.")
.upstreamType("IP_PORT")
.retries(5)
.nodes(ApiGatewayUpstreamNodeArgs.builder()
.host("1.1.1.1")
.port(9090)
.weight(10)
.vmInstanceId(exampleInstance.instanceId())
.tags("tags")
.build())
.tags(Map.of("createdBy", "terraform"))
.build());
}
}
resources:
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
subnet:
type: tencentcloud:Subnet
properties:
availabilityZone: ${zones.zones[3].name}
vpcId: ${vpc.vpcId}
cidrBlock: 10.0.0.0/16
isMulticast: false
exampleInstance:
type: tencentcloud:Instance
properties:
instanceName: tf_example
availabilityZone: ${zones.zones[3].name}
imageId: ${images.images[0].imageId}
instanceType: ${instanceTypes.instanceTypes[0].instanceType}
systemDiskType: CLOUD_PREMIUM
systemDiskSize: 50
hostname: terraform
projectId: 0
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
dataDisks:
- dataDiskType: CLOUD_PREMIUM
dataDiskSize: 50
encrypt: false
tags:
tagKey: tagValue
exampleApiGatewayUpstream:
type: tencentcloud:ApiGatewayUpstream
properties:
scheme: HTTP
algorithm: ROUND-ROBIN
uniqVpcId: ${vpc.vpcId}
upstreamName: tf_example
upstreamDescription: desc.
upstreamType: IP_PORT
retries: 5
nodes:
- host: 1.1.1.1
port: 9090
weight: 10
vmInstanceId: ${exampleInstance.instanceId}
tags:
- tags
tags:
createdBy: terraform
variables:
zones:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
product: cvm
images:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
imageNameRegex: Final
instanceTypes:
fn::invoke:
function: tencentcloud:getInstanceTypes
arguments:
filters:
- name: instance-family
values:
- S5
cpuCoreCount: 2
excludeSoldOut: true
Create a complete VPC channel
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ApiGatewayUpstream("example", {
scheme: "HTTP",
algorithm: "ROUND-ROBIN",
uniqVpcId: tencentcloud_vpc.vpc.id,
upstreamName: "tf_example",
upstreamDescription: "desc.",
upstreamType: "IP_PORT",
retries: 5,
nodes: [{
host: "1.1.1.1",
port: 9090,
weight: 10,
vmInstanceId: tencentcloud_instance.example.id,
tags: ["tags"],
}],
healthChecker: {
enableActiveCheck: true,
enablePassiveCheck: true,
healthyHttpStatus: "200",
unhealthyHttpStatus: "500",
tcpFailureThreshold: 5,
timeoutThreshold: 5,
httpFailureThreshold: 3,
activeCheckHttpPath: "/",
activeCheckTimeout: 5,
activeCheckInterval: 5,
unhealthyTimeout: 30,
},
tags: {
createdBy: "terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ApiGatewayUpstream("example",
scheme="HTTP",
algorithm="ROUND-ROBIN",
uniq_vpc_id=tencentcloud_vpc["vpc"]["id"],
upstream_name="tf_example",
upstream_description="desc.",
upstream_type="IP_PORT",
retries=5,
nodes=[{
"host": "1.1.1.1",
"port": 9090,
"weight": 10,
"vm_instance_id": tencentcloud_instance["example"]["id"],
"tags": ["tags"],
}],
health_checker={
"enable_active_check": True,
"enable_passive_check": True,
"healthy_http_status": "200",
"unhealthy_http_status": "500",
"tcp_failure_threshold": 5,
"timeout_threshold": 5,
"http_failure_threshold": 3,
"active_check_http_path": "/",
"active_check_timeout": 5,
"active_check_interval": 5,
"unhealthy_timeout": 30,
},
tags={
"createdBy": "terraform",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewApiGatewayUpstream(ctx, "example", &tencentcloud.ApiGatewayUpstreamArgs{
Scheme: pulumi.String("HTTP"),
Algorithm: pulumi.String("ROUND-ROBIN"),
UniqVpcId: pulumi.Any(tencentcloud_vpc.Vpc.Id),
UpstreamName: pulumi.String("tf_example"),
UpstreamDescription: pulumi.String("desc."),
UpstreamType: pulumi.String("IP_PORT"),
Retries: pulumi.Float64(5),
Nodes: tencentcloud.ApiGatewayUpstreamNodeArray{
&tencentcloud.ApiGatewayUpstreamNodeArgs{
Host: pulumi.String("1.1.1.1"),
Port: pulumi.Float64(9090),
Weight: pulumi.Float64(10),
VmInstanceId: pulumi.Any(tencentcloud_instance.Example.Id),
Tags: pulumi.StringArray{
pulumi.String("tags"),
},
},
},
HealthChecker: &tencentcloud.ApiGatewayUpstreamHealthCheckerArgs{
EnableActiveCheck: pulumi.Bool(true),
EnablePassiveCheck: pulumi.Bool(true),
HealthyHttpStatus: pulumi.String("200"),
UnhealthyHttpStatus: pulumi.String("500"),
TcpFailureThreshold: pulumi.Float64(5),
TimeoutThreshold: pulumi.Float64(5),
HttpFailureThreshold: pulumi.Float64(3),
ActiveCheckHttpPath: pulumi.String("/"),
ActiveCheckTimeout: pulumi.Float64(5),
ActiveCheckInterval: pulumi.Float64(5),
UnhealthyTimeout: pulumi.Float64(30),
},
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.ApiGatewayUpstream("example", new()
{
Scheme = "HTTP",
Algorithm = "ROUND-ROBIN",
UniqVpcId = tencentcloud_vpc.Vpc.Id,
UpstreamName = "tf_example",
UpstreamDescription = "desc.",
UpstreamType = "IP_PORT",
Retries = 5,
Nodes = new[]
{
new Tencentcloud.Inputs.ApiGatewayUpstreamNodeArgs
{
Host = "1.1.1.1",
Port = 9090,
Weight = 10,
VmInstanceId = tencentcloud_instance.Example.Id,
Tags = new[]
{
"tags",
},
},
},
HealthChecker = new Tencentcloud.Inputs.ApiGatewayUpstreamHealthCheckerArgs
{
EnableActiveCheck = true,
EnablePassiveCheck = true,
HealthyHttpStatus = "200",
UnhealthyHttpStatus = "500",
TcpFailureThreshold = 5,
TimeoutThreshold = 5,
HttpFailureThreshold = 3,
ActiveCheckHttpPath = "/",
ActiveCheckTimeout = 5,
ActiveCheckInterval = 5,
UnhealthyTimeout = 30,
},
Tags =
{
{ "createdBy", "terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ApiGatewayUpstream;
import com.pulumi.tencentcloud.ApiGatewayUpstreamArgs;
import com.pulumi.tencentcloud.inputs.ApiGatewayUpstreamNodeArgs;
import com.pulumi.tencentcloud.inputs.ApiGatewayUpstreamHealthCheckerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ApiGatewayUpstream("example", ApiGatewayUpstreamArgs.builder()
.scheme("HTTP")
.algorithm("ROUND-ROBIN")
.uniqVpcId(tencentcloud_vpc.vpc().id())
.upstreamName("tf_example")
.upstreamDescription("desc.")
.upstreamType("IP_PORT")
.retries(5)
.nodes(ApiGatewayUpstreamNodeArgs.builder()
.host("1.1.1.1")
.port(9090)
.weight(10)
.vmInstanceId(tencentcloud_instance.example().id())
.tags("tags")
.build())
.healthChecker(ApiGatewayUpstreamHealthCheckerArgs.builder()
.enableActiveCheck(true)
.enablePassiveCheck(true)
.healthyHttpStatus("200")
.unhealthyHttpStatus("500")
.tcpFailureThreshold(5)
.timeoutThreshold(5)
.httpFailureThreshold(3)
.activeCheckHttpPath("/")
.activeCheckTimeout(5)
.activeCheckInterval(5)
.unhealthyTimeout(30)
.build())
.tags(Map.of("createdBy", "terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:ApiGatewayUpstream
properties:
scheme: HTTP
algorithm: ROUND-ROBIN
uniqVpcId: ${tencentcloud_vpc.vpc.id}
upstreamName: tf_example
upstreamDescription: desc.
upstreamType: IP_PORT
retries: 5
nodes:
- host: 1.1.1.1
port: 9090
weight: 10
vmInstanceId: ${tencentcloud_instance.example.id}
tags:
- tags
healthChecker:
enableActiveCheck: true
enablePassiveCheck: true
healthyHttpStatus: '200'
unhealthyHttpStatus: '500'
tcpFailureThreshold: 5
timeoutThreshold: 5
httpFailureThreshold: 3
activeCheckHttpPath: /
activeCheckTimeout: 5
activeCheckInterval: 5
unhealthyTimeout: 30
tags:
createdBy: terraform
Create ApiGatewayUpstream Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiGatewayUpstream(name: string, args: ApiGatewayUpstreamArgs, opts?: CustomResourceOptions);
@overload
def ApiGatewayUpstream(resource_name: str,
args: ApiGatewayUpstreamArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiGatewayUpstream(resource_name: str,
opts: Optional[ResourceOptions] = None,
algorithm: Optional[str] = None,
uniq_vpc_id: Optional[str] = None,
scheme: Optional[str] = None,
k8s_services: Optional[Sequence[ApiGatewayUpstreamK8sServiceArgs]] = None,
nodes: Optional[Sequence[ApiGatewayUpstreamNodeArgs]] = None,
retries: Optional[float] = None,
health_checker: Optional[ApiGatewayUpstreamHealthCheckerArgs] = None,
tags: Optional[Mapping[str, str]] = None,
api_gateway_upstream_id: Optional[str] = None,
upstream_description: Optional[str] = None,
upstream_host: Optional[str] = None,
upstream_name: Optional[str] = None,
upstream_type: Optional[str] = None)
func NewApiGatewayUpstream(ctx *Context, name string, args ApiGatewayUpstreamArgs, opts ...ResourceOption) (*ApiGatewayUpstream, error)
public ApiGatewayUpstream(string name, ApiGatewayUpstreamArgs args, CustomResourceOptions? opts = null)
public ApiGatewayUpstream(String name, ApiGatewayUpstreamArgs args)
public ApiGatewayUpstream(String name, ApiGatewayUpstreamArgs args, CustomResourceOptions options)
type: tencentcloud:ApiGatewayUpstream
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ApiGatewayUpstreamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApiGatewayUpstreamArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApiGatewayUpstreamArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiGatewayUpstreamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiGatewayUpstreamArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ApiGatewayUpstream Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ApiGatewayUpstream resource accepts the following input properties:
- Algorithm string
- Load balancing algorithm, value range: ROUND-ROBIN.
- Scheme string
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- Uniq
Vpc stringId - VPC Unique ID.
- Api
Gateway stringUpstream Id - ID of the resource.
- Health
Checker ApiGateway Upstream Health Checker - Health check configuration, currently only supports VPC channels.
- K8s
Services List<ApiGateway Upstream K8s Service> - Configuration of K8S container service.
- Nodes
List<Api
Gateway Upstream Node> - Backend nodes.
- Retries double
- Request retry count, default to 3 times.
- Dictionary<string, string>
- Tag description list.
- Upstream
Description string - Backend channel description.
- Upstream
Host string - Host request header forwarded by gateway to backend.
- Upstream
Name string - Backend channel name.
- Upstream
Type string - Backend access type, value range: IP_PORT, K8S.
- Algorithm string
- Load balancing algorithm, value range: ROUND-ROBIN.
- Scheme string
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- Uniq
Vpc stringId - VPC Unique ID.
- Api
Gateway stringUpstream Id - ID of the resource.
- Health
Checker ApiGateway Upstream Health Checker Args - Health check configuration, currently only supports VPC channels.
- K8s
Services []ApiGateway Upstream K8s Service Args - Configuration of K8S container service.
- Nodes
[]Api
Gateway Upstream Node Args - Backend nodes.
- Retries float64
- Request retry count, default to 3 times.
- map[string]string
- Tag description list.
- Upstream
Description string - Backend channel description.
- Upstream
Host string - Host request header forwarded by gateway to backend.
- Upstream
Name string - Backend channel name.
- Upstream
Type string - Backend access type, value range: IP_PORT, K8S.
- algorithm String
- Load balancing algorithm, value range: ROUND-ROBIN.
- scheme String
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- uniq
Vpc StringId - VPC Unique ID.
- api
Gateway StringUpstream Id - ID of the resource.
- health
Checker ApiGateway Upstream Health Checker - Health check configuration, currently only supports VPC channels.
- k8s
Services List<ApiGateway Upstream K8s Service> - Configuration of K8S container service.
- nodes
List<Api
Gateway Upstream Node> - Backend nodes.
- retries Double
- Request retry count, default to 3 times.
- Map<String,String>
- Tag description list.
- upstream
Description String - Backend channel description.
- upstream
Host String - Host request header forwarded by gateway to backend.
- upstream
Name String - Backend channel name.
- upstream
Type String - Backend access type, value range: IP_PORT, K8S.
- algorithm string
- Load balancing algorithm, value range: ROUND-ROBIN.
- scheme string
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- uniq
Vpc stringId - VPC Unique ID.
- api
Gateway stringUpstream Id - ID of the resource.
- health
Checker ApiGateway Upstream Health Checker - Health check configuration, currently only supports VPC channels.
- k8s
Services ApiGateway Upstream K8s Service[] - Configuration of K8S container service.
- nodes
Api
Gateway Upstream Node[] - Backend nodes.
- retries number
- Request retry count, default to 3 times.
- {[key: string]: string}
- Tag description list.
- upstream
Description string - Backend channel description.
- upstream
Host string - Host request header forwarded by gateway to backend.
- upstream
Name string - Backend channel name.
- upstream
Type string - Backend access type, value range: IP_PORT, K8S.
- algorithm str
- Load balancing algorithm, value range: ROUND-ROBIN.
- scheme str
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- uniq_
vpc_ strid - VPC Unique ID.
- api_
gateway_ strupstream_ id - ID of the resource.
- health_
checker ApiGateway Upstream Health Checker Args - Health check configuration, currently only supports VPC channels.
- k8s_
services Sequence[ApiGateway Upstream K8s Service Args] - Configuration of K8S container service.
- nodes
Sequence[Api
Gateway Upstream Node Args] - Backend nodes.
- retries float
- Request retry count, default to 3 times.
- Mapping[str, str]
- Tag description list.
- upstream_
description str - Backend channel description.
- upstream_
host str - Host request header forwarded by gateway to backend.
- upstream_
name str - Backend channel name.
- upstream_
type str - Backend access type, value range: IP_PORT, K8S.
- algorithm String
- Load balancing algorithm, value range: ROUND-ROBIN.
- scheme String
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- uniq
Vpc StringId - VPC Unique ID.
- api
Gateway StringUpstream Id - ID of the resource.
- health
Checker Property Map - Health check configuration, currently only supports VPC channels.
- k8s
Services List<Property Map> - Configuration of K8S container service.
- nodes List<Property Map>
- Backend nodes.
- retries Number
- Request retry count, default to 3 times.
- Map<String>
- Tag description list.
- upstream
Description String - Backend channel description.
- upstream
Host String - Host request header forwarded by gateway to backend.
- upstream
Name String - Backend channel name.
- upstream
Type String - Backend access type, value range: IP_PORT, K8S.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiGatewayUpstream resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ApiGatewayUpstream Resource
Get an existing ApiGatewayUpstream resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApiGatewayUpstreamState, opts?: CustomResourceOptions): ApiGatewayUpstream
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
algorithm: Optional[str] = None,
api_gateway_upstream_id: Optional[str] = None,
health_checker: Optional[ApiGatewayUpstreamHealthCheckerArgs] = None,
k8s_services: Optional[Sequence[ApiGatewayUpstreamK8sServiceArgs]] = None,
nodes: Optional[Sequence[ApiGatewayUpstreamNodeArgs]] = None,
retries: Optional[float] = None,
scheme: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
uniq_vpc_id: Optional[str] = None,
upstream_description: Optional[str] = None,
upstream_host: Optional[str] = None,
upstream_name: Optional[str] = None,
upstream_type: Optional[str] = None) -> ApiGatewayUpstream
func GetApiGatewayUpstream(ctx *Context, name string, id IDInput, state *ApiGatewayUpstreamState, opts ...ResourceOption) (*ApiGatewayUpstream, error)
public static ApiGatewayUpstream Get(string name, Input<string> id, ApiGatewayUpstreamState? state, CustomResourceOptions? opts = null)
public static ApiGatewayUpstream get(String name, Output<String> id, ApiGatewayUpstreamState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ApiGatewayUpstream get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Algorithm string
- Load balancing algorithm, value range: ROUND-ROBIN.
- Api
Gateway stringUpstream Id - ID of the resource.
- Health
Checker ApiGateway Upstream Health Checker - Health check configuration, currently only supports VPC channels.
- K8s
Services List<ApiGateway Upstream K8s Service> - Configuration of K8S container service.
- Nodes
List<Api
Gateway Upstream Node> - Backend nodes.
- Retries double
- Request retry count, default to 3 times.
- Scheme string
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- Dictionary<string, string>
- Tag description list.
- Uniq
Vpc stringId - VPC Unique ID.
- Upstream
Description string - Backend channel description.
- Upstream
Host string - Host request header forwarded by gateway to backend.
- Upstream
Name string - Backend channel name.
- Upstream
Type string - Backend access type, value range: IP_PORT, K8S.
- Algorithm string
- Load balancing algorithm, value range: ROUND-ROBIN.
- Api
Gateway stringUpstream Id - ID of the resource.
- Health
Checker ApiGateway Upstream Health Checker Args - Health check configuration, currently only supports VPC channels.
- K8s
Services []ApiGateway Upstream K8s Service Args - Configuration of K8S container service.
- Nodes
[]Api
Gateway Upstream Node Args - Backend nodes.
- Retries float64
- Request retry count, default to 3 times.
- Scheme string
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- map[string]string
- Tag description list.
- Uniq
Vpc stringId - VPC Unique ID.
- Upstream
Description string - Backend channel description.
- Upstream
Host string - Host request header forwarded by gateway to backend.
- Upstream
Name string - Backend channel name.
- Upstream
Type string - Backend access type, value range: IP_PORT, K8S.
- algorithm String
- Load balancing algorithm, value range: ROUND-ROBIN.
- api
Gateway StringUpstream Id - ID of the resource.
- health
Checker ApiGateway Upstream Health Checker - Health check configuration, currently only supports VPC channels.
- k8s
Services List<ApiGateway Upstream K8s Service> - Configuration of K8S container service.
- nodes
List<Api
Gateway Upstream Node> - Backend nodes.
- retries Double
- Request retry count, default to 3 times.
- scheme String
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- Map<String,String>
- Tag description list.
- uniq
Vpc StringId - VPC Unique ID.
- upstream
Description String - Backend channel description.
- upstream
Host String - Host request header forwarded by gateway to backend.
- upstream
Name String - Backend channel name.
- upstream
Type String - Backend access type, value range: IP_PORT, K8S.
- algorithm string
- Load balancing algorithm, value range: ROUND-ROBIN.
- api
Gateway stringUpstream Id - ID of the resource.
- health
Checker ApiGateway Upstream Health Checker - Health check configuration, currently only supports VPC channels.
- k8s
Services ApiGateway Upstream K8s Service[] - Configuration of K8S container service.
- nodes
Api
Gateway Upstream Node[] - Backend nodes.
- retries number
- Request retry count, default to 3 times.
- scheme string
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- {[key: string]: string}
- Tag description list.
- uniq
Vpc stringId - VPC Unique ID.
- upstream
Description string - Backend channel description.
- upstream
Host string - Host request header forwarded by gateway to backend.
- upstream
Name string - Backend channel name.
- upstream
Type string - Backend access type, value range: IP_PORT, K8S.
- algorithm str
- Load balancing algorithm, value range: ROUND-ROBIN.
- api_
gateway_ strupstream_ id - ID of the resource.
- health_
checker ApiGateway Upstream Health Checker Args - Health check configuration, currently only supports VPC channels.
- k8s_
services Sequence[ApiGateway Upstream K8s Service Args] - Configuration of K8S container service.
- nodes
Sequence[Api
Gateway Upstream Node Args] - Backend nodes.
- retries float
- Request retry count, default to 3 times.
- scheme str
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- Mapping[str, str]
- Tag description list.
- uniq_
vpc_ strid - VPC Unique ID.
- upstream_
description str - Backend channel description.
- upstream_
host str - Host request header forwarded by gateway to backend.
- upstream_
name str - Backend channel name.
- upstream_
type str - Backend access type, value range: IP_PORT, K8S.
- algorithm String
- Load balancing algorithm, value range: ROUND-ROBIN.
- api
Gateway StringUpstream Id - ID of the resource.
- health
Checker Property Map - Health check configuration, currently only supports VPC channels.
- k8s
Services List<Property Map> - Configuration of K8S container service.
- nodes List<Property Map>
- Backend nodes.
- retries Number
- Request retry count, default to 3 times.
- scheme String
- Backend protocol, value range: HTTP, HTTPS, gRPC, gRPCs.
- Map<String>
- Tag description list.
- uniq
Vpc StringId - VPC Unique ID.
- upstream
Description String - Backend channel description.
- upstream
Host String - Host request header forwarded by gateway to backend.
- upstream
Name String - Backend channel name.
- upstream
Type String - Backend access type, value range: IP_PORT, K8S.
Supporting Types
ApiGatewayUpstreamHealthChecker, ApiGatewayUpstreamHealthCheckerArgs
- Enable
Active boolCheck - Identify whether active health checks are enabled.
- Enable
Passive boolCheck - Identify whether passive health checks are enabled.
- Healthy
Http stringStatus - The HTTP status code that determines a successful request during a health check.
- Http
Failure doubleThreshold - HTTP continuous error threshold. 0 means HTTP checking is disabled. Value range: [0, 254].
- Tcp
Failure doubleThreshold - TCP continuous error threshold. 0 indicates disabling TCP checking. Value range: [0, 254].
- Timeout
Threshold double - Continuous timeout threshold. 0 indicates disabling timeout checking. Value range: [0, 254].
- Unhealthy
Http stringStatus - The HTTP status code that determines a failed request during a health check.
- Active
Check stringHttp Path - Detect the requested path during active health checks. The default is'/'.
- Active
Check doubleInterval - The time interval for active health checks is 5 seconds by default.
- Active
Check doubleTimeout - The detection request for active health check timed out in seconds. The default is 5 seconds.
- Unhealthy
Timeout double - The automatic recovery time of abnormal node status, in seconds. When only passive checking is enabled, it must be set to a value>0, otherwise the passive exception node will not be able to recover. The default is 30 seconds.
- Enable
Active boolCheck - Identify whether active health checks are enabled.
- Enable
Passive boolCheck - Identify whether passive health checks are enabled.
- Healthy
Http stringStatus - The HTTP status code that determines a successful request during a health check.
- Http
Failure float64Threshold - HTTP continuous error threshold. 0 means HTTP checking is disabled. Value range: [0, 254].
- Tcp
Failure float64Threshold - TCP continuous error threshold. 0 indicates disabling TCP checking. Value range: [0, 254].
- Timeout
Threshold float64 - Continuous timeout threshold. 0 indicates disabling timeout checking. Value range: [0, 254].
- Unhealthy
Http stringStatus - The HTTP status code that determines a failed request during a health check.
- Active
Check stringHttp Path - Detect the requested path during active health checks. The default is'/'.
- Active
Check float64Interval - The time interval for active health checks is 5 seconds by default.
- Active
Check float64Timeout - The detection request for active health check timed out in seconds. The default is 5 seconds.
- Unhealthy
Timeout float64 - The automatic recovery time of abnormal node status, in seconds. When only passive checking is enabled, it must be set to a value>0, otherwise the passive exception node will not be able to recover. The default is 30 seconds.
- enable
Active BooleanCheck - Identify whether active health checks are enabled.
- enable
Passive BooleanCheck - Identify whether passive health checks are enabled.
- healthy
Http StringStatus - The HTTP status code that determines a successful request during a health check.
- http
Failure DoubleThreshold - HTTP continuous error threshold. 0 means HTTP checking is disabled. Value range: [0, 254].
- tcp
Failure DoubleThreshold - TCP continuous error threshold. 0 indicates disabling TCP checking. Value range: [0, 254].
- timeout
Threshold Double - Continuous timeout threshold. 0 indicates disabling timeout checking. Value range: [0, 254].
- unhealthy
Http StringStatus - The HTTP status code that determines a failed request during a health check.
- active
Check StringHttp Path - Detect the requested path during active health checks. The default is'/'.
- active
Check DoubleInterval - The time interval for active health checks is 5 seconds by default.
- active
Check DoubleTimeout - The detection request for active health check timed out in seconds. The default is 5 seconds.
- unhealthy
Timeout Double - The automatic recovery time of abnormal node status, in seconds. When only passive checking is enabled, it must be set to a value>0, otherwise the passive exception node will not be able to recover. The default is 30 seconds.
- enable
Active booleanCheck - Identify whether active health checks are enabled.
- enable
Passive booleanCheck - Identify whether passive health checks are enabled.
- healthy
Http stringStatus - The HTTP status code that determines a successful request during a health check.
- http
Failure numberThreshold - HTTP continuous error threshold. 0 means HTTP checking is disabled. Value range: [0, 254].
- tcp
Failure numberThreshold - TCP continuous error threshold. 0 indicates disabling TCP checking. Value range: [0, 254].
- timeout
Threshold number - Continuous timeout threshold. 0 indicates disabling timeout checking. Value range: [0, 254].
- unhealthy
Http stringStatus - The HTTP status code that determines a failed request during a health check.
- active
Check stringHttp Path - Detect the requested path during active health checks. The default is'/'.
- active
Check numberInterval - The time interval for active health checks is 5 seconds by default.
- active
Check numberTimeout - The detection request for active health check timed out in seconds. The default is 5 seconds.
- unhealthy
Timeout number - The automatic recovery time of abnormal node status, in seconds. When only passive checking is enabled, it must be set to a value>0, otherwise the passive exception node will not be able to recover. The default is 30 seconds.
- enable_
active_ boolcheck - Identify whether active health checks are enabled.
- enable_
passive_ boolcheck - Identify whether passive health checks are enabled.
- healthy_
http_ strstatus - The HTTP status code that determines a successful request during a health check.
- http_
failure_ floatthreshold - HTTP continuous error threshold. 0 means HTTP checking is disabled. Value range: [0, 254].
- tcp_
failure_ floatthreshold - TCP continuous error threshold. 0 indicates disabling TCP checking. Value range: [0, 254].
- timeout_
threshold float - Continuous timeout threshold. 0 indicates disabling timeout checking. Value range: [0, 254].
- unhealthy_
http_ strstatus - The HTTP status code that determines a failed request during a health check.
- active_
check_ strhttp_ path - Detect the requested path during active health checks. The default is'/'.
- active_
check_ floatinterval - The time interval for active health checks is 5 seconds by default.
- active_
check_ floattimeout - The detection request for active health check timed out in seconds. The default is 5 seconds.
- unhealthy_
timeout float - The automatic recovery time of abnormal node status, in seconds. When only passive checking is enabled, it must be set to a value>0, otherwise the passive exception node will not be able to recover. The default is 30 seconds.
- enable
Active BooleanCheck - Identify whether active health checks are enabled.
- enable
Passive BooleanCheck - Identify whether passive health checks are enabled.
- healthy
Http StringStatus - The HTTP status code that determines a successful request during a health check.
- http
Failure NumberThreshold - HTTP continuous error threshold. 0 means HTTP checking is disabled. Value range: [0, 254].
- tcp
Failure NumberThreshold - TCP continuous error threshold. 0 indicates disabling TCP checking. Value range: [0, 254].
- timeout
Threshold Number - Continuous timeout threshold. 0 indicates disabling timeout checking. Value range: [0, 254].
- unhealthy
Http StringStatus - The HTTP status code that determines a failed request during a health check.
- active
Check StringHttp Path - Detect the requested path during active health checks. The default is'/'.
- active
Check NumberInterval - The time interval for active health checks is 5 seconds by default.
- active
Check NumberTimeout - The detection request for active health check timed out in seconds. The default is 5 seconds.
- unhealthy
Timeout Number - The automatic recovery time of abnormal node status, in seconds. When only passive checking is enabled, it must be set to a value>0, otherwise the passive exception node will not be able to recover. The default is 30 seconds.
ApiGatewayUpstreamK8sService, ApiGatewayUpstreamK8sServiceArgs
- Cluster
Id string - K8s cluster ID.
- Extra
Labels List<ApiGateway Upstream K8s Service Extra Label> - Additional Selected Pod Label.
- Namespace string
- Container namespace.
- Port double
- Port of service.
- Service
Name string - The name of the container service.
- Weight double
- weight.
- Name string
- Customized service name, optional.
- Cluster
Id string - K8s cluster ID.
- Extra
Labels []ApiGateway Upstream K8s Service Extra Label - Additional Selected Pod Label.
- Namespace string
- Container namespace.
- Port float64
- Port of service.
- Service
Name string - The name of the container service.
- Weight float64
- weight.
- Name string
- Customized service name, optional.
- cluster
Id String - K8s cluster ID.
- extra
Labels List<ApiGateway Upstream K8s Service Extra Label> - Additional Selected Pod Label.
- namespace String
- Container namespace.
- port Double
- Port of service.
- service
Name String - The name of the container service.
- weight Double
- weight.
- name String
- Customized service name, optional.
- cluster
Id string - K8s cluster ID.
- extra
Labels ApiGateway Upstream K8s Service Extra Label[] - Additional Selected Pod Label.
- namespace string
- Container namespace.
- port number
- Port of service.
- service
Name string - The name of the container service.
- weight number
- weight.
- name string
- Customized service name, optional.
- cluster_
id str - K8s cluster ID.
- extra_
labels Sequence[ApiGateway Upstream K8s Service Extra Label] - Additional Selected Pod Label.
- namespace str
- Container namespace.
- port float
- Port of service.
- service_
name str - The name of the container service.
- weight float
- weight.
- name str
- Customized service name, optional.
- cluster
Id String - K8s cluster ID.
- extra
Labels List<Property Map> - Additional Selected Pod Label.
- namespace String
- Container namespace.
- port Number
- Port of service.
- service
Name String - The name of the container service.
- weight Number
- weight.
- name String
- Customized service name, optional.
ApiGatewayUpstreamK8sServiceExtraLabel, ApiGatewayUpstreamK8sServiceExtraLabelArgs
ApiGatewayUpstreamNode, ApiGatewayUpstreamNodeArgs
- Host string
- IP or domain name.
- Port double
- Port [0, 65535].
- Weight double
- Weight [0, 100], 0 is disabled.
- Cluster
Id string - The ID of the TKE clusterNote: This field may return null, indicating that a valid value cannot be obtained.
- Name
Space string - K8S namespaceNote: This field may return null, indicating that a valid value cannot be obtained.
- Service
Name string - K8S container service nameNote: This field may return null, indicating that a valid value cannot be obtained.
- Source string
- Source of Node, value range: K8SNote: This field may return null, indicating that a valid value cannot be obtained.
- List<string>
- Dye labelNote: This field may return null, indicating that a valid value cannot be obtained.
- Unique
Service stringName - Unique service name recorded internally by API gatewayNote: This field may return null, indicating that a valid value cannot be obtained.
- Vm
Instance stringId - CVM instance IDNote: This field may return null, indicating that a valid value cannot be obtained.
- Host string
- IP or domain name.
- Port float64
- Port [0, 65535].
- Weight float64
- Weight [0, 100], 0 is disabled.
- Cluster
Id string - The ID of the TKE clusterNote: This field may return null, indicating that a valid value cannot be obtained.
- Name
Space string - K8S namespaceNote: This field may return null, indicating that a valid value cannot be obtained.
- Service
Name string - K8S container service nameNote: This field may return null, indicating that a valid value cannot be obtained.
- Source string
- Source of Node, value range: K8SNote: This field may return null, indicating that a valid value cannot be obtained.
- []string
- Dye labelNote: This field may return null, indicating that a valid value cannot be obtained.
- Unique
Service stringName - Unique service name recorded internally by API gatewayNote: This field may return null, indicating that a valid value cannot be obtained.
- Vm
Instance stringId - CVM instance IDNote: This field may return null, indicating that a valid value cannot be obtained.
- host String
- IP or domain name.
- port Double
- Port [0, 65535].
- weight Double
- Weight [0, 100], 0 is disabled.
- cluster
Id String - The ID of the TKE clusterNote: This field may return null, indicating that a valid value cannot be obtained.
- name
Space String - K8S namespaceNote: This field may return null, indicating that a valid value cannot be obtained.
- service
Name String - K8S container service nameNote: This field may return null, indicating that a valid value cannot be obtained.
- source String
- Source of Node, value range: K8SNote: This field may return null, indicating that a valid value cannot be obtained.
- List<String>
- Dye labelNote: This field may return null, indicating that a valid value cannot be obtained.
- unique
Service StringName - Unique service name recorded internally by API gatewayNote: This field may return null, indicating that a valid value cannot be obtained.
- vm
Instance StringId - CVM instance IDNote: This field may return null, indicating that a valid value cannot be obtained.
- host string
- IP or domain name.
- port number
- Port [0, 65535].
- weight number
- Weight [0, 100], 0 is disabled.
- cluster
Id string - The ID of the TKE clusterNote: This field may return null, indicating that a valid value cannot be obtained.
- name
Space string - K8S namespaceNote: This field may return null, indicating that a valid value cannot be obtained.
- service
Name string - K8S container service nameNote: This field may return null, indicating that a valid value cannot be obtained.
- source string
- Source of Node, value range: K8SNote: This field may return null, indicating that a valid value cannot be obtained.
- string[]
- Dye labelNote: This field may return null, indicating that a valid value cannot be obtained.
- unique
Service stringName - Unique service name recorded internally by API gatewayNote: This field may return null, indicating that a valid value cannot be obtained.
- vm
Instance stringId - CVM instance IDNote: This field may return null, indicating that a valid value cannot be obtained.
- host str
- IP or domain name.
- port float
- Port [0, 65535].
- weight float
- Weight [0, 100], 0 is disabled.
- cluster_
id str - The ID of the TKE clusterNote: This field may return null, indicating that a valid value cannot be obtained.
- name_
space str - K8S namespaceNote: This field may return null, indicating that a valid value cannot be obtained.
- service_
name str - K8S container service nameNote: This field may return null, indicating that a valid value cannot be obtained.
- source str
- Source of Node, value range: K8SNote: This field may return null, indicating that a valid value cannot be obtained.
- Sequence[str]
- Dye labelNote: This field may return null, indicating that a valid value cannot be obtained.
- unique_
service_ strname - Unique service name recorded internally by API gatewayNote: This field may return null, indicating that a valid value cannot be obtained.
- vm_
instance_ strid - CVM instance IDNote: This field may return null, indicating that a valid value cannot be obtained.
- host String
- IP or domain name.
- port Number
- Port [0, 65535].
- weight Number
- Weight [0, 100], 0 is disabled.
- cluster
Id String - The ID of the TKE clusterNote: This field may return null, indicating that a valid value cannot be obtained.
- name
Space String - K8S namespaceNote: This field may return null, indicating that a valid value cannot be obtained.
- service
Name String - K8S container service nameNote: This field may return null, indicating that a valid value cannot be obtained.
- source String
- Source of Node, value range: K8SNote: This field may return null, indicating that a valid value cannot be obtained.
- List<String>
- Dye labelNote: This field may return null, indicating that a valid value cannot be obtained.
- unique
Service StringName - Unique service name recorded internally by API gatewayNote: This field may return null, indicating that a valid value cannot be obtained.
- vm
Instance StringId - CVM instance IDNote: This field may return null, indicating that a valid value cannot be obtained.
Import
apigateway upstream can be imported using the id, e.g.
$ pulumi import tencentcloud:index/apiGatewayUpstream:ApiGatewayUpstream upstream upstream_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.