volcengine.apig.ApigUpstream
Explore with Pulumi AI
Provides a resource to manage apig upstream
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.getZones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-vpc",
cidrBlock: "172.16.0.0/16",
});
const foo1 = new volcengine.vpc.Subnet("foo1", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.0.0/24",
zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
vpcId: fooVpc.id,
});
const foo2 = new volcengine.vpc.Subnet("foo2", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.1.0/24",
zoneId: fooZones.then(fooZones => fooZones.zones?.[1]?.id),
vpcId: fooVpc.id,
});
const fooApigGateway = new volcengine.apig.ApigGateway("fooApigGateway", {
type: "standard",
comments: "acc-test",
projectName: "default",
tags: [{
key: "k1",
value: "v1",
}],
networkSpec: {
vpcId: fooVpc.id,
subnetIds: [
foo1.id,
foo2.id,
],
},
resourceSpec: {
replicas: 2,
instanceSpecCode: "1c2g",
clbSpecCode: "small_1",
publicNetworkBillingType: "bandwidth",
publicNetworkBandwidth: 1,
networkType: {
enablePublicNetwork: true,
enablePrivateNetwork: true,
},
},
logSpec: {
enable: true,
projectId: "d3cb87c0-faeb-4074-b1ee-9bd747865a76",
topicId: "d339482e-d86d-4bd8-a9bb-f270417f00a1",
},
monitorSpec: {
enable: true,
workspaceId: "4ed1caf3-279d-4c5f-8301-87ea38e92ffc",
},
});
const fooApigGatewayService = new volcengine.apig.ApigGatewayService("fooApigGatewayService", {
gatewayId: fooApigGateway.id,
serviceName: "acc-test-apig-service",
comments: "acc-test",
protocols: [
"HTTP",
"HTTPS",
],
authSpec: {
enable: false,
},
});
const foo_fixed_ip = new volcengine.apig.ApigUpstream("foo-fixed-ip", {
gatewayId: fooApigGateway.id,
comments: "acc-test",
resourceType: "Console",
protocol: "HTTP",
loadBalancerSettings: {
lbPolicy: "ConsistentHashLB",
consistentHashLb: {
hashKey: "HTTPCookie",
httpCookie: {
name: "test",
path: "/",
ttl: 300,
},
},
},
tlsSettings: {
tlsMode: "SIMPLE",
sni: "test",
},
circuitBreakingSettings: {
enable: false,
consecutiveErrors: 5,
interval: 10000,
baseEjectionTime: 30000,
maxEjectionPercent: 20,
minHealthPercent: 60,
},
sourceType: "FixedIP",
upstreamSpec: {
fixedIpLists: [
{
ip: "172.16.0.10",
port: 8080,
},
{
ip: "172.16.0.20",
port: 8090,
},
],
},
});
const foo_vefaas = new volcengine.apig.ApigUpstream("foo-vefaas", {
gatewayId: fooApigGateway.id,
comments: "acc-test",
resourceType: "Console",
protocol: "HTTP",
sourceType: "VeFaas",
upstreamSpec: {
veFaas: {
functionId: "crnrfajj",
},
},
});
const foo_k8sApigUpstreamSource = new volcengine.apig.ApigUpstreamSource("foo-k8sApigUpstreamSource", {
gatewayId: fooApigGateway.id,
comments: "acc-test-k8s",
sourceType: "K8S",
sourceSpec: {
k8sSource: {
clusterId: "cd197sac4mpmnruh7um80",
},
},
ingressSettings: [{
enableIngress: true,
updateStatus: true,
ingressClasses: ["test"],
watchNamespaces: ["default"],
}],
});
const foo_k8sApigUpstream = new volcengine.apig.ApigUpstream("foo-k8sApigUpstream", {
gatewayId: fooApigGateway.id,
comments: "acc-test",
resourceType: "Console",
protocol: "HTTP",
loadBalancerSettings: {
lbPolicy: "ConsistentHashLB",
consistentHashLb: {
hashKey: "HTTPCookie",
httpCookie: {
name: "test",
path: "/",
ttl: 300,
},
},
},
tlsSettings: {
tlsMode: "SIMPLE",
sni: "test",
},
circuitBreakingSettings: {
enable: false,
consecutiveErrors: 5,
interval: 10000,
baseEjectionTime: 30000,
maxEjectionPercent: 20,
minHealthPercent: 60,
},
sourceType: "K8S",
upstreamSpec: {
k8sService: {
namespace: "default",
name: "kubernetes",
port: 443,
},
},
}, {
dependsOn: [foo_k8sApigUpstreamSource],
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.get_zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16")
foo1 = volcengine.vpc.Subnet("foo1",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id=foo_zones.zones[0].id,
vpc_id=foo_vpc.id)
foo2 = volcengine.vpc.Subnet("foo2",
subnet_name="acc-test-subnet",
cidr_block="172.16.1.0/24",
zone_id=foo_zones.zones[1].id,
vpc_id=foo_vpc.id)
foo_apig_gateway = volcengine.apig.ApigGateway("fooApigGateway",
type="standard",
comments="acc-test",
project_name="default",
tags=[volcengine.apig.ApigGatewayTagArgs(
key="k1",
value="v1",
)],
network_spec=volcengine.apig.ApigGatewayNetworkSpecArgs(
vpc_id=foo_vpc.id,
subnet_ids=[
foo1.id,
foo2.id,
],
),
resource_spec=volcengine.apig.ApigGatewayResourceSpecArgs(
replicas=2,
instance_spec_code="1c2g",
clb_spec_code="small_1",
public_network_billing_type="bandwidth",
public_network_bandwidth=1,
network_type=volcengine.apig.ApigGatewayResourceSpecNetworkTypeArgs(
enable_public_network=True,
enable_private_network=True,
),
),
log_spec=volcengine.apig.ApigGatewayLogSpecArgs(
enable=True,
project_id="d3cb87c0-faeb-4074-b1ee-9bd747865a76",
topic_id="d339482e-d86d-4bd8-a9bb-f270417f00a1",
),
monitor_spec=volcengine.apig.ApigGatewayMonitorSpecArgs(
enable=True,
workspace_id="4ed1caf3-279d-4c5f-8301-87ea38e92ffc",
))
foo_apig_gateway_service = volcengine.apig.ApigGatewayService("fooApigGatewayService",
gateway_id=foo_apig_gateway.id,
service_name="acc-test-apig-service",
comments="acc-test",
protocols=[
"HTTP",
"HTTPS",
],
auth_spec=volcengine.apig.ApigGatewayServiceAuthSpecArgs(
enable=False,
))
foo_fixed_ip = volcengine.apig.ApigUpstream("foo-fixed-ip",
gateway_id=foo_apig_gateway.id,
comments="acc-test",
resource_type="Console",
protocol="HTTP",
load_balancer_settings=volcengine.apig.ApigUpstreamLoadBalancerSettingsArgs(
lb_policy="ConsistentHashLB",
consistent_hash_lb=volcengine.apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs(
hash_key="HTTPCookie",
http_cookie=volcengine.apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs(
name="test",
path="/",
ttl=300,
),
),
),
tls_settings=volcengine.apig.ApigUpstreamTlsSettingsArgs(
tls_mode="SIMPLE",
sni="test",
),
circuit_breaking_settings=volcengine.apig.ApigUpstreamCircuitBreakingSettingsArgs(
enable=False,
consecutive_errors=5,
interval=10000,
base_ejection_time=30000,
max_ejection_percent=20,
min_health_percent=60,
),
source_type="FixedIP",
upstream_spec=volcengine.apig.ApigUpstreamUpstreamSpecArgs(
fixed_ip_lists=[
volcengine.apig.ApigUpstreamUpstreamSpecFixedIpListArgs(
ip="172.16.0.10",
port=8080,
),
volcengine.apig.ApigUpstreamUpstreamSpecFixedIpListArgs(
ip="172.16.0.20",
port=8090,
),
],
))
foo_vefaas = volcengine.apig.ApigUpstream("foo-vefaas",
gateway_id=foo_apig_gateway.id,
comments="acc-test",
resource_type="Console",
protocol="HTTP",
source_type="VeFaas",
upstream_spec=volcengine.apig.ApigUpstreamUpstreamSpecArgs(
ve_faas=volcengine.apig.ApigUpstreamUpstreamSpecVeFaasArgs(
function_id="crnrfajj",
),
))
foo_k8s_apig_upstream_source = volcengine.apig.ApigUpstreamSource("foo-k8sApigUpstreamSource",
gateway_id=foo_apig_gateway.id,
comments="acc-test-k8s",
source_type="K8S",
source_spec=volcengine.apig.ApigUpstreamSourceSourceSpecArgs(
k8s_source=volcengine.apig.ApigUpstreamSourceSourceSpecK8sSourceArgs(
cluster_id="cd197sac4mpmnruh7um80",
),
),
ingress_settings=[volcengine.apig.ApigUpstreamSourceIngressSettingArgs(
enable_ingress=True,
update_status=True,
ingress_classes=["test"],
watch_namespaces=["default"],
)])
foo_k8s_apig_upstream = volcengine.apig.ApigUpstream("foo-k8sApigUpstream",
gateway_id=foo_apig_gateway.id,
comments="acc-test",
resource_type="Console",
protocol="HTTP",
load_balancer_settings=volcengine.apig.ApigUpstreamLoadBalancerSettingsArgs(
lb_policy="ConsistentHashLB",
consistent_hash_lb=volcengine.apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs(
hash_key="HTTPCookie",
http_cookie=volcengine.apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs(
name="test",
path="/",
ttl=300,
),
),
),
tls_settings=volcengine.apig.ApigUpstreamTlsSettingsArgs(
tls_mode="SIMPLE",
sni="test",
),
circuit_breaking_settings=volcengine.apig.ApigUpstreamCircuitBreakingSettingsArgs(
enable=False,
consecutive_errors=5,
interval=10000,
base_ejection_time=30000,
max_ejection_percent=20,
min_health_percent=60,
),
source_type="K8S",
upstream_spec=volcengine.apig.ApigUpstreamUpstreamSpecArgs(
k8s_service=volcengine.apig.ApigUpstreamUpstreamSpecK8sServiceArgs(
namespace="default",
name="kubernetes",
port=443,
),
),
opts=pulumi.ResourceOptions(depends_on=[foo_k8s_apig_upstream_source]))
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/apig"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooZones, err := ecs.GetZones(ctx, nil, nil)
if err != nil {
return err
}
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
foo1, err := vpc.NewSubnet(ctx, "foo1", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(fooZones.Zones[0].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
foo2, err := vpc.NewSubnet(ctx, "foo2", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.1.0/24"),
ZoneId: pulumi.String(fooZones.Zones[1].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooApigGateway, err := apig.NewApigGateway(ctx, "fooApigGateway", &apig.ApigGatewayArgs{
Type: pulumi.String("standard"),
Comments: pulumi.String("acc-test"),
ProjectName: pulumi.String("default"),
Tags: apig.ApigGatewayTagArray{
&apig.ApigGatewayTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
NetworkSpec: &apig.ApigGatewayNetworkSpecArgs{
VpcId: fooVpc.ID(),
SubnetIds: pulumi.StringArray{
foo1.ID(),
foo2.ID(),
},
},
ResourceSpec: &apig.ApigGatewayResourceSpecArgs{
Replicas: pulumi.Int(2),
InstanceSpecCode: pulumi.String("1c2g"),
ClbSpecCode: pulumi.String("small_1"),
PublicNetworkBillingType: pulumi.String("bandwidth"),
PublicNetworkBandwidth: pulumi.Int(1),
NetworkType: &apig.ApigGatewayResourceSpecNetworkTypeArgs{
EnablePublicNetwork: pulumi.Bool(true),
EnablePrivateNetwork: pulumi.Bool(true),
},
},
LogSpec: &apig.ApigGatewayLogSpecArgs{
Enable: pulumi.Bool(true),
ProjectId: pulumi.String("d3cb87c0-faeb-4074-b1ee-9bd747865a76"),
TopicId: pulumi.String("d339482e-d86d-4bd8-a9bb-f270417f00a1"),
},
MonitorSpec: &apig.ApigGatewayMonitorSpecArgs{
Enable: pulumi.Bool(true),
WorkspaceId: pulumi.String("4ed1caf3-279d-4c5f-8301-87ea38e92ffc"),
},
})
if err != nil {
return err
}
_, err = apig.NewApigGatewayService(ctx, "fooApigGatewayService", &apig.ApigGatewayServiceArgs{
GatewayId: fooApigGateway.ID(),
ServiceName: pulumi.String("acc-test-apig-service"),
Comments: pulumi.String("acc-test"),
Protocols: pulumi.StringArray{
pulumi.String("HTTP"),
pulumi.String("HTTPS"),
},
AuthSpec: &apig.ApigGatewayServiceAuthSpecArgs{
Enable: pulumi.Bool(false),
},
})
if err != nil {
return err
}
_, err = apig.NewApigUpstream(ctx, "foo-fixed-ip", &apig.ApigUpstreamArgs{
GatewayId: fooApigGateway.ID(),
Comments: pulumi.String("acc-test"),
ResourceType: pulumi.String("Console"),
Protocol: pulumi.String("HTTP"),
LoadBalancerSettings: &apig.ApigUpstreamLoadBalancerSettingsArgs{
LbPolicy: pulumi.String("ConsistentHashLB"),
ConsistentHashLb: &apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs{
HashKey: pulumi.String("HTTPCookie"),
HttpCookie: &apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs{
Name: pulumi.String("test"),
Path: pulumi.String("/"),
Ttl: pulumi.Int(300),
},
},
},
TlsSettings: &apig.ApigUpstreamTlsSettingsArgs{
TlsMode: pulumi.String("SIMPLE"),
Sni: pulumi.String("test"),
},
CircuitBreakingSettings: &apig.ApigUpstreamCircuitBreakingSettingsArgs{
Enable: pulumi.Bool(false),
ConsecutiveErrors: pulumi.Int(5),
Interval: pulumi.Int(10000),
BaseEjectionTime: pulumi.Int(30000),
MaxEjectionPercent: pulumi.Int(20),
MinHealthPercent: pulumi.Int(60),
},
SourceType: pulumi.String("FixedIP"),
UpstreamSpec: &apig.ApigUpstreamUpstreamSpecArgs{
FixedIpLists: apig.ApigUpstreamUpstreamSpecFixedIpListArray{
&apig.ApigUpstreamUpstreamSpecFixedIpListArgs{
Ip: pulumi.String("172.16.0.10"),
Port: pulumi.Int(8080),
},
&apig.ApigUpstreamUpstreamSpecFixedIpListArgs{
Ip: pulumi.String("172.16.0.20"),
Port: pulumi.Int(8090),
},
},
},
})
if err != nil {
return err
}
_, err = apig.NewApigUpstream(ctx, "foo-vefaas", &apig.ApigUpstreamArgs{
GatewayId: fooApigGateway.ID(),
Comments: pulumi.String("acc-test"),
ResourceType: pulumi.String("Console"),
Protocol: pulumi.String("HTTP"),
SourceType: pulumi.String("VeFaas"),
UpstreamSpec: &apig.ApigUpstreamUpstreamSpecArgs{
VeFaas: &apig.ApigUpstreamUpstreamSpecVeFaasArgs{
FunctionId: pulumi.String("crnrfajj"),
},
},
})
if err != nil {
return err
}
_, err = apig.NewApigUpstreamSource(ctx, "foo-k8sApigUpstreamSource", &apig.ApigUpstreamSourceArgs{
GatewayId: fooApigGateway.ID(),
Comments: pulumi.String("acc-test-k8s"),
SourceType: pulumi.String("K8S"),
SourceSpec: &apig.ApigUpstreamSourceSourceSpecArgs{
K8sSource: &apig.ApigUpstreamSourceSourceSpecK8sSourceArgs{
ClusterId: pulumi.String("cd197sac4mpmnruh7um80"),
},
},
IngressSettings: apig.ApigUpstreamSourceIngressSettingArray{
&apig.ApigUpstreamSourceIngressSettingArgs{
EnableIngress: pulumi.Bool(true),
UpdateStatus: pulumi.Bool(true),
IngressClasses: pulumi.StringArray{
pulumi.String("test"),
},
WatchNamespaces: pulumi.StringArray{
pulumi.String("default"),
},
},
},
})
if err != nil {
return err
}
_, err = apig.NewApigUpstream(ctx, "foo-k8sApigUpstream", &apig.ApigUpstreamArgs{
GatewayId: fooApigGateway.ID(),
Comments: pulumi.String("acc-test"),
ResourceType: pulumi.String("Console"),
Protocol: pulumi.String("HTTP"),
LoadBalancerSettings: &apig.ApigUpstreamLoadBalancerSettingsArgs{
LbPolicy: pulumi.String("ConsistentHashLB"),
ConsistentHashLb: &apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs{
HashKey: pulumi.String("HTTPCookie"),
HttpCookie: &apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs{
Name: pulumi.String("test"),
Path: pulumi.String("/"),
Ttl: pulumi.Int(300),
},
},
},
TlsSettings: &apig.ApigUpstreamTlsSettingsArgs{
TlsMode: pulumi.String("SIMPLE"),
Sni: pulumi.String("test"),
},
CircuitBreakingSettings: &apig.ApigUpstreamCircuitBreakingSettingsArgs{
Enable: pulumi.Bool(false),
ConsecutiveErrors: pulumi.Int(5),
Interval: pulumi.Int(10000),
BaseEjectionTime: pulumi.Int(30000),
MaxEjectionPercent: pulumi.Int(20),
MinHealthPercent: pulumi.Int(60),
},
SourceType: pulumi.String("K8S"),
UpstreamSpec: &apig.ApigUpstreamUpstreamSpecArgs{
K8sService: &apig.ApigUpstreamUpstreamSpecK8sServiceArgs{
Namespace: pulumi.String("default"),
Name: pulumi.String("kubernetes"),
Port: pulumi.Int(443),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
foo_k8sApigUpstreamSource,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooZones = Volcengine.Ecs.GetZones.Invoke();
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
});
var foo1 = new Volcengine.Vpc.Subnet("foo1", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = fooZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VpcId = fooVpc.Id,
});
var foo2 = new Volcengine.Vpc.Subnet("foo2", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.1.0/24",
ZoneId = fooZones.Apply(getZonesResult => getZonesResult.Zones[1]?.Id),
VpcId = fooVpc.Id,
});
var fooApigGateway = new Volcengine.Apig.ApigGateway("fooApigGateway", new()
{
Type = "standard",
Comments = "acc-test",
ProjectName = "default",
Tags = new[]
{
new Volcengine.Apig.Inputs.ApigGatewayTagArgs
{
Key = "k1",
Value = "v1",
},
},
NetworkSpec = new Volcengine.Apig.Inputs.ApigGatewayNetworkSpecArgs
{
VpcId = fooVpc.Id,
SubnetIds = new[]
{
foo1.Id,
foo2.Id,
},
},
ResourceSpec = new Volcengine.Apig.Inputs.ApigGatewayResourceSpecArgs
{
Replicas = 2,
InstanceSpecCode = "1c2g",
ClbSpecCode = "small_1",
PublicNetworkBillingType = "bandwidth",
PublicNetworkBandwidth = 1,
NetworkType = new Volcengine.Apig.Inputs.ApigGatewayResourceSpecNetworkTypeArgs
{
EnablePublicNetwork = true,
EnablePrivateNetwork = true,
},
},
LogSpec = new Volcengine.Apig.Inputs.ApigGatewayLogSpecArgs
{
Enable = true,
ProjectId = "d3cb87c0-faeb-4074-b1ee-9bd747865a76",
TopicId = "d339482e-d86d-4bd8-a9bb-f270417f00a1",
},
MonitorSpec = new Volcengine.Apig.Inputs.ApigGatewayMonitorSpecArgs
{
Enable = true,
WorkspaceId = "4ed1caf3-279d-4c5f-8301-87ea38e92ffc",
},
});
var fooApigGatewayService = new Volcengine.Apig.ApigGatewayService("fooApigGatewayService", new()
{
GatewayId = fooApigGateway.Id,
ServiceName = "acc-test-apig-service",
Comments = "acc-test",
Protocols = new[]
{
"HTTP",
"HTTPS",
},
AuthSpec = new Volcengine.Apig.Inputs.ApigGatewayServiceAuthSpecArgs
{
Enable = false,
},
});
var foo_fixed_ip = new Volcengine.Apig.ApigUpstream("foo-fixed-ip", new()
{
GatewayId = fooApigGateway.Id,
Comments = "acc-test",
ResourceType = "Console",
Protocol = "HTTP",
LoadBalancerSettings = new Volcengine.Apig.Inputs.ApigUpstreamLoadBalancerSettingsArgs
{
LbPolicy = "ConsistentHashLB",
ConsistentHashLb = new Volcengine.Apig.Inputs.ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs
{
HashKey = "HTTPCookie",
HttpCookie = new Volcengine.Apig.Inputs.ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs
{
Name = "test",
Path = "/",
Ttl = 300,
},
},
},
TlsSettings = new Volcengine.Apig.Inputs.ApigUpstreamTlsSettingsArgs
{
TlsMode = "SIMPLE",
Sni = "test",
},
CircuitBreakingSettings = new Volcengine.Apig.Inputs.ApigUpstreamCircuitBreakingSettingsArgs
{
Enable = false,
ConsecutiveErrors = 5,
Interval = 10000,
BaseEjectionTime = 30000,
MaxEjectionPercent = 20,
MinHealthPercent = 60,
},
SourceType = "FixedIP",
UpstreamSpec = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecArgs
{
FixedIpLists = new[]
{
new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecFixedIpListArgs
{
Ip = "172.16.0.10",
Port = 8080,
},
new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecFixedIpListArgs
{
Ip = "172.16.0.20",
Port = 8090,
},
},
},
});
var foo_vefaas = new Volcengine.Apig.ApigUpstream("foo-vefaas", new()
{
GatewayId = fooApigGateway.Id,
Comments = "acc-test",
ResourceType = "Console",
Protocol = "HTTP",
SourceType = "VeFaas",
UpstreamSpec = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecArgs
{
VeFaas = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecVeFaasArgs
{
FunctionId = "crnrfajj",
},
},
});
var foo_k8sApigUpstreamSource = new Volcengine.Apig.ApigUpstreamSource("foo-k8sApigUpstreamSource", new()
{
GatewayId = fooApigGateway.Id,
Comments = "acc-test-k8s",
SourceType = "K8S",
SourceSpec = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecArgs
{
K8sSource = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecK8sSourceArgs
{
ClusterId = "cd197sac4mpmnruh7um80",
},
},
IngressSettings = new[]
{
new Volcengine.Apig.Inputs.ApigUpstreamSourceIngressSettingArgs
{
EnableIngress = true,
UpdateStatus = true,
IngressClasses = new[]
{
"test",
},
WatchNamespaces = new[]
{
"default",
},
},
},
});
var foo_k8sApigUpstream = new Volcengine.Apig.ApigUpstream("foo-k8sApigUpstream", new()
{
GatewayId = fooApigGateway.Id,
Comments = "acc-test",
ResourceType = "Console",
Protocol = "HTTP",
LoadBalancerSettings = new Volcengine.Apig.Inputs.ApigUpstreamLoadBalancerSettingsArgs
{
LbPolicy = "ConsistentHashLB",
ConsistentHashLb = new Volcengine.Apig.Inputs.ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs
{
HashKey = "HTTPCookie",
HttpCookie = new Volcengine.Apig.Inputs.ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs
{
Name = "test",
Path = "/",
Ttl = 300,
},
},
},
TlsSettings = new Volcengine.Apig.Inputs.ApigUpstreamTlsSettingsArgs
{
TlsMode = "SIMPLE",
Sni = "test",
},
CircuitBreakingSettings = new Volcengine.Apig.Inputs.ApigUpstreamCircuitBreakingSettingsArgs
{
Enable = false,
ConsecutiveErrors = 5,
Interval = 10000,
BaseEjectionTime = 30000,
MaxEjectionPercent = 20,
MinHealthPercent = 60,
},
SourceType = "K8S",
UpstreamSpec = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecArgs
{
K8sService = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecK8sServiceArgs
{
Namespace = "default",
Name = "kubernetes",
Port = 443,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
foo_k8sApigUpstreamSource,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.GetZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.apig.ApigGateway;
import com.pulumi.volcengine.apig.ApigGatewayArgs;
import com.pulumi.volcengine.apig.inputs.ApigGatewayTagArgs;
import com.pulumi.volcengine.apig.inputs.ApigGatewayNetworkSpecArgs;
import com.pulumi.volcengine.apig.inputs.ApigGatewayResourceSpecArgs;
import com.pulumi.volcengine.apig.inputs.ApigGatewayResourceSpecNetworkTypeArgs;
import com.pulumi.volcengine.apig.inputs.ApigGatewayLogSpecArgs;
import com.pulumi.volcengine.apig.inputs.ApigGatewayMonitorSpecArgs;
import com.pulumi.volcengine.apig.ApigGatewayService;
import com.pulumi.volcengine.apig.ApigGatewayServiceArgs;
import com.pulumi.volcengine.apig.inputs.ApigGatewayServiceAuthSpecArgs;
import com.pulumi.volcengine.apig.ApigUpstream;
import com.pulumi.volcengine.apig.ApigUpstreamArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamLoadBalancerSettingsArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamTlsSettingsArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamCircuitBreakingSettingsArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamUpstreamSpecArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamUpstreamSpecVeFaasArgs;
import com.pulumi.volcengine.apig.ApigUpstreamSource;
import com.pulumi.volcengine.apig.ApigUpstreamSourceArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamSourceSourceSpecArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamSourceSourceSpecK8sSourceArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamSourceIngressSettingArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamUpstreamSpecK8sServiceArgs;
import com.pulumi.resources.CustomResourceOptions;
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 fooZones = EcsFunctions.getZones();
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var foo1 = new Subnet("foo1", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId(fooZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vpcId(fooVpc.id())
.build());
var foo2 = new Subnet("foo2", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.1.0/24")
.zoneId(fooZones.applyValue(getZonesResult -> getZonesResult.zones()[1].id()))
.vpcId(fooVpc.id())
.build());
var fooApigGateway = new ApigGateway("fooApigGateway", ApigGatewayArgs.builder()
.type("standard")
.comments("acc-test")
.projectName("default")
.tags(ApigGatewayTagArgs.builder()
.key("k1")
.value("v1")
.build())
.networkSpec(ApigGatewayNetworkSpecArgs.builder()
.vpcId(fooVpc.id())
.subnetIds(
foo1.id(),
foo2.id())
.build())
.resourceSpec(ApigGatewayResourceSpecArgs.builder()
.replicas(2)
.instanceSpecCode("1c2g")
.clbSpecCode("small_1")
.publicNetworkBillingType("bandwidth")
.publicNetworkBandwidth(1)
.networkType(ApigGatewayResourceSpecNetworkTypeArgs.builder()
.enablePublicNetwork(true)
.enablePrivateNetwork(true)
.build())
.build())
.logSpec(ApigGatewayLogSpecArgs.builder()
.enable(true)
.projectId("d3cb87c0-faeb-4074-b1ee-9bd747865a76")
.topicId("d339482e-d86d-4bd8-a9bb-f270417f00a1")
.build())
.monitorSpec(ApigGatewayMonitorSpecArgs.builder()
.enable(true)
.workspaceId("4ed1caf3-279d-4c5f-8301-87ea38e92ffc")
.build())
.build());
var fooApigGatewayService = new ApigGatewayService("fooApigGatewayService", ApigGatewayServiceArgs.builder()
.gatewayId(fooApigGateway.id())
.serviceName("acc-test-apig-service")
.comments("acc-test")
.protocols(
"HTTP",
"HTTPS")
.authSpec(ApigGatewayServiceAuthSpecArgs.builder()
.enable(false)
.build())
.build());
var foo_fixed_ip = new ApigUpstream("foo-fixed-ip", ApigUpstreamArgs.builder()
.gatewayId(fooApigGateway.id())
.comments("acc-test")
.resourceType("Console")
.protocol("HTTP")
.loadBalancerSettings(ApigUpstreamLoadBalancerSettingsArgs.builder()
.lbPolicy("ConsistentHashLB")
.consistentHashLb(ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs.builder()
.hashKey("HTTPCookie")
.httpCookie(ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs.builder()
.name("test")
.path("/")
.ttl(300)
.build())
.build())
.build())
.tlsSettings(ApigUpstreamTlsSettingsArgs.builder()
.tlsMode("SIMPLE")
.sni("test")
.build())
.circuitBreakingSettings(ApigUpstreamCircuitBreakingSettingsArgs.builder()
.enable(false)
.consecutiveErrors(5)
.interval(10000)
.baseEjectionTime(30000)
.maxEjectionPercent(20)
.minHealthPercent(60)
.build())
.sourceType("FixedIP")
.upstreamSpec(ApigUpstreamUpstreamSpecArgs.builder()
.fixedIpLists(
ApigUpstreamUpstreamSpecFixedIpListArgs.builder()
.ip("172.16.0.10")
.port(8080)
.build(),
ApigUpstreamUpstreamSpecFixedIpListArgs.builder()
.ip("172.16.0.20")
.port(8090)
.build())
.build())
.build());
var foo_vefaas = new ApigUpstream("foo-vefaas", ApigUpstreamArgs.builder()
.gatewayId(fooApigGateway.id())
.comments("acc-test")
.resourceType("Console")
.protocol("HTTP")
.sourceType("VeFaas")
.upstreamSpec(ApigUpstreamUpstreamSpecArgs.builder()
.veFaas(ApigUpstreamUpstreamSpecVeFaasArgs.builder()
.functionId("crnrfajj")
.build())
.build())
.build());
var foo_k8sApigUpstreamSource = new ApigUpstreamSource("foo-k8sApigUpstreamSource", ApigUpstreamSourceArgs.builder()
.gatewayId(fooApigGateway.id())
.comments("acc-test-k8s")
.sourceType("K8S")
.sourceSpec(ApigUpstreamSourceSourceSpecArgs.builder()
.k8sSource(ApigUpstreamSourceSourceSpecK8sSourceArgs.builder()
.clusterId("cd197sac4mpmnruh7um80")
.build())
.build())
.ingressSettings(ApigUpstreamSourceIngressSettingArgs.builder()
.enableIngress(true)
.updateStatus(true)
.ingressClasses("test")
.watchNamespaces("default")
.build())
.build());
var foo_k8sApigUpstream = new ApigUpstream("foo-k8sApigUpstream", ApigUpstreamArgs.builder()
.gatewayId(fooApigGateway.id())
.comments("acc-test")
.resourceType("Console")
.protocol("HTTP")
.loadBalancerSettings(ApigUpstreamLoadBalancerSettingsArgs.builder()
.lbPolicy("ConsistentHashLB")
.consistentHashLb(ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs.builder()
.hashKey("HTTPCookie")
.httpCookie(ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs.builder()
.name("test")
.path("/")
.ttl(300)
.build())
.build())
.build())
.tlsSettings(ApigUpstreamTlsSettingsArgs.builder()
.tlsMode("SIMPLE")
.sni("test")
.build())
.circuitBreakingSettings(ApigUpstreamCircuitBreakingSettingsArgs.builder()
.enable(false)
.consecutiveErrors(5)
.interval(10000)
.baseEjectionTime(30000)
.maxEjectionPercent(20)
.minHealthPercent(60)
.build())
.sourceType("K8S")
.upstreamSpec(ApigUpstreamUpstreamSpecArgs.builder()
.k8sService(ApigUpstreamUpstreamSpecK8sServiceArgs.builder()
.namespace("default")
.name("kubernetes")
.port(443)
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(foo_k8sApigUpstreamSource)
.build());
}
}
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
foo1:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: ${fooZones.zones[0].id}
vpcId: ${fooVpc.id}
foo2:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.1.0/24
zoneId: ${fooZones.zones[1].id}
vpcId: ${fooVpc.id}
fooApigGateway:
type: volcengine:apig:ApigGateway
properties:
type: standard
comments: acc-test
projectName: default
tags:
- key: k1
value: v1
networkSpec:
vpcId: ${fooVpc.id}
subnetIds:
- ${foo1.id}
- ${foo2.id}
resourceSpec:
replicas: 2
instanceSpecCode: 1c2g
clbSpecCode: small_1
publicNetworkBillingType: bandwidth
publicNetworkBandwidth: 1
networkType:
enablePublicNetwork: true
enablePrivateNetwork: true
logSpec:
enable: true
projectId: d3cb87c0-faeb-4074-b1ee-9bd747865a76
topicId: d339482e-d86d-4bd8-a9bb-f270417f00a1
monitorSpec:
enable: true
workspaceId: 4ed1caf3-279d-4c5f-8301-87ea38e92ffc
fooApigGatewayService:
type: volcengine:apig:ApigGatewayService
properties:
gatewayId: ${fooApigGateway.id}
serviceName: acc-test-apig-service
comments: acc-test
protocols:
- HTTP
- HTTPS
authSpec:
enable: false
foo-fixed-ip:
type: volcengine:apig:ApigUpstream
properties:
gatewayId: ${fooApigGateway.id}
comments: acc-test
resourceType: Console
protocol: HTTP
loadBalancerSettings:
lbPolicy: ConsistentHashLB
consistentHashLb:
hashKey: HTTPCookie
httpCookie:
name: test
path: /
ttl: 300
tlsSettings:
tlsMode: SIMPLE
sni: test
circuitBreakingSettings:
enable: false
consecutiveErrors: 5
interval: 10000
baseEjectionTime: 30000
maxEjectionPercent: 20
minHealthPercent: 60
sourceType: FixedIP
upstreamSpec:
fixedIpLists:
- ip: 172.16.0.10
port: 8080
- ip: 172.16.0.20
port: 8090
foo-vefaas:
type: volcengine:apig:ApigUpstream
properties:
gatewayId: ${fooApigGateway.id}
comments: acc-test
resourceType: Console
protocol: HTTP
sourceType: VeFaas
upstreamSpec:
veFaas:
functionId: crnrfajj
foo-k8sApigUpstreamSource:
type: volcengine:apig:ApigUpstreamSource
properties:
gatewayId: ${fooApigGateway.id}
comments: acc-test-k8s
sourceType: K8S
sourceSpec:
k8sSource:
clusterId: cd197sac4mpmnruh7um80
ingressSettings:
- enableIngress: true
updateStatus: true
ingressClasses:
- test
watchNamespaces:
- default
foo-k8sApigUpstream:
type: volcengine:apig:ApigUpstream
properties:
gatewayId: ${fooApigGateway.id}
comments: acc-test
resourceType: Console
protocol: HTTP
loadBalancerSettings:
lbPolicy: ConsistentHashLB
consistentHashLb:
hashKey: HTTPCookie
httpCookie:
name: test
path: /
ttl: 300
tlsSettings:
tlsMode: SIMPLE
sni: test
circuitBreakingSettings:
enable: false
consecutiveErrors: 5
interval: 10000
baseEjectionTime: 30000
maxEjectionPercent: 20
minHealthPercent: 60
sourceType: K8S
upstreamSpec:
k8sService:
namespace: default
name: kubernetes
port: 443
options:
dependson:
- ${["foo-k8sApigUpstreamSource"]}
variables:
fooZones:
fn::invoke:
Function: volcengine:ecs:getZones
Arguments: {}
Create ApigUpstream Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApigUpstream(name: string, args: ApigUpstreamArgs, opts?: CustomResourceOptions);
@overload
def ApigUpstream(resource_name: str,
args: ApigUpstreamArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApigUpstream(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
protocol: Optional[str] = None,
source_type: Optional[str] = None,
upstream_spec: Optional[ApigUpstreamUpstreamSpecArgs] = None,
circuit_breaking_settings: Optional[ApigUpstreamCircuitBreakingSettingsArgs] = None,
comments: Optional[str] = None,
load_balancer_settings: Optional[ApigUpstreamLoadBalancerSettingsArgs] = None,
name: Optional[str] = None,
resource_type: Optional[str] = None,
tls_settings: Optional[ApigUpstreamTlsSettingsArgs] = None)
func NewApigUpstream(ctx *Context, name string, args ApigUpstreamArgs, opts ...ResourceOption) (*ApigUpstream, error)
public ApigUpstream(string name, ApigUpstreamArgs args, CustomResourceOptions? opts = null)
public ApigUpstream(String name, ApigUpstreamArgs args)
public ApigUpstream(String name, ApigUpstreamArgs args, CustomResourceOptions options)
type: volcengine:apig:ApigUpstream
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 ApigUpstreamArgs
- 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 ApigUpstreamArgs
- 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 ApigUpstreamArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApigUpstreamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApigUpstreamArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var apigUpstreamResource = new Volcengine.Apig.ApigUpstream("apigUpstreamResource", new()
{
GatewayId = "string",
Protocol = "string",
SourceType = "string",
UpstreamSpec = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecArgs
{
AiProvider = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecAiProviderArgs
{
BaseUrl = "string",
Name = "string",
Token = "string",
CustomBodyParams =
{
{ "string", "string" },
},
CustomHeaderParams =
{
{ "string", "string" },
},
CustomModelService = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecAiProviderCustomModelServiceArgs
{
Name = "string",
Namespace = "string",
Port = 0,
},
},
Domain = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecDomainArgs
{
DomainList = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecDomainDomainListArgs
{
Domain = "string",
Port = 0,
},
Protocol = "string",
},
EcsLists = new[]
{
new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecEcsListArgs
{
EcsId = "string",
Ip = "string",
Port = 0,
},
},
FixedIpLists = new[]
{
new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecFixedIpListArgs
{
Ip = "string",
Port = 0,
},
},
K8sService = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecK8sServiceArgs
{
Name = "string",
Namespace = "string",
Port = 0,
},
NacosService = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecNacosServiceArgs
{
Group = "string",
Namespace = "string",
Service = "string",
UpstreamSourceId = "string",
NamespaceId = "string",
},
VeFaas = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecVeFaasArgs
{
FunctionId = "string",
},
VeMlp = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecVeMlpArgs
{
K8sService = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecVeMlpK8sServiceArgs
{
ClusterInfo = new Volcengine.Apig.Inputs.ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfoArgs
{
AccountId = 0,
ClusterName = "string",
},
Name = "string",
Namespace = "string",
Port = 0,
},
ServiceDiscoverType = "string",
ServiceId = "string",
ServiceName = "string",
ServiceUrl = "string",
UpstreamSourceId = "string",
},
},
CircuitBreakingSettings = new Volcengine.Apig.Inputs.ApigUpstreamCircuitBreakingSettingsArgs
{
Enable = false,
BaseEjectionTime = 0,
ConsecutiveErrors = 0,
Interval = 0,
MaxEjectionPercent = 0,
MinHealthPercent = 0,
},
Comments = "string",
LoadBalancerSettings = new Volcengine.Apig.Inputs.ApigUpstreamLoadBalancerSettingsArgs
{
LbPolicy = "string",
ConsistentHashLb = new Volcengine.Apig.Inputs.ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs
{
HashKey = "string",
HttpCookie = new Volcengine.Apig.Inputs.ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs
{
Name = "string",
Path = "string",
Ttl = 0,
},
HttpHeaderName = "string",
HttpQueryParameterName = "string",
UseSourceIp = false,
},
SimpleLb = "string",
WarmupDuration = 0,
},
Name = "string",
ResourceType = "string",
TlsSettings = new Volcengine.Apig.Inputs.ApigUpstreamTlsSettingsArgs
{
TlsMode = "string",
Sni = "string",
},
});
example, err := apig.NewApigUpstream(ctx, "apigUpstreamResource", &apig.ApigUpstreamArgs{
GatewayId: pulumi.String("string"),
Protocol: pulumi.String("string"),
SourceType: pulumi.String("string"),
UpstreamSpec: &apig.ApigUpstreamUpstreamSpecArgs{
AiProvider: &apig.ApigUpstreamUpstreamSpecAiProviderArgs{
BaseUrl: pulumi.String("string"),
Name: pulumi.String("string"),
Token: pulumi.String("string"),
CustomBodyParams: pulumi.StringMap{
"string": pulumi.String("string"),
},
CustomHeaderParams: pulumi.StringMap{
"string": pulumi.String("string"),
},
CustomModelService: &apig.ApigUpstreamUpstreamSpecAiProviderCustomModelServiceArgs{
Name: pulumi.String("string"),
Namespace: pulumi.String("string"),
Port: pulumi.Int(0),
},
},
Domain: &apig.ApigUpstreamUpstreamSpecDomainArgs{
DomainList: &apig.ApigUpstreamUpstreamSpecDomainDomainListArgs{
Domain: pulumi.String("string"),
Port: pulumi.Int(0),
},
Protocol: pulumi.String("string"),
},
EcsLists: apig.ApigUpstreamUpstreamSpecEcsListArray{
&apig.ApigUpstreamUpstreamSpecEcsListArgs{
EcsId: pulumi.String("string"),
Ip: pulumi.String("string"),
Port: pulumi.Int(0),
},
},
FixedIpLists: apig.ApigUpstreamUpstreamSpecFixedIpListArray{
&apig.ApigUpstreamUpstreamSpecFixedIpListArgs{
Ip: pulumi.String("string"),
Port: pulumi.Int(0),
},
},
K8sService: &apig.ApigUpstreamUpstreamSpecK8sServiceArgs{
Name: pulumi.String("string"),
Namespace: pulumi.String("string"),
Port: pulumi.Int(0),
},
NacosService: &apig.ApigUpstreamUpstreamSpecNacosServiceArgs{
Group: pulumi.String("string"),
Namespace: pulumi.String("string"),
Service: pulumi.String("string"),
UpstreamSourceId: pulumi.String("string"),
NamespaceId: pulumi.String("string"),
},
VeFaas: &apig.ApigUpstreamUpstreamSpecVeFaasArgs{
FunctionId: pulumi.String("string"),
},
VeMlp: &apig.ApigUpstreamUpstreamSpecVeMlpArgs{
K8sService: &apig.ApigUpstreamUpstreamSpecVeMlpK8sServiceArgs{
ClusterInfo: &apig.ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfoArgs{
AccountId: pulumi.Int(0),
ClusterName: pulumi.String("string"),
},
Name: pulumi.String("string"),
Namespace: pulumi.String("string"),
Port: pulumi.Int(0),
},
ServiceDiscoverType: pulumi.String("string"),
ServiceId: pulumi.String("string"),
ServiceName: pulumi.String("string"),
ServiceUrl: pulumi.String("string"),
UpstreamSourceId: pulumi.String("string"),
},
},
CircuitBreakingSettings: &apig.ApigUpstreamCircuitBreakingSettingsArgs{
Enable: pulumi.Bool(false),
BaseEjectionTime: pulumi.Int(0),
ConsecutiveErrors: pulumi.Int(0),
Interval: pulumi.Int(0),
MaxEjectionPercent: pulumi.Int(0),
MinHealthPercent: pulumi.Int(0),
},
Comments: pulumi.String("string"),
LoadBalancerSettings: &apig.ApigUpstreamLoadBalancerSettingsArgs{
LbPolicy: pulumi.String("string"),
ConsistentHashLb: &apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs{
HashKey: pulumi.String("string"),
HttpCookie: &apig.ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs{
Name: pulumi.String("string"),
Path: pulumi.String("string"),
Ttl: pulumi.Int(0),
},
HttpHeaderName: pulumi.String("string"),
HttpQueryParameterName: pulumi.String("string"),
UseSourceIp: pulumi.Bool(false),
},
SimpleLb: pulumi.String("string"),
WarmupDuration: pulumi.Int(0),
},
Name: pulumi.String("string"),
ResourceType: pulumi.String("string"),
TlsSettings: &apig.ApigUpstreamTlsSettingsArgs{
TlsMode: pulumi.String("string"),
Sni: pulumi.String("string"),
},
})
var apigUpstreamResource = new ApigUpstream("apigUpstreamResource", ApigUpstreamArgs.builder()
.gatewayId("string")
.protocol("string")
.sourceType("string")
.upstreamSpec(ApigUpstreamUpstreamSpecArgs.builder()
.aiProvider(ApigUpstreamUpstreamSpecAiProviderArgs.builder()
.baseUrl("string")
.name("string")
.token("string")
.customBodyParams(Map.of("string", "string"))
.customHeaderParams(Map.of("string", "string"))
.customModelService(ApigUpstreamUpstreamSpecAiProviderCustomModelServiceArgs.builder()
.name("string")
.namespace("string")
.port(0)
.build())
.build())
.domain(ApigUpstreamUpstreamSpecDomainArgs.builder()
.domainList(ApigUpstreamUpstreamSpecDomainDomainListArgs.builder()
.domain("string")
.port(0)
.build())
.protocol("string")
.build())
.ecsLists(ApigUpstreamUpstreamSpecEcsListArgs.builder()
.ecsId("string")
.ip("string")
.port(0)
.build())
.fixedIpLists(ApigUpstreamUpstreamSpecFixedIpListArgs.builder()
.ip("string")
.port(0)
.build())
.k8sService(ApigUpstreamUpstreamSpecK8sServiceArgs.builder()
.name("string")
.namespace("string")
.port(0)
.build())
.nacosService(ApigUpstreamUpstreamSpecNacosServiceArgs.builder()
.group("string")
.namespace("string")
.service("string")
.upstreamSourceId("string")
.namespaceId("string")
.build())
.veFaas(ApigUpstreamUpstreamSpecVeFaasArgs.builder()
.functionId("string")
.build())
.veMlp(ApigUpstreamUpstreamSpecVeMlpArgs.builder()
.k8sService(ApigUpstreamUpstreamSpecVeMlpK8sServiceArgs.builder()
.clusterInfo(ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfoArgs.builder()
.accountId(0)
.clusterName("string")
.build())
.name("string")
.namespace("string")
.port(0)
.build())
.serviceDiscoverType("string")
.serviceId("string")
.serviceName("string")
.serviceUrl("string")
.upstreamSourceId("string")
.build())
.build())
.circuitBreakingSettings(ApigUpstreamCircuitBreakingSettingsArgs.builder()
.enable(false)
.baseEjectionTime(0)
.consecutiveErrors(0)
.interval(0)
.maxEjectionPercent(0)
.minHealthPercent(0)
.build())
.comments("string")
.loadBalancerSettings(ApigUpstreamLoadBalancerSettingsArgs.builder()
.lbPolicy("string")
.consistentHashLb(ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs.builder()
.hashKey("string")
.httpCookie(ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs.builder()
.name("string")
.path("string")
.ttl(0)
.build())
.httpHeaderName("string")
.httpQueryParameterName("string")
.useSourceIp(false)
.build())
.simpleLb("string")
.warmupDuration(0)
.build())
.name("string")
.resourceType("string")
.tlsSettings(ApigUpstreamTlsSettingsArgs.builder()
.tlsMode("string")
.sni("string")
.build())
.build());
apig_upstream_resource = volcengine.apig.ApigUpstream("apigUpstreamResource",
gateway_id="string",
protocol="string",
source_type="string",
upstream_spec={
"ai_provider": {
"base_url": "string",
"name": "string",
"token": "string",
"custom_body_params": {
"string": "string",
},
"custom_header_params": {
"string": "string",
},
"custom_model_service": {
"name": "string",
"namespace": "string",
"port": 0,
},
},
"domain": {
"domain_list": {
"domain": "string",
"port": 0,
},
"protocol": "string",
},
"ecs_lists": [{
"ecs_id": "string",
"ip": "string",
"port": 0,
}],
"fixed_ip_lists": [{
"ip": "string",
"port": 0,
}],
"k8s_service": {
"name": "string",
"namespace": "string",
"port": 0,
},
"nacos_service": {
"group": "string",
"namespace": "string",
"service": "string",
"upstream_source_id": "string",
"namespace_id": "string",
},
"ve_faas": {
"function_id": "string",
},
"ve_mlp": {
"k8s_service": {
"cluster_info": {
"account_id": 0,
"cluster_name": "string",
},
"name": "string",
"namespace": "string",
"port": 0,
},
"service_discover_type": "string",
"service_id": "string",
"service_name": "string",
"service_url": "string",
"upstream_source_id": "string",
},
},
circuit_breaking_settings={
"enable": False,
"base_ejection_time": 0,
"consecutive_errors": 0,
"interval": 0,
"max_ejection_percent": 0,
"min_health_percent": 0,
},
comments="string",
load_balancer_settings={
"lb_policy": "string",
"consistent_hash_lb": {
"hash_key": "string",
"http_cookie": {
"name": "string",
"path": "string",
"ttl": 0,
},
"http_header_name": "string",
"http_query_parameter_name": "string",
"use_source_ip": False,
},
"simple_lb": "string",
"warmup_duration": 0,
},
name="string",
resource_type="string",
tls_settings={
"tls_mode": "string",
"sni": "string",
})
const apigUpstreamResource = new volcengine.apig.ApigUpstream("apigUpstreamResource", {
gatewayId: "string",
protocol: "string",
sourceType: "string",
upstreamSpec: {
aiProvider: {
baseUrl: "string",
name: "string",
token: "string",
customBodyParams: {
string: "string",
},
customHeaderParams: {
string: "string",
},
customModelService: {
name: "string",
namespace: "string",
port: 0,
},
},
domain: {
domainList: {
domain: "string",
port: 0,
},
protocol: "string",
},
ecsLists: [{
ecsId: "string",
ip: "string",
port: 0,
}],
fixedIpLists: [{
ip: "string",
port: 0,
}],
k8sService: {
name: "string",
namespace: "string",
port: 0,
},
nacosService: {
group: "string",
namespace: "string",
service: "string",
upstreamSourceId: "string",
namespaceId: "string",
},
veFaas: {
functionId: "string",
},
veMlp: {
k8sService: {
clusterInfo: {
accountId: 0,
clusterName: "string",
},
name: "string",
namespace: "string",
port: 0,
},
serviceDiscoverType: "string",
serviceId: "string",
serviceName: "string",
serviceUrl: "string",
upstreamSourceId: "string",
},
},
circuitBreakingSettings: {
enable: false,
baseEjectionTime: 0,
consecutiveErrors: 0,
interval: 0,
maxEjectionPercent: 0,
minHealthPercent: 0,
},
comments: "string",
loadBalancerSettings: {
lbPolicy: "string",
consistentHashLb: {
hashKey: "string",
httpCookie: {
name: "string",
path: "string",
ttl: 0,
},
httpHeaderName: "string",
httpQueryParameterName: "string",
useSourceIp: false,
},
simpleLb: "string",
warmupDuration: 0,
},
name: "string",
resourceType: "string",
tlsSettings: {
tlsMode: "string",
sni: "string",
},
});
type: volcengine:apig:ApigUpstream
properties:
circuitBreakingSettings:
baseEjectionTime: 0
consecutiveErrors: 0
enable: false
interval: 0
maxEjectionPercent: 0
minHealthPercent: 0
comments: string
gatewayId: string
loadBalancerSettings:
consistentHashLb:
hashKey: string
httpCookie:
name: string
path: string
ttl: 0
httpHeaderName: string
httpQueryParameterName: string
useSourceIp: false
lbPolicy: string
simpleLb: string
warmupDuration: 0
name: string
protocol: string
resourceType: string
sourceType: string
tlsSettings:
sni: string
tlsMode: string
upstreamSpec:
aiProvider:
baseUrl: string
customBodyParams:
string: string
customHeaderParams:
string: string
customModelService:
name: string
namespace: string
port: 0
name: string
token: string
domain:
domainList:
domain: string
port: 0
protocol: string
ecsLists:
- ecsId: string
ip: string
port: 0
fixedIpLists:
- ip: string
port: 0
k8sService:
name: string
namespace: string
port: 0
nacosService:
group: string
namespace: string
namespaceId: string
service: string
upstreamSourceId: string
veFaas:
functionId: string
veMlp:
k8sService:
clusterInfo:
accountId: 0
clusterName: string
name: string
namespace: string
port: 0
serviceDiscoverType: string
serviceId: string
serviceName: string
serviceUrl: string
upstreamSourceId: string
ApigUpstream 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 ApigUpstream resource accepts the following input properties:
- Gateway
Id string - The gateway id of the apig upstream.
- Protocol string
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - Source
Type string - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - Upstream
Spec ApigUpstream Upstream Spec - The upstream spec of apig upstream.
- Circuit
Breaking ApigSettings Upstream Circuit Breaking Settings - The circuit breaking settings of apig upstream.
- Comments string
- The comments of the apig upstream.
- Load
Balancer ApigSettings Upstream Load Balancer Settings - The load balancer settings of apig upstream.
- Name string
- The name of the apig upstream.
- Resource
Type string - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - Tls
Settings ApigUpstream Tls Settings - The tls settings of apig upstream.
- Gateway
Id string - The gateway id of the apig upstream.
- Protocol string
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - Source
Type string - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - Upstream
Spec ApigUpstream Upstream Spec Args - The upstream spec of apig upstream.
- Circuit
Breaking ApigSettings Upstream Circuit Breaking Settings Args - The circuit breaking settings of apig upstream.
- Comments string
- The comments of the apig upstream.
- Load
Balancer ApigSettings Upstream Load Balancer Settings Args - The load balancer settings of apig upstream.
- Name string
- The name of the apig upstream.
- Resource
Type string - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - Tls
Settings ApigUpstream Tls Settings Args - The tls settings of apig upstream.
- gateway
Id String - The gateway id of the apig upstream.
- protocol String
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - source
Type String - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - upstream
Spec ApigUpstream Upstream Spec - The upstream spec of apig upstream.
- circuit
Breaking ApigSettings Upstream Circuit Breaking Settings - The circuit breaking settings of apig upstream.
- comments String
- The comments of the apig upstream.
- load
Balancer ApigSettings Upstream Load Balancer Settings - The load balancer settings of apig upstream.
- name String
- The name of the apig upstream.
- resource
Type String - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - tls
Settings ApigUpstream Tls Settings - The tls settings of apig upstream.
- gateway
Id string - The gateway id of the apig upstream.
- protocol string
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - source
Type string - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - upstream
Spec ApigUpstream Upstream Spec - The upstream spec of apig upstream.
- circuit
Breaking ApigSettings Upstream Circuit Breaking Settings - The circuit breaking settings of apig upstream.
- comments string
- The comments of the apig upstream.
- load
Balancer ApigSettings Upstream Load Balancer Settings - The load balancer settings of apig upstream.
- name string
- The name of the apig upstream.
- resource
Type string - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - tls
Settings ApigUpstream Tls Settings - The tls settings of apig upstream.
- gateway_
id str - The gateway id of the apig upstream.
- protocol str
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - source_
type str - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - upstream_
spec ApigUpstream Upstream Spec Args - The upstream spec of apig upstream.
- circuit_
breaking_ Apigsettings Upstream Circuit Breaking Settings Args - The circuit breaking settings of apig upstream.
- comments str
- The comments of the apig upstream.
- load_
balancer_ Apigsettings Upstream Load Balancer Settings Args - The load balancer settings of apig upstream.
- name str
- The name of the apig upstream.
- resource_
type str - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - tls_
settings ApigUpstream Tls Settings Args - The tls settings of apig upstream.
- gateway
Id String - The gateway id of the apig upstream.
- protocol String
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - source
Type String - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - upstream
Spec Property Map - The upstream spec of apig upstream.
- circuit
Breaking Property MapSettings - The circuit breaking settings of apig upstream.
- comments String
- The comments of the apig upstream.
- load
Balancer Property MapSettings - The load balancer settings of apig upstream.
- name String
- The name of the apig upstream.
- resource
Type String - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - tls
Settings Property Map - The tls settings of apig upstream.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApigUpstream resource produces the following output properties:
- Create
Time string - The create time of apig upstream.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The update time of apig upstream version.
- Version
Details List<ApigUpstream Version Detail> - The version details of apig upstream.
- Create
Time string - The create time of apig upstream.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The update time of apig upstream version.
- Version
Details []ApigUpstream Version Detail - The version details of apig upstream.
- create
Time String - The create time of apig upstream.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The update time of apig upstream version.
- version
Details List<ApigUpstream Version Detail> - The version details of apig upstream.
- create
Time string - The create time of apig upstream.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - The update time of apig upstream version.
- version
Details ApigUpstream Version Detail[] - The version details of apig upstream.
- create_
time str - The create time of apig upstream.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - The update time of apig upstream version.
- version_
details Sequence[ApigUpstream Version Detail] - The version details of apig upstream.
- create
Time String - The create time of apig upstream.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The update time of apig upstream version.
- version
Details List<Property Map> - The version details of apig upstream.
Look up Existing ApigUpstream Resource
Get an existing ApigUpstream 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?: ApigUpstreamState, opts?: CustomResourceOptions): ApigUpstream
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
circuit_breaking_settings: Optional[ApigUpstreamCircuitBreakingSettingsArgs] = None,
comments: Optional[str] = None,
create_time: Optional[str] = None,
gateway_id: Optional[str] = None,
load_balancer_settings: Optional[ApigUpstreamLoadBalancerSettingsArgs] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
resource_type: Optional[str] = None,
source_type: Optional[str] = None,
tls_settings: Optional[ApigUpstreamTlsSettingsArgs] = None,
update_time: Optional[str] = None,
upstream_spec: Optional[ApigUpstreamUpstreamSpecArgs] = None,
version_details: Optional[Sequence[ApigUpstreamVersionDetailArgs]] = None) -> ApigUpstream
func GetApigUpstream(ctx *Context, name string, id IDInput, state *ApigUpstreamState, opts ...ResourceOption) (*ApigUpstream, error)
public static ApigUpstream Get(string name, Input<string> id, ApigUpstreamState? state, CustomResourceOptions? opts = null)
public static ApigUpstream get(String name, Output<String> id, ApigUpstreamState state, CustomResourceOptions options)
resources: _: type: volcengine:apig:ApigUpstream 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.
- Circuit
Breaking ApigSettings Upstream Circuit Breaking Settings - The circuit breaking settings of apig upstream.
- Comments string
- The comments of the apig upstream.
- Create
Time string - The create time of apig upstream.
- Gateway
Id string - The gateway id of the apig upstream.
- Load
Balancer ApigSettings Upstream Load Balancer Settings - The load balancer settings of apig upstream.
- Name string
- The name of the apig upstream.
- Protocol string
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - Resource
Type string - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - Source
Type string - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - Tls
Settings ApigUpstream Tls Settings - The tls settings of apig upstream.
- Update
Time string - The update time of apig upstream version.
- Upstream
Spec ApigUpstream Upstream Spec - The upstream spec of apig upstream.
- Version
Details List<ApigUpstream Version Detail> - The version details of apig upstream.
- Circuit
Breaking ApigSettings Upstream Circuit Breaking Settings Args - The circuit breaking settings of apig upstream.
- Comments string
- The comments of the apig upstream.
- Create
Time string - The create time of apig upstream.
- Gateway
Id string - The gateway id of the apig upstream.
- Load
Balancer ApigSettings Upstream Load Balancer Settings Args - The load balancer settings of apig upstream.
- Name string
- The name of the apig upstream.
- Protocol string
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - Resource
Type string - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - Source
Type string - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - Tls
Settings ApigUpstream Tls Settings Args - The tls settings of apig upstream.
- Update
Time string - The update time of apig upstream version.
- Upstream
Spec ApigUpstream Upstream Spec Args - The upstream spec of apig upstream.
- Version
Details []ApigUpstream Version Detail Args - The version details of apig upstream.
- circuit
Breaking ApigSettings Upstream Circuit Breaking Settings - The circuit breaking settings of apig upstream.
- comments String
- The comments of the apig upstream.
- create
Time String - The create time of apig upstream.
- gateway
Id String - The gateway id of the apig upstream.
- load
Balancer ApigSettings Upstream Load Balancer Settings - The load balancer settings of apig upstream.
- name String
- The name of the apig upstream.
- protocol String
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - resource
Type String - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - source
Type String - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - tls
Settings ApigUpstream Tls Settings - The tls settings of apig upstream.
- update
Time String - The update time of apig upstream version.
- upstream
Spec ApigUpstream Upstream Spec - The upstream spec of apig upstream.
- version
Details List<ApigUpstream Version Detail> - The version details of apig upstream.
- circuit
Breaking ApigSettings Upstream Circuit Breaking Settings - The circuit breaking settings of apig upstream.
- comments string
- The comments of the apig upstream.
- create
Time string - The create time of apig upstream.
- gateway
Id string - The gateway id of the apig upstream.
- load
Balancer ApigSettings Upstream Load Balancer Settings - The load balancer settings of apig upstream.
- name string
- The name of the apig upstream.
- protocol string
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - resource
Type string - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - source
Type string - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - tls
Settings ApigUpstream Tls Settings - The tls settings of apig upstream.
- update
Time string - The update time of apig upstream version.
- upstream
Spec ApigUpstream Upstream Spec - The upstream spec of apig upstream.
- version
Details ApigUpstream Version Detail[] - The version details of apig upstream.
- circuit_
breaking_ Apigsettings Upstream Circuit Breaking Settings Args - The circuit breaking settings of apig upstream.
- comments str
- The comments of the apig upstream.
- create_
time str - The create time of apig upstream.
- gateway_
id str - The gateway id of the apig upstream.
- load_
balancer_ Apigsettings Upstream Load Balancer Settings Args - The load balancer settings of apig upstream.
- name str
- The name of the apig upstream.
- protocol str
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - resource_
type str - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - source_
type str - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - tls_
settings ApigUpstream Tls Settings Args - The tls settings of apig upstream.
- update_
time str - The update time of apig upstream version.
- upstream_
spec ApigUpstream Upstream Spec Args - The upstream spec of apig upstream.
- version_
details Sequence[ApigUpstream Version Detail Args] - The version details of apig upstream.
- circuit
Breaking Property MapSettings - The circuit breaking settings of apig upstream.
- comments String
- The comments of the apig upstream.
- create
Time String - The create time of apig upstream.
- gateway
Id String - The gateway id of the apig upstream.
- load
Balancer Property MapSettings - The load balancer settings of apig upstream.
- name String
- The name of the apig upstream.
- protocol String
- The protocol of the apig upstream. Valid values:
HTTP
,HTTP2
,GRPC
. - resource
Type String - The resource type of the apig upstream. Valid values:
Console
,Ingress
. - source
Type String - The source type of the apig upstream. Valid values:
VeFaas
,ECS
,FixedIP
,K8S
,Nacos
,Domain
,AIProvider
,VeMLP
. - tls
Settings Property Map - The tls settings of apig upstream.
- update
Time String - The update time of apig upstream version.
- upstream
Spec Property Map - The upstream spec of apig upstream.
- version
Details List<Property Map> - The version details of apig upstream.
Supporting Types
ApigUpstreamCircuitBreakingSettings, ApigUpstreamCircuitBreakingSettingsArgs
- Enable bool
- Whether the circuit breaking is enabled.
- Base
Ejection intTime - The base ejection time of circuit breaking. Unit: ms. Default is 10s.
- Consecutive
Errors int - The consecutive errors of circuit breaking. Default is 5.
- Interval int
- The interval of circuit breaking. Unit: ms. Default is 10s.
- Max
Ejection intPercent - The max ejection percent of circuit breaking. Default is 20%.
- Min
Health intPercent - The min health percent of circuit breaking. Default is 60%.
- Enable bool
- Whether the circuit breaking is enabled.
- Base
Ejection intTime - The base ejection time of circuit breaking. Unit: ms. Default is 10s.
- Consecutive
Errors int - The consecutive errors of circuit breaking. Default is 5.
- Interval int
- The interval of circuit breaking. Unit: ms. Default is 10s.
- Max
Ejection intPercent - The max ejection percent of circuit breaking. Default is 20%.
- Min
Health intPercent - The min health percent of circuit breaking. Default is 60%.
- enable Boolean
- Whether the circuit breaking is enabled.
- base
Ejection IntegerTime - The base ejection time of circuit breaking. Unit: ms. Default is 10s.
- consecutive
Errors Integer - The consecutive errors of circuit breaking. Default is 5.
- interval Integer
- The interval of circuit breaking. Unit: ms. Default is 10s.
- max
Ejection IntegerPercent - The max ejection percent of circuit breaking. Default is 20%.
- min
Health IntegerPercent - The min health percent of circuit breaking. Default is 60%.
- enable boolean
- Whether the circuit breaking is enabled.
- base
Ejection numberTime - The base ejection time of circuit breaking. Unit: ms. Default is 10s.
- consecutive
Errors number - The consecutive errors of circuit breaking. Default is 5.
- interval number
- The interval of circuit breaking. Unit: ms. Default is 10s.
- max
Ejection numberPercent - The max ejection percent of circuit breaking. Default is 20%.
- min
Health numberPercent - The min health percent of circuit breaking. Default is 60%.
- enable bool
- Whether the circuit breaking is enabled.
- base_
ejection_ inttime - The base ejection time of circuit breaking. Unit: ms. Default is 10s.
- consecutive_
errors int - The consecutive errors of circuit breaking. Default is 5.
- interval int
- The interval of circuit breaking. Unit: ms. Default is 10s.
- max_
ejection_ intpercent - The max ejection percent of circuit breaking. Default is 20%.
- min_
health_ intpercent - The min health percent of circuit breaking. Default is 60%.
- enable Boolean
- Whether the circuit breaking is enabled.
- base
Ejection NumberTime - The base ejection time of circuit breaking. Unit: ms. Default is 10s.
- consecutive
Errors Number - The consecutive errors of circuit breaking. Default is 5.
- interval Number
- The interval of circuit breaking. Unit: ms. Default is 10s.
- max
Ejection NumberPercent - The max ejection percent of circuit breaking. Default is 20%.
- min
Health NumberPercent - The min health percent of circuit breaking. Default is 60%.
ApigUpstreamLoadBalancerSettings, ApigUpstreamLoadBalancerSettingsArgs
- Lb
Policy string - The load balancer policy of apig upstream. Valid values:
SimpleLB
,ConsistentHashLB
. - Consistent
Hash ApigLb Upstream Load Balancer Settings Consistent Hash Lb - The consistent hash lb of apig upstream.
- Simple
Lb string - The simple load balancer of apig upstream. Valid values:
ROUND_ROBIN
,LEAST_CONN
,RANDOM
. - Warmup
Duration int - The warmup duration of apig upstream lb. This field is valid when the simple_lb is
ROUND_ROBIN
orLEAST_CONN
.
- Lb
Policy string - The load balancer policy of apig upstream. Valid values:
SimpleLB
,ConsistentHashLB
. - Consistent
Hash ApigLb Upstream Load Balancer Settings Consistent Hash Lb - The consistent hash lb of apig upstream.
- Simple
Lb string - The simple load balancer of apig upstream. Valid values:
ROUND_ROBIN
,LEAST_CONN
,RANDOM
. - Warmup
Duration int - The warmup duration of apig upstream lb. This field is valid when the simple_lb is
ROUND_ROBIN
orLEAST_CONN
.
- lb
Policy String - The load balancer policy of apig upstream. Valid values:
SimpleLB
,ConsistentHashLB
. - consistent
Hash ApigLb Upstream Load Balancer Settings Consistent Hash Lb - The consistent hash lb of apig upstream.
- simple
Lb String - The simple load balancer of apig upstream. Valid values:
ROUND_ROBIN
,LEAST_CONN
,RANDOM
. - warmup
Duration Integer - The warmup duration of apig upstream lb. This field is valid when the simple_lb is
ROUND_ROBIN
orLEAST_CONN
.
- lb
Policy string - The load balancer policy of apig upstream. Valid values:
SimpleLB
,ConsistentHashLB
. - consistent
Hash ApigLb Upstream Load Balancer Settings Consistent Hash Lb - The consistent hash lb of apig upstream.
- simple
Lb string - The simple load balancer of apig upstream. Valid values:
ROUND_ROBIN
,LEAST_CONN
,RANDOM
. - warmup
Duration number - The warmup duration of apig upstream lb. This field is valid when the simple_lb is
ROUND_ROBIN
orLEAST_CONN
.
- lb_
policy str - The load balancer policy of apig upstream. Valid values:
SimpleLB
,ConsistentHashLB
. - consistent_
hash_ Apiglb Upstream Load Balancer Settings Consistent Hash Lb - The consistent hash lb of apig upstream.
- simple_
lb str - The simple load balancer of apig upstream. Valid values:
ROUND_ROBIN
,LEAST_CONN
,RANDOM
. - warmup_
duration int - The warmup duration of apig upstream lb. This field is valid when the simple_lb is
ROUND_ROBIN
orLEAST_CONN
.
- lb
Policy String - The load balancer policy of apig upstream. Valid values:
SimpleLB
,ConsistentHashLB
. - consistent
Hash Property MapLb - The consistent hash lb of apig upstream.
- simple
Lb String - The simple load balancer of apig upstream. Valid values:
ROUND_ROBIN
,LEAST_CONN
,RANDOM
. - warmup
Duration Number - The warmup duration of apig upstream lb. This field is valid when the simple_lb is
ROUND_ROBIN
orLEAST_CONN
.
ApigUpstreamLoadBalancerSettingsConsistentHashLb, ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs
- Hash
Key string - The hash key of apig upstream consistent hash lb. Valid values:
HTTPCookie
,HttpHeaderName
,HttpQueryParameterName
,UseSourceIp
. - Apig
Upstream Load Balancer Settings Consistent Hash Lb Http Cookie - The http cookie of apig upstream consistent hash lb.
- Http
Header stringName - The http header name of apig upstream consistent hash lb.
- Http
Query stringParameter Name - The http query parameter name of apig upstream consistent hash lb.
- Use
Source boolIp - The use source ip of apig upstream consistent hash lb.
- Hash
Key string - The hash key of apig upstream consistent hash lb. Valid values:
HTTPCookie
,HttpHeaderName
,HttpQueryParameterName
,UseSourceIp
. - Apig
Upstream Load Balancer Settings Consistent Hash Lb Http Cookie - The http cookie of apig upstream consistent hash lb.
- Http
Header stringName - The http header name of apig upstream consistent hash lb.
- Http
Query stringParameter Name - The http query parameter name of apig upstream consistent hash lb.
- Use
Source boolIp - The use source ip of apig upstream consistent hash lb.
- hash
Key String - The hash key of apig upstream consistent hash lb. Valid values:
HTTPCookie
,HttpHeaderName
,HttpQueryParameterName
,UseSourceIp
. - Apig
Upstream Load Balancer Settings Consistent Hash Lb Http Cookie - The http cookie of apig upstream consistent hash lb.
- http
Header StringName - The http header name of apig upstream consistent hash lb.
- http
Query StringParameter Name - The http query parameter name of apig upstream consistent hash lb.
- use
Source BooleanIp - The use source ip of apig upstream consistent hash lb.
- hash
Key string - The hash key of apig upstream consistent hash lb. Valid values:
HTTPCookie
,HttpHeaderName
,HttpQueryParameterName
,UseSourceIp
. - Apig
Upstream Load Balancer Settings Consistent Hash Lb Http Cookie - The http cookie of apig upstream consistent hash lb.
- http
Header stringName - The http header name of apig upstream consistent hash lb.
- http
Query stringParameter Name - The http query parameter name of apig upstream consistent hash lb.
- use
Source booleanIp - The use source ip of apig upstream consistent hash lb.
- hash_
key str - The hash key of apig upstream consistent hash lb. Valid values:
HTTPCookie
,HttpHeaderName
,HttpQueryParameterName
,UseSourceIp
. - Apig
Upstream Load Balancer Settings Consistent Hash Lb Http Cookie - The http cookie of apig upstream consistent hash lb.
- http_
header_ strname - The http header name of apig upstream consistent hash lb.
- http_
query_ strparameter_ name - The http query parameter name of apig upstream consistent hash lb.
- use_
source_ boolip - The use source ip of apig upstream consistent hash lb.
- hash
Key String - The hash key of apig upstream consistent hash lb. Valid values:
HTTPCookie
,HttpHeaderName
,HttpQueryParameterName
,UseSourceIp
. - Property Map
- The http cookie of apig upstream consistent hash lb.
- http
Header StringName - The http header name of apig upstream consistent hash lb.
- http
Query StringParameter Name - The http query parameter name of apig upstream consistent hash lb.
- use
Source BooleanIp - The use source ip of apig upstream consistent hash lb.
ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookie, ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs
ApigUpstreamTlsSettings, ApigUpstreamTlsSettingsArgs
ApigUpstreamUpstreamSpec, ApigUpstreamUpstreamSpecArgs
- Ai
Provider ApigUpstream Upstream Spec Ai Provider - The ai provider of apig upstream.
- Domain
Apig
Upstream Upstream Spec Domain - The domain of apig upstream.
- Ecs
Lists List<ApigUpstream Upstream Spec Ecs List> - The ecs list of apig upstream.
- Fixed
Ip List<ApigLists Upstream Upstream Spec Fixed Ip List> - The fixed ip list of apig upstream.
- K8s
Service ApigUpstream Upstream Spec K8s Service - The k8s service of apig upstream.
- Nacos
Service ApigUpstream Upstream Spec Nacos Service - The nacos service of apig upstream.
- Ve
Faas ApigUpstream Upstream Spec Ve Faas - The vefaas of apig upstream.
- Ve
Mlp ApigUpstream Upstream Spec Ve Mlp - The mlp of apig upstream.
- Ai
Provider ApigUpstream Upstream Spec Ai Provider - The ai provider of apig upstream.
- Domain
Apig
Upstream Upstream Spec Domain - The domain of apig upstream.
- Ecs
Lists []ApigUpstream Upstream Spec Ecs List - The ecs list of apig upstream.
- Fixed
Ip []ApigLists Upstream Upstream Spec Fixed Ip List - The fixed ip list of apig upstream.
- K8s
Service ApigUpstream Upstream Spec K8s Service - The k8s service of apig upstream.
- Nacos
Service ApigUpstream Upstream Spec Nacos Service - The nacos service of apig upstream.
- Ve
Faas ApigUpstream Upstream Spec Ve Faas - The vefaas of apig upstream.
- Ve
Mlp ApigUpstream Upstream Spec Ve Mlp - The mlp of apig upstream.
- ai
Provider ApigUpstream Upstream Spec Ai Provider - The ai provider of apig upstream.
- domain
Apig
Upstream Upstream Spec Domain - The domain of apig upstream.
- ecs
Lists List<ApigUpstream Upstream Spec Ecs List> - The ecs list of apig upstream.
- fixed
Ip List<ApigLists Upstream Upstream Spec Fixed Ip List> - The fixed ip list of apig upstream.
- k8s
Service ApigUpstream Upstream Spec K8s Service - The k8s service of apig upstream.
- nacos
Service ApigUpstream Upstream Spec Nacos Service - The nacos service of apig upstream.
- ve
Faas ApigUpstream Upstream Spec Ve Faas - The vefaas of apig upstream.
- ve
Mlp ApigUpstream Upstream Spec Ve Mlp - The mlp of apig upstream.
- ai
Provider ApigUpstream Upstream Spec Ai Provider - The ai provider of apig upstream.
- domain
Apig
Upstream Upstream Spec Domain - The domain of apig upstream.
- ecs
Lists ApigUpstream Upstream Spec Ecs List[] - The ecs list of apig upstream.
- fixed
Ip ApigLists Upstream Upstream Spec Fixed Ip List[] - The fixed ip list of apig upstream.
- k8s
Service ApigUpstream Upstream Spec K8s Service - The k8s service of apig upstream.
- nacos
Service ApigUpstream Upstream Spec Nacos Service - The nacos service of apig upstream.
- ve
Faas ApigUpstream Upstream Spec Ve Faas - The vefaas of apig upstream.
- ve
Mlp ApigUpstream Upstream Spec Ve Mlp - The mlp of apig upstream.
- ai_
provider ApigUpstream Upstream Spec Ai Provider - The ai provider of apig upstream.
- domain
Apig
Upstream Upstream Spec Domain - The domain of apig upstream.
- ecs_
lists Sequence[ApigUpstream Upstream Spec Ecs List] - The ecs list of apig upstream.
- fixed_
ip_ Sequence[Apiglists Upstream Upstream Spec Fixed Ip List] - The fixed ip list of apig upstream.
- k8s_
service ApigUpstream Upstream Spec K8s Service - The k8s service of apig upstream.
- nacos_
service ApigUpstream Upstream Spec Nacos Service - The nacos service of apig upstream.
- ve_
faas ApigUpstream Upstream Spec Ve Faas - The vefaas of apig upstream.
- ve_
mlp ApigUpstream Upstream Spec Ve Mlp - The mlp of apig upstream.
- ai
Provider Property Map - The ai provider of apig upstream.
- domain Property Map
- The domain of apig upstream.
- ecs
Lists List<Property Map> - The ecs list of apig upstream.
- fixed
Ip List<Property Map>Lists - The fixed ip list of apig upstream.
- k8s
Service Property Map - The k8s service of apig upstream.
- nacos
Service Property Map - The nacos service of apig upstream.
- ve
Faas Property Map - The vefaas of apig upstream.
- ve
Mlp Property Map - The mlp of apig upstream.
ApigUpstreamUpstreamSpecAiProvider, ApigUpstreamUpstreamSpecAiProviderArgs
- Base
Url string - The base url of ai provider.
- Name string
- The name of ai provider.
- Token string
- The token of ai provider.
- Custom
Body Dictionary<string, string>Params - The custom body params of ai provider.
- Custom
Header Dictionary<string, string>Params - The custom header params of ai provider.
- Custom
Model ApigService Upstream Upstream Spec Ai Provider Custom Model Service - The custom model service of ai provider.
- Base
Url string - The base url of ai provider.
- Name string
- The name of ai provider.
- Token string
- The token of ai provider.
- Custom
Body map[string]stringParams - The custom body params of ai provider.
- Custom
Header map[string]stringParams - The custom header params of ai provider.
- Custom
Model ApigService Upstream Upstream Spec Ai Provider Custom Model Service - The custom model service of ai provider.
- base
Url String - The base url of ai provider.
- name String
- The name of ai provider.
- token String
- The token of ai provider.
- custom
Body Map<String,String>Params - The custom body params of ai provider.
- custom
Header Map<String,String>Params - The custom header params of ai provider.
- custom
Model ApigService Upstream Upstream Spec Ai Provider Custom Model Service - The custom model service of ai provider.
- base
Url string - The base url of ai provider.
- name string
- The name of ai provider.
- token string
- The token of ai provider.
- custom
Body {[key: string]: string}Params - The custom body params of ai provider.
- custom
Header {[key: string]: string}Params - The custom header params of ai provider.
- custom
Model ApigService Upstream Upstream Spec Ai Provider Custom Model Service - The custom model service of ai provider.
- base_
url str - The base url of ai provider.
- name str
- The name of ai provider.
- token str
- The token of ai provider.
- custom_
body_ Mapping[str, str]params - The custom body params of ai provider.
- custom_
header_ Mapping[str, str]params - The custom header params of ai provider.
- custom_
model_ Apigservice Upstream Upstream Spec Ai Provider Custom Model Service - The custom model service of ai provider.
- base
Url String - The base url of ai provider.
- name String
- The name of ai provider.
- token String
- The token of ai provider.
- custom
Body Map<String>Params - The custom body params of ai provider.
- custom
Header Map<String>Params - The custom header params of ai provider.
- custom
Model Property MapService - The custom model service of ai provider.
ApigUpstreamUpstreamSpecAiProviderCustomModelService, ApigUpstreamUpstreamSpecAiProviderCustomModelServiceArgs
ApigUpstreamUpstreamSpecDomain, ApigUpstreamUpstreamSpecDomainArgs
- Domain
List ApigUpstream Upstream Spec Domain Domain List - The domain list of apig upstream.
- Protocol string
- The protocol of apig upstream. Valid values:
HTTP
,HTTPS
.
- Domain
List ApigUpstream Upstream Spec Domain Domain List - The domain list of apig upstream.
- Protocol string
- The protocol of apig upstream. Valid values:
HTTP
,HTTPS
.
- domain
List ApigUpstream Upstream Spec Domain Domain List - The domain list of apig upstream.
- protocol String
- The protocol of apig upstream. Valid values:
HTTP
,HTTPS
.
- domain
List ApigUpstream Upstream Spec Domain Domain List - The domain list of apig upstream.
- protocol string
- The protocol of apig upstream. Valid values:
HTTP
,HTTPS
.
- domain_
list ApigUpstream Upstream Spec Domain Domain List - The domain list of apig upstream.
- protocol str
- The protocol of apig upstream. Valid values:
HTTP
,HTTPS
.
- domain
List Property Map - The domain list of apig upstream.
- protocol String
- The protocol of apig upstream. Valid values:
HTTP
,HTTPS
.
ApigUpstreamUpstreamSpecDomainDomainList, ApigUpstreamUpstreamSpecDomainDomainListArgs
ApigUpstreamUpstreamSpecEcsList, ApigUpstreamUpstreamSpecEcsListArgs
ApigUpstreamUpstreamSpecFixedIpList, ApigUpstreamUpstreamSpecFixedIpListArgs
ApigUpstreamUpstreamSpecK8sService, ApigUpstreamUpstreamSpecK8sServiceArgs
ApigUpstreamUpstreamSpecNacosService, ApigUpstreamUpstreamSpecNacosServiceArgs
- Group string
- The group of nacos service.
- Namespace string
- The namespace of nacos service.
- Service string
- The service of nacos service.
- Upstream
Source stringId - The upstream source id.
- Namespace
Id string - The namespace id of nacos service.
- Group string
- The group of nacos service.
- Namespace string
- The namespace of nacos service.
- Service string
- The service of nacos service.
- Upstream
Source stringId - The upstream source id.
- Namespace
Id string - The namespace id of nacos service.
- group String
- The group of nacos service.
- namespace String
- The namespace of nacos service.
- service String
- The service of nacos service.
- upstream
Source StringId - The upstream source id.
- namespace
Id String - The namespace id of nacos service.
- group string
- The group of nacos service.
- namespace string
- The namespace of nacos service.
- service string
- The service of nacos service.
- upstream
Source stringId - The upstream source id.
- namespace
Id string - The namespace id of nacos service.
- group str
- The group of nacos service.
- namespace str
- The namespace of nacos service.
- service str
- The service of nacos service.
- upstream_
source_ strid - The upstream source id.
- namespace_
id str - The namespace id of nacos service.
- group String
- The group of nacos service.
- namespace String
- The namespace of nacos service.
- service String
- The service of nacos service.
- upstream
Source StringId - The upstream source id.
- namespace
Id String - The namespace id of nacos service.
ApigUpstreamUpstreamSpecVeFaas, ApigUpstreamUpstreamSpecVeFaasArgs
- Function
Id string - The function id of vefaas.
- Function
Id string - The function id of vefaas.
- function
Id String - The function id of vefaas.
- function
Id string - The function id of vefaas.
- function_
id str - The function id of vefaas.
- function
Id String - The function id of vefaas.
ApigUpstreamUpstreamSpecVeMlp, ApigUpstreamUpstreamSpecVeMlpArgs
- K8s
Service ApigUpstream Upstream Spec Ve Mlp K8s Service - The k8s service of mlp.
- Service
Discover stringType - The service discover type of mlp.
- Service
Id string - The service id of mlp.
- Service
Name string - The service name of mlp.
- Service
Url string - The service url of mlp.
- Upstream
Source stringId - The upstream source id.
- K8s
Service ApigUpstream Upstream Spec Ve Mlp K8s Service - The k8s service of mlp.
- Service
Discover stringType - The service discover type of mlp.
- Service
Id string - The service id of mlp.
- Service
Name string - The service name of mlp.
- Service
Url string - The service url of mlp.
- Upstream
Source stringId - The upstream source id.
- k8s
Service ApigUpstream Upstream Spec Ve Mlp K8s Service - The k8s service of mlp.
- service
Discover StringType - The service discover type of mlp.
- service
Id String - The service id of mlp.
- service
Name String - The service name of mlp.
- service
Url String - The service url of mlp.
- upstream
Source StringId - The upstream source id.
- k8s
Service ApigUpstream Upstream Spec Ve Mlp K8s Service - The k8s service of mlp.
- service
Discover stringType - The service discover type of mlp.
- service
Id string - The service id of mlp.
- service
Name string - The service name of mlp.
- service
Url string - The service url of mlp.
- upstream
Source stringId - The upstream source id.
- k8s_
service ApigUpstream Upstream Spec Ve Mlp K8s Service - The k8s service of mlp.
- service_
discover_ strtype - The service discover type of mlp.
- service_
id str - The service id of mlp.
- service_
name str - The service name of mlp.
- service_
url str - The service url of mlp.
- upstream_
source_ strid - The upstream source id.
- k8s
Service Property Map - The k8s service of mlp.
- service
Discover StringType - The service discover type of mlp.
- service
Id String - The service id of mlp.
- service
Name String - The service name of mlp.
- service
Url String - The service url of mlp.
- upstream
Source StringId - The upstream source id.
ApigUpstreamUpstreamSpecVeMlpK8sService, ApigUpstreamUpstreamSpecVeMlpK8sServiceArgs
- Cluster
Info ApigUpstream Upstream Spec Ve Mlp K8s Service Cluster Info - The cluster info of k8s service.
- Name string
- The name of k8s service.
- Namespace string
- The namespace of k8s service.
- Port int
- The port of k8s service.
- Cluster
Info ApigUpstream Upstream Spec Ve Mlp K8s Service Cluster Info - The cluster info of k8s service.
- Name string
- The name of k8s service.
- Namespace string
- The namespace of k8s service.
- Port int
- The port of k8s service.
- cluster
Info ApigUpstream Upstream Spec Ve Mlp K8s Service Cluster Info - The cluster info of k8s service.
- name String
- The name of k8s service.
- namespace String
- The namespace of k8s service.
- port Integer
- The port of k8s service.
- cluster
Info ApigUpstream Upstream Spec Ve Mlp K8s Service Cluster Info - The cluster info of k8s service.
- name string
- The name of k8s service.
- namespace string
- The namespace of k8s service.
- port number
- The port of k8s service.
- cluster_
info ApigUpstream Upstream Spec Ve Mlp K8s Service Cluster Info - The cluster info of k8s service.
- name str
- The name of k8s service.
- namespace str
- The namespace of k8s service.
- port int
- The port of k8s service.
- cluster
Info Property Map - The cluster info of k8s service.
- name String
- The name of k8s service.
- namespace String
- The namespace of k8s service.
- port Number
- The port of k8s service.
ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfo, ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfoArgs
- Account
Id int - The account id of k8s service.
- Cluster
Name string - The cluster name of k8s service.
- Account
Id int - The account id of k8s service.
- Cluster
Name string - The cluster name of k8s service.
- account
Id Integer - The account id of k8s service.
- cluster
Name String - The cluster name of k8s service.
- account
Id number - The account id of k8s service.
- cluster
Name string - The cluster name of k8s service.
- account_
id int - The account id of k8s service.
- cluster_
name str - The cluster name of k8s service.
- account
Id Number - The account id of k8s service.
- cluster
Name String - The cluster name of k8s service.
ApigUpstreamVersionDetail, ApigUpstreamVersionDetailArgs
- Labels
List<Apig
Upstream Version Detail Label> - The labels of apig upstream version.
- Name string
- The name of the apig upstream.
- Update
Time string - The update time of apig upstream version.
- Labels
[]Apig
Upstream Version Detail Label - The labels of apig upstream version.
- Name string
- The name of the apig upstream.
- Update
Time string - The update time of apig upstream version.
- labels
List<Apig
Upstream Version Detail Label> - The labels of apig upstream version.
- name String
- The name of the apig upstream.
- update
Time String - The update time of apig upstream version.
- labels
Apig
Upstream Version Detail Label[] - The labels of apig upstream version.
- name string
- The name of the apig upstream.
- update
Time string - The update time of apig upstream version.
- labels
Sequence[Apig
Upstream Version Detail Label] - The labels of apig upstream version.
- name str
- The name of the apig upstream.
- update_
time str - The update time of apig upstream version.
- labels List<Property Map>
- The labels of apig upstream version.
- name String
- The name of the apig upstream.
- update
Time String - The update time of apig upstream version.
ApigUpstreamVersionDetailLabel, ApigUpstreamVersionDetailLabelArgs
Import
ApigUpstream can be imported using the id, e.g.
$ pulumi import volcengine:apig/apigUpstream:ApigUpstream default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.