1. Packages
  2. Volcengine
  3. API Docs
  4. apig
  5. ApigUpstream
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

volcengine.apig.ApigUpstream

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

    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:

    GatewayId string
    The gateway id of the apig upstream.
    Protocol string
    The protocol of the apig upstream. Valid values: HTTP, HTTP2, GRPC.
    SourceType string
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    UpstreamSpec ApigUpstreamUpstreamSpec
    The upstream spec of apig upstream.
    CircuitBreakingSettings ApigUpstreamCircuitBreakingSettings
    The circuit breaking settings of apig upstream.
    Comments string
    The comments of the apig upstream.
    LoadBalancerSettings ApigUpstreamLoadBalancerSettings
    The load balancer settings of apig upstream.
    Name string
    The name of the apig upstream.
    ResourceType string
    The resource type of the apig upstream. Valid values: Console, Ingress.
    TlsSettings ApigUpstreamTlsSettings
    The tls settings of apig upstream.
    GatewayId string
    The gateway id of the apig upstream.
    Protocol string
    The protocol of the apig upstream. Valid values: HTTP, HTTP2, GRPC.
    SourceType string
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    UpstreamSpec ApigUpstreamUpstreamSpecArgs
    The upstream spec of apig upstream.
    CircuitBreakingSettings ApigUpstreamCircuitBreakingSettingsArgs
    The circuit breaking settings of apig upstream.
    Comments string
    The comments of the apig upstream.
    LoadBalancerSettings ApigUpstreamLoadBalancerSettingsArgs
    The load balancer settings of apig upstream.
    Name string
    The name of the apig upstream.
    ResourceType string
    The resource type of the apig upstream. Valid values: Console, Ingress.
    TlsSettings ApigUpstreamTlsSettingsArgs
    The tls settings of apig upstream.
    gatewayId String
    The gateway id of the apig upstream.
    protocol String
    The protocol of the apig upstream. Valid values: HTTP, HTTP2, GRPC.
    sourceType String
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    upstreamSpec ApigUpstreamUpstreamSpec
    The upstream spec of apig upstream.
    circuitBreakingSettings ApigUpstreamCircuitBreakingSettings
    The circuit breaking settings of apig upstream.
    comments String
    The comments of the apig upstream.
    loadBalancerSettings ApigUpstreamLoadBalancerSettings
    The load balancer settings of apig upstream.
    name String
    The name of the apig upstream.
    resourceType String
    The resource type of the apig upstream. Valid values: Console, Ingress.
    tlsSettings ApigUpstreamTlsSettings
    The tls settings of apig upstream.
    gatewayId string
    The gateway id of the apig upstream.
    protocol string
    The protocol of the apig upstream. Valid values: HTTP, HTTP2, GRPC.
    sourceType string
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    upstreamSpec ApigUpstreamUpstreamSpec
    The upstream spec of apig upstream.
    circuitBreakingSettings ApigUpstreamCircuitBreakingSettings
    The circuit breaking settings of apig upstream.
    comments string
    The comments of the apig upstream.
    loadBalancerSettings ApigUpstreamLoadBalancerSettings
    The load balancer settings of apig upstream.
    name string
    The name of the apig upstream.
    resourceType string
    The resource type of the apig upstream. Valid values: Console, Ingress.
    tlsSettings ApigUpstreamTlsSettings
    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 ApigUpstreamUpstreamSpecArgs
    The upstream spec of apig upstream.
    circuit_breaking_settings ApigUpstreamCircuitBreakingSettingsArgs
    The circuit breaking settings of apig upstream.
    comments str
    The comments of the apig upstream.
    load_balancer_settings ApigUpstreamLoadBalancerSettingsArgs
    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 ApigUpstreamTlsSettingsArgs
    The tls settings of apig upstream.
    gatewayId String
    The gateway id of the apig upstream.
    protocol String
    The protocol of the apig upstream. Valid values: HTTP, HTTP2, GRPC.
    sourceType String
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    upstreamSpec Property Map
    The upstream spec of apig upstream.
    circuitBreakingSettings Property Map
    The circuit breaking settings of apig upstream.
    comments String
    The comments of the apig upstream.
    loadBalancerSettings Property Map
    The load balancer settings of apig upstream.
    name String
    The name of the apig upstream.
    resourceType String
    The resource type of the apig upstream. Valid values: Console, Ingress.
    tlsSettings 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:

    CreateTime string
    The create time of apig upstream.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    The update time of apig upstream version.
    VersionDetails List<ApigUpstreamVersionDetail>
    The version details of apig upstream.
    CreateTime string
    The create time of apig upstream.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    The update time of apig upstream version.
    VersionDetails []ApigUpstreamVersionDetail
    The version details of apig upstream.
    createTime String
    The create time of apig upstream.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    The update time of apig upstream version.
    versionDetails List<ApigUpstreamVersionDetail>
    The version details of apig upstream.
    createTime string
    The create time of apig upstream.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime string
    The update time of apig upstream version.
    versionDetails ApigUpstreamVersionDetail[]
    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[ApigUpstreamVersionDetail]
    The version details of apig upstream.
    createTime String
    The create time of apig upstream.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    The update time of apig upstream version.
    versionDetails 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.
    The following state arguments are supported:
    CircuitBreakingSettings ApigUpstreamCircuitBreakingSettings
    The circuit breaking settings of apig upstream.
    Comments string
    The comments of the apig upstream.
    CreateTime string
    The create time of apig upstream.
    GatewayId string
    The gateway id of the apig upstream.
    LoadBalancerSettings ApigUpstreamLoadBalancerSettings
    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.
    ResourceType string
    The resource type of the apig upstream. Valid values: Console, Ingress.
    SourceType string
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    TlsSettings ApigUpstreamTlsSettings
    The tls settings of apig upstream.
    UpdateTime string
    The update time of apig upstream version.
    UpstreamSpec ApigUpstreamUpstreamSpec
    The upstream spec of apig upstream.
    VersionDetails List<ApigUpstreamVersionDetail>
    The version details of apig upstream.
    CircuitBreakingSettings ApigUpstreamCircuitBreakingSettingsArgs
    The circuit breaking settings of apig upstream.
    Comments string
    The comments of the apig upstream.
    CreateTime string
    The create time of apig upstream.
    GatewayId string
    The gateway id of the apig upstream.
    LoadBalancerSettings ApigUpstreamLoadBalancerSettingsArgs
    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.
    ResourceType string
    The resource type of the apig upstream. Valid values: Console, Ingress.
    SourceType string
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    TlsSettings ApigUpstreamTlsSettingsArgs
    The tls settings of apig upstream.
    UpdateTime string
    The update time of apig upstream version.
    UpstreamSpec ApigUpstreamUpstreamSpecArgs
    The upstream spec of apig upstream.
    VersionDetails []ApigUpstreamVersionDetailArgs
    The version details of apig upstream.
    circuitBreakingSettings ApigUpstreamCircuitBreakingSettings
    The circuit breaking settings of apig upstream.
    comments String
    The comments of the apig upstream.
    createTime String
    The create time of apig upstream.
    gatewayId String
    The gateway id of the apig upstream.
    loadBalancerSettings ApigUpstreamLoadBalancerSettings
    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.
    resourceType String
    The resource type of the apig upstream. Valid values: Console, Ingress.
    sourceType String
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    tlsSettings ApigUpstreamTlsSettings
    The tls settings of apig upstream.
    updateTime String
    The update time of apig upstream version.
    upstreamSpec ApigUpstreamUpstreamSpec
    The upstream spec of apig upstream.
    versionDetails List<ApigUpstreamVersionDetail>
    The version details of apig upstream.
    circuitBreakingSettings ApigUpstreamCircuitBreakingSettings
    The circuit breaking settings of apig upstream.
    comments string
    The comments of the apig upstream.
    createTime string
    The create time of apig upstream.
    gatewayId string
    The gateway id of the apig upstream.
    loadBalancerSettings ApigUpstreamLoadBalancerSettings
    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.
    resourceType string
    The resource type of the apig upstream. Valid values: Console, Ingress.
    sourceType string
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    tlsSettings ApigUpstreamTlsSettings
    The tls settings of apig upstream.
    updateTime string
    The update time of apig upstream version.
    upstreamSpec ApigUpstreamUpstreamSpec
    The upstream spec of apig upstream.
    versionDetails ApigUpstreamVersionDetail[]
    The version details of apig upstream.
    circuit_breaking_settings ApigUpstreamCircuitBreakingSettingsArgs
    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_settings ApigUpstreamLoadBalancerSettingsArgs
    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 ApigUpstreamTlsSettingsArgs
    The tls settings of apig upstream.
    update_time str
    The update time of apig upstream version.
    upstream_spec ApigUpstreamUpstreamSpecArgs
    The upstream spec of apig upstream.
    version_details Sequence[ApigUpstreamVersionDetailArgs]
    The version details of apig upstream.
    circuitBreakingSettings Property Map
    The circuit breaking settings of apig upstream.
    comments String
    The comments of the apig upstream.
    createTime String
    The create time of apig upstream.
    gatewayId String
    The gateway id of the apig upstream.
    loadBalancerSettings Property Map
    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.
    resourceType String
    The resource type of the apig upstream. Valid values: Console, Ingress.
    sourceType String
    The source type of the apig upstream. Valid values: VeFaas, ECS, FixedIP, K8S, Nacos, Domain, AIProvider, VeMLP.
    tlsSettings Property Map
    The tls settings of apig upstream.
    updateTime String
    The update time of apig upstream version.
    upstreamSpec Property Map
    The upstream spec of apig upstream.
    versionDetails List<Property Map>
    The version details of apig upstream.

    Supporting Types

    ApigUpstreamCircuitBreakingSettings, ApigUpstreamCircuitBreakingSettingsArgs

    Enable bool
    Whether the circuit breaking is enabled.
    BaseEjectionTime int
    The base ejection time of circuit breaking. Unit: ms. Default is 10s.
    ConsecutiveErrors int
    The consecutive errors of circuit breaking. Default is 5.
    Interval int
    The interval of circuit breaking. Unit: ms. Default is 10s.
    MaxEjectionPercent int
    The max ejection percent of circuit breaking. Default is 20%.
    MinHealthPercent int
    The min health percent of circuit breaking. Default is 60%.
    Enable bool
    Whether the circuit breaking is enabled.
    BaseEjectionTime int
    The base ejection time of circuit breaking. Unit: ms. Default is 10s.
    ConsecutiveErrors int
    The consecutive errors of circuit breaking. Default is 5.
    Interval int
    The interval of circuit breaking. Unit: ms. Default is 10s.
    MaxEjectionPercent int
    The max ejection percent of circuit breaking. Default is 20%.
    MinHealthPercent int
    The min health percent of circuit breaking. Default is 60%.
    enable Boolean
    Whether the circuit breaking is enabled.
    baseEjectionTime Integer
    The base ejection time of circuit breaking. Unit: ms. Default is 10s.
    consecutiveErrors Integer
    The consecutive errors of circuit breaking. Default is 5.
    interval Integer
    The interval of circuit breaking. Unit: ms. Default is 10s.
    maxEjectionPercent Integer
    The max ejection percent of circuit breaking. Default is 20%.
    minHealthPercent Integer
    The min health percent of circuit breaking. Default is 60%.
    enable boolean
    Whether the circuit breaking is enabled.
    baseEjectionTime number
    The base ejection time of circuit breaking. Unit: ms. Default is 10s.
    consecutiveErrors number
    The consecutive errors of circuit breaking. Default is 5.
    interval number
    The interval of circuit breaking. Unit: ms. Default is 10s.
    maxEjectionPercent number
    The max ejection percent of circuit breaking. Default is 20%.
    minHealthPercent number
    The min health percent of circuit breaking. Default is 60%.
    enable bool
    Whether the circuit breaking is enabled.
    base_ejection_time int
    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_percent int
    The max ejection percent of circuit breaking. Default is 20%.
    min_health_percent int
    The min health percent of circuit breaking. Default is 60%.
    enable Boolean
    Whether the circuit breaking is enabled.
    baseEjectionTime Number
    The base ejection time of circuit breaking. Unit: ms. Default is 10s.
    consecutiveErrors Number
    The consecutive errors of circuit breaking. Default is 5.
    interval Number
    The interval of circuit breaking. Unit: ms. Default is 10s.
    maxEjectionPercent Number
    The max ejection percent of circuit breaking. Default is 20%.
    minHealthPercent Number
    The min health percent of circuit breaking. Default is 60%.

    ApigUpstreamLoadBalancerSettings, ApigUpstreamLoadBalancerSettingsArgs

    LbPolicy string
    The load balancer policy of apig upstream. Valid values: SimpleLB, ConsistentHashLB.
    ConsistentHashLb ApigUpstreamLoadBalancerSettingsConsistentHashLb
    The consistent hash lb of apig upstream.
    SimpleLb string
    The simple load balancer of apig upstream. Valid values: ROUND_ROBIN, LEAST_CONN, RANDOM.
    WarmupDuration int
    The warmup duration of apig upstream lb. This field is valid when the simple_lb is ROUND_ROBIN or LEAST_CONN.
    LbPolicy string
    The load balancer policy of apig upstream. Valid values: SimpleLB, ConsistentHashLB.
    ConsistentHashLb ApigUpstreamLoadBalancerSettingsConsistentHashLb
    The consistent hash lb of apig upstream.
    SimpleLb string
    The simple load balancer of apig upstream. Valid values: ROUND_ROBIN, LEAST_CONN, RANDOM.
    WarmupDuration int
    The warmup duration of apig upstream lb. This field is valid when the simple_lb is ROUND_ROBIN or LEAST_CONN.
    lbPolicy String
    The load balancer policy of apig upstream. Valid values: SimpleLB, ConsistentHashLB.
    consistentHashLb ApigUpstreamLoadBalancerSettingsConsistentHashLb
    The consistent hash lb of apig upstream.
    simpleLb String
    The simple load balancer of apig upstream. Valid values: ROUND_ROBIN, LEAST_CONN, RANDOM.
    warmupDuration Integer
    The warmup duration of apig upstream lb. This field is valid when the simple_lb is ROUND_ROBIN or LEAST_CONN.
    lbPolicy string
    The load balancer policy of apig upstream. Valid values: SimpleLB, ConsistentHashLB.
    consistentHashLb ApigUpstreamLoadBalancerSettingsConsistentHashLb
    The consistent hash lb of apig upstream.
    simpleLb string
    The simple load balancer of apig upstream. Valid values: ROUND_ROBIN, LEAST_CONN, RANDOM.
    warmupDuration number
    The warmup duration of apig upstream lb. This field is valid when the simple_lb is ROUND_ROBIN or LEAST_CONN.
    lb_policy str
    The load balancer policy of apig upstream. Valid values: SimpleLB, ConsistentHashLB.
    consistent_hash_lb ApigUpstreamLoadBalancerSettingsConsistentHashLb
    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 or LEAST_CONN.
    lbPolicy String
    The load balancer policy of apig upstream. Valid values: SimpleLB, ConsistentHashLB.
    consistentHashLb Property Map
    The consistent hash lb of apig upstream.
    simpleLb String
    The simple load balancer of apig upstream. Valid values: ROUND_ROBIN, LEAST_CONN, RANDOM.
    warmupDuration Number
    The warmup duration of apig upstream lb. This field is valid when the simple_lb is ROUND_ROBIN or LEAST_CONN.

    ApigUpstreamLoadBalancerSettingsConsistentHashLb, ApigUpstreamLoadBalancerSettingsConsistentHashLbArgs

    HashKey string
    The hash key of apig upstream consistent hash lb. Valid values: HTTPCookie, HttpHeaderName, HttpQueryParameterName, UseSourceIp.
    HttpCookie ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookie
    The http cookie of apig upstream consistent hash lb.
    HttpHeaderName string
    The http header name of apig upstream consistent hash lb.
    HttpQueryParameterName string
    The http query parameter name of apig upstream consistent hash lb.
    UseSourceIp bool
    The use source ip of apig upstream consistent hash lb.
    HashKey string
    The hash key of apig upstream consistent hash lb. Valid values: HTTPCookie, HttpHeaderName, HttpQueryParameterName, UseSourceIp.
    HttpCookie ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookie
    The http cookie of apig upstream consistent hash lb.
    HttpHeaderName string
    The http header name of apig upstream consistent hash lb.
    HttpQueryParameterName string
    The http query parameter name of apig upstream consistent hash lb.
    UseSourceIp bool
    The use source ip of apig upstream consistent hash lb.
    hashKey String
    The hash key of apig upstream consistent hash lb. Valid values: HTTPCookie, HttpHeaderName, HttpQueryParameterName, UseSourceIp.
    httpCookie ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookie
    The http cookie of apig upstream consistent hash lb.
    httpHeaderName String
    The http header name of apig upstream consistent hash lb.
    httpQueryParameterName String
    The http query parameter name of apig upstream consistent hash lb.
    useSourceIp Boolean
    The use source ip of apig upstream consistent hash lb.
    hashKey string
    The hash key of apig upstream consistent hash lb. Valid values: HTTPCookie, HttpHeaderName, HttpQueryParameterName, UseSourceIp.
    httpCookie ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookie
    The http cookie of apig upstream consistent hash lb.
    httpHeaderName string
    The http header name of apig upstream consistent hash lb.
    httpQueryParameterName string
    The http query parameter name of apig upstream consistent hash lb.
    useSourceIp boolean
    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.
    http_cookie ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookie
    The http cookie of apig upstream consistent hash lb.
    http_header_name str
    The http header name of apig upstream consistent hash lb.
    http_query_parameter_name str
    The http query parameter name of apig upstream consistent hash lb.
    use_source_ip bool
    The use source ip of apig upstream consistent hash lb.
    hashKey String
    The hash key of apig upstream consistent hash lb. Valid values: HTTPCookie, HttpHeaderName, HttpQueryParameterName, UseSourceIp.
    httpCookie Property Map
    The http cookie of apig upstream consistent hash lb.
    httpHeaderName String
    The http header name of apig upstream consistent hash lb.
    httpQueryParameterName String
    The http query parameter name of apig upstream consistent hash lb.
    useSourceIp Boolean
    The use source ip of apig upstream consistent hash lb.

    ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookie, ApigUpstreamLoadBalancerSettingsConsistentHashLbHttpCookieArgs

    Name string
    The name of apig upstream consistent hash lb http cookie.
    Path string
    The path of apig upstream consistent hash lb http cookie.
    Ttl int
    The ttl of apig upstream consistent hash lb http cookie.
    Name string
    The name of apig upstream consistent hash lb http cookie.
    Path string
    The path of apig upstream consistent hash lb http cookie.
    Ttl int
    The ttl of apig upstream consistent hash lb http cookie.
    name String
    The name of apig upstream consistent hash lb http cookie.
    path String
    The path of apig upstream consistent hash lb http cookie.
    ttl Integer
    The ttl of apig upstream consistent hash lb http cookie.
    name string
    The name of apig upstream consistent hash lb http cookie.
    path string
    The path of apig upstream consistent hash lb http cookie.
    ttl number
    The ttl of apig upstream consistent hash lb http cookie.
    name str
    The name of apig upstream consistent hash lb http cookie.
    path str
    The path of apig upstream consistent hash lb http cookie.
    ttl int
    The ttl of apig upstream consistent hash lb http cookie.
    name String
    The name of apig upstream consistent hash lb http cookie.
    path String
    The path of apig upstream consistent hash lb http cookie.
    ttl Number
    The ttl of apig upstream consistent hash lb http cookie.

    ApigUpstreamTlsSettings, ApigUpstreamTlsSettingsArgs

    TlsMode string
    The tls mode of apig upstream tls setting. Valid values: DISABLE, SIMPLE.
    Sni string
    The sni of apig upstream tls setting.
    TlsMode string
    The tls mode of apig upstream tls setting. Valid values: DISABLE, SIMPLE.
    Sni string
    The sni of apig upstream tls setting.
    tlsMode String
    The tls mode of apig upstream tls setting. Valid values: DISABLE, SIMPLE.
    sni String
    The sni of apig upstream tls setting.
    tlsMode string
    The tls mode of apig upstream tls setting. Valid values: DISABLE, SIMPLE.
    sni string
    The sni of apig upstream tls setting.
    tls_mode str
    The tls mode of apig upstream tls setting. Valid values: DISABLE, SIMPLE.
    sni str
    The sni of apig upstream tls setting.
    tlsMode String
    The tls mode of apig upstream tls setting. Valid values: DISABLE, SIMPLE.
    sni String
    The sni of apig upstream tls setting.

    ApigUpstreamUpstreamSpec, ApigUpstreamUpstreamSpecArgs

    AiProvider ApigUpstreamUpstreamSpecAiProvider
    The ai provider of apig upstream.
    Domain ApigUpstreamUpstreamSpecDomain
    The domain of apig upstream.
    EcsLists List<ApigUpstreamUpstreamSpecEcsList>
    The ecs list of apig upstream.
    FixedIpLists List<ApigUpstreamUpstreamSpecFixedIpList>
    The fixed ip list of apig upstream.
    K8sService ApigUpstreamUpstreamSpecK8sService
    The k8s service of apig upstream.
    NacosService ApigUpstreamUpstreamSpecNacosService
    The nacos service of apig upstream.
    VeFaas ApigUpstreamUpstreamSpecVeFaas
    The vefaas of apig upstream.
    VeMlp ApigUpstreamUpstreamSpecVeMlp
    The mlp of apig upstream.
    AiProvider ApigUpstreamUpstreamSpecAiProvider
    The ai provider of apig upstream.
    Domain ApigUpstreamUpstreamSpecDomain
    The domain of apig upstream.
    EcsLists []ApigUpstreamUpstreamSpecEcsList
    The ecs list of apig upstream.
    FixedIpLists []ApigUpstreamUpstreamSpecFixedIpList
    The fixed ip list of apig upstream.
    K8sService ApigUpstreamUpstreamSpecK8sService
    The k8s service of apig upstream.
    NacosService ApigUpstreamUpstreamSpecNacosService
    The nacos service of apig upstream.
    VeFaas ApigUpstreamUpstreamSpecVeFaas
    The vefaas of apig upstream.
    VeMlp ApigUpstreamUpstreamSpecVeMlp
    The mlp of apig upstream.
    aiProvider ApigUpstreamUpstreamSpecAiProvider
    The ai provider of apig upstream.
    domain ApigUpstreamUpstreamSpecDomain
    The domain of apig upstream.
    ecsLists List<ApigUpstreamUpstreamSpecEcsList>
    The ecs list of apig upstream.
    fixedIpLists List<ApigUpstreamUpstreamSpecFixedIpList>
    The fixed ip list of apig upstream.
    k8sService ApigUpstreamUpstreamSpecK8sService
    The k8s service of apig upstream.
    nacosService ApigUpstreamUpstreamSpecNacosService
    The nacos service of apig upstream.
    veFaas ApigUpstreamUpstreamSpecVeFaas
    The vefaas of apig upstream.
    veMlp ApigUpstreamUpstreamSpecVeMlp
    The mlp of apig upstream.
    aiProvider ApigUpstreamUpstreamSpecAiProvider
    The ai provider of apig upstream.
    domain ApigUpstreamUpstreamSpecDomain
    The domain of apig upstream.
    ecsLists ApigUpstreamUpstreamSpecEcsList[]
    The ecs list of apig upstream.
    fixedIpLists ApigUpstreamUpstreamSpecFixedIpList[]
    The fixed ip list of apig upstream.
    k8sService ApigUpstreamUpstreamSpecK8sService
    The k8s service of apig upstream.
    nacosService ApigUpstreamUpstreamSpecNacosService
    The nacos service of apig upstream.
    veFaas ApigUpstreamUpstreamSpecVeFaas
    The vefaas of apig upstream.
    veMlp ApigUpstreamUpstreamSpecVeMlp
    The mlp of apig upstream.
    ai_provider ApigUpstreamUpstreamSpecAiProvider
    The ai provider of apig upstream.
    domain ApigUpstreamUpstreamSpecDomain
    The domain of apig upstream.
    ecs_lists Sequence[ApigUpstreamUpstreamSpecEcsList]
    The ecs list of apig upstream.
    fixed_ip_lists Sequence[ApigUpstreamUpstreamSpecFixedIpList]
    The fixed ip list of apig upstream.
    k8s_service ApigUpstreamUpstreamSpecK8sService
    The k8s service of apig upstream.
    nacos_service ApigUpstreamUpstreamSpecNacosService
    The nacos service of apig upstream.
    ve_faas ApigUpstreamUpstreamSpecVeFaas
    The vefaas of apig upstream.
    ve_mlp ApigUpstreamUpstreamSpecVeMlp
    The mlp of apig upstream.
    aiProvider Property Map
    The ai provider of apig upstream.
    domain Property Map
    The domain of apig upstream.
    ecsLists List<Property Map>
    The ecs list of apig upstream.
    fixedIpLists List<Property Map>
    The fixed ip list of apig upstream.
    k8sService Property Map
    The k8s service of apig upstream.
    nacosService Property Map
    The nacos service of apig upstream.
    veFaas Property Map
    The vefaas of apig upstream.
    veMlp Property Map
    The mlp of apig upstream.

    ApigUpstreamUpstreamSpecAiProvider, ApigUpstreamUpstreamSpecAiProviderArgs

    BaseUrl string
    The base url of ai provider.
    Name string
    The name of ai provider.
    Token string
    The token of ai provider.
    CustomBodyParams Dictionary<string, string>
    The custom body params of ai provider.
    CustomHeaderParams Dictionary<string, string>
    The custom header params of ai provider.
    CustomModelService ApigUpstreamUpstreamSpecAiProviderCustomModelService
    The custom model service of ai provider.
    BaseUrl string
    The base url of ai provider.
    Name string
    The name of ai provider.
    Token string
    The token of ai provider.
    CustomBodyParams map[string]string
    The custom body params of ai provider.
    CustomHeaderParams map[string]string
    The custom header params of ai provider.
    CustomModelService ApigUpstreamUpstreamSpecAiProviderCustomModelService
    The custom model service of ai provider.
    baseUrl String
    The base url of ai provider.
    name String
    The name of ai provider.
    token String
    The token of ai provider.
    customBodyParams Map<String,String>
    The custom body params of ai provider.
    customHeaderParams Map<String,String>
    The custom header params of ai provider.
    customModelService ApigUpstreamUpstreamSpecAiProviderCustomModelService
    The custom model service of ai provider.
    baseUrl string
    The base url of ai provider.
    name string
    The name of ai provider.
    token string
    The token of ai provider.
    customBodyParams {[key: string]: string}
    The custom body params of ai provider.
    customHeaderParams {[key: string]: string}
    The custom header params of ai provider.
    customModelService ApigUpstreamUpstreamSpecAiProviderCustomModelService
    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_params Mapping[str, str]
    The custom body params of ai provider.
    custom_header_params Mapping[str, str]
    The custom header params of ai provider.
    custom_model_service ApigUpstreamUpstreamSpecAiProviderCustomModelService
    The custom model service of ai provider.
    baseUrl String
    The base url of ai provider.
    name String
    The name of ai provider.
    token String
    The token of ai provider.
    customBodyParams Map<String>
    The custom body params of ai provider.
    customHeaderParams Map<String>
    The custom header params of ai provider.
    customModelService Property Map
    The custom model service of ai provider.

    ApigUpstreamUpstreamSpecAiProviderCustomModelService, ApigUpstreamUpstreamSpecAiProviderCustomModelServiceArgs

    Name string
    The name of custom model service.
    Namespace string
    The namespace of custom model service.
    Port int
    The port of custom model service.
    Name string
    The name of custom model service.
    Namespace string
    The namespace of custom model service.
    Port int
    The port of custom model service.
    name String
    The name of custom model service.
    namespace String
    The namespace of custom model service.
    port Integer
    The port of custom model service.
    name string
    The name of custom model service.
    namespace string
    The namespace of custom model service.
    port number
    The port of custom model service.
    name str
    The name of custom model service.
    namespace str
    The namespace of custom model service.
    port int
    The port of custom model service.
    name String
    The name of custom model service.
    namespace String
    The namespace of custom model service.
    port Number
    The port of custom model service.

    ApigUpstreamUpstreamSpecDomain, ApigUpstreamUpstreamSpecDomainArgs

    DomainList ApigUpstreamUpstreamSpecDomainDomainList
    The domain list of apig upstream.
    Protocol string
    The protocol of apig upstream. Valid values: HTTP, HTTPS.
    DomainList ApigUpstreamUpstreamSpecDomainDomainList
    The domain list of apig upstream.
    Protocol string
    The protocol of apig upstream. Valid values: HTTP, HTTPS.
    domainList ApigUpstreamUpstreamSpecDomainDomainList
    The domain list of apig upstream.
    protocol String
    The protocol of apig upstream. Valid values: HTTP, HTTPS.
    domainList ApigUpstreamUpstreamSpecDomainDomainList
    The domain list of apig upstream.
    protocol string
    The protocol of apig upstream. Valid values: HTTP, HTTPS.
    domain_list ApigUpstreamUpstreamSpecDomainDomainList
    The domain list of apig upstream.
    protocol str
    The protocol of apig upstream. Valid values: HTTP, HTTPS.
    domainList Property Map
    The domain list of apig upstream.
    protocol String
    The protocol of apig upstream. Valid values: HTTP, HTTPS.

    ApigUpstreamUpstreamSpecDomainDomainList, ApigUpstreamUpstreamSpecDomainDomainListArgs

    Domain string
    The domain of apig upstream.
    Port int
    The port of domain. Default is 80 for HTTP, 443 for HTTPS.
    Domain string
    The domain of apig upstream.
    Port int
    The port of domain. Default is 80 for HTTP, 443 for HTTPS.
    domain String
    The domain of apig upstream.
    port Integer
    The port of domain. Default is 80 for HTTP, 443 for HTTPS.
    domain string
    The domain of apig upstream.
    port number
    The port of domain. Default is 80 for HTTP, 443 for HTTPS.
    domain str
    The domain of apig upstream.
    port int
    The port of domain. Default is 80 for HTTP, 443 for HTTPS.
    domain String
    The domain of apig upstream.
    port Number
    The port of domain. Default is 80 for HTTP, 443 for HTTPS.

    ApigUpstreamUpstreamSpecEcsList, ApigUpstreamUpstreamSpecEcsListArgs

    EcsId string
    The instance id of ecs.
    Ip string
    The ip of ecs.
    Port int
    The port of ecs.
    EcsId string
    The instance id of ecs.
    Ip string
    The ip of ecs.
    Port int
    The port of ecs.
    ecsId String
    The instance id of ecs.
    ip String
    The ip of ecs.
    port Integer
    The port of ecs.
    ecsId string
    The instance id of ecs.
    ip string
    The ip of ecs.
    port number
    The port of ecs.
    ecs_id str
    The instance id of ecs.
    ip str
    The ip of ecs.
    port int
    The port of ecs.
    ecsId String
    The instance id of ecs.
    ip String
    The ip of ecs.
    port Number
    The port of ecs.

    ApigUpstreamUpstreamSpecFixedIpList, ApigUpstreamUpstreamSpecFixedIpListArgs

    Ip string
    The ip of apig upstream.
    Port int
    The port of apig upstream.
    Ip string
    The ip of apig upstream.
    Port int
    The port of apig upstream.
    ip String
    The ip of apig upstream.
    port Integer
    The port of apig upstream.
    ip string
    The ip of apig upstream.
    port number
    The port of apig upstream.
    ip str
    The ip of apig upstream.
    port int
    The port of apig upstream.
    ip String
    The ip of apig upstream.
    port Number
    The port of apig upstream.

    ApigUpstreamUpstreamSpecK8sService, ApigUpstreamUpstreamSpecK8sServiceArgs

    Name string
    The name of k8s service.
    Namespace string
    The namespace of k8s service.
    Port int
    The port of k8s service.
    Name string
    The name of k8s service.
    Namespace string
    The namespace of k8s service.
    Port int
    The port of k8s service.
    name String
    The name of k8s service.
    namespace String
    The namespace of k8s service.
    port Integer
    The port of k8s service.
    name string
    The name of k8s service.
    namespace string
    The namespace of k8s service.
    port number
    The port of k8s service.
    name str
    The name of k8s service.
    namespace str
    The namespace of k8s service.
    port int
    The port of k8s service.
    name String
    The name of k8s service.
    namespace String
    The namespace of k8s service.
    port Number
    The port of k8s service.

    ApigUpstreamUpstreamSpecNacosService, ApigUpstreamUpstreamSpecNacosServiceArgs

    Group string
    The group of nacos service.
    Namespace string
    The namespace of nacos service.
    Service string
    The service of nacos service.
    UpstreamSourceId string
    The upstream source id.
    NamespaceId 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.
    UpstreamSourceId string
    The upstream source id.
    NamespaceId 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.
    upstreamSourceId String
    The upstream source id.
    namespaceId 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.
    upstreamSourceId string
    The upstream source id.
    namespaceId 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_id str
    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.
    upstreamSourceId String
    The upstream source id.
    namespaceId String
    The namespace id of nacos service.

    ApigUpstreamUpstreamSpecVeFaas, ApigUpstreamUpstreamSpecVeFaasArgs

    FunctionId string
    The function id of vefaas.
    FunctionId string
    The function id of vefaas.
    functionId String
    The function id of vefaas.
    functionId string
    The function id of vefaas.
    function_id str
    The function id of vefaas.
    functionId String
    The function id of vefaas.

    ApigUpstreamUpstreamSpecVeMlp, ApigUpstreamUpstreamSpecVeMlpArgs

    K8sService ApigUpstreamUpstreamSpecVeMlpK8sService
    The k8s service of mlp.
    ServiceDiscoverType string
    The service discover type of mlp.
    ServiceId string
    The service id of mlp.
    ServiceName string
    The service name of mlp.
    ServiceUrl string
    The service url of mlp.
    UpstreamSourceId string
    The upstream source id.
    K8sService ApigUpstreamUpstreamSpecVeMlpK8sService
    The k8s service of mlp.
    ServiceDiscoverType string
    The service discover type of mlp.
    ServiceId string
    The service id of mlp.
    ServiceName string
    The service name of mlp.
    ServiceUrl string
    The service url of mlp.
    UpstreamSourceId string
    The upstream source id.
    k8sService ApigUpstreamUpstreamSpecVeMlpK8sService
    The k8s service of mlp.
    serviceDiscoverType String
    The service discover type of mlp.
    serviceId String
    The service id of mlp.
    serviceName String
    The service name of mlp.
    serviceUrl String
    The service url of mlp.
    upstreamSourceId String
    The upstream source id.
    k8sService ApigUpstreamUpstreamSpecVeMlpK8sService
    The k8s service of mlp.
    serviceDiscoverType string
    The service discover type of mlp.
    serviceId string
    The service id of mlp.
    serviceName string
    The service name of mlp.
    serviceUrl string
    The service url of mlp.
    upstreamSourceId string
    The upstream source id.
    k8s_service ApigUpstreamUpstreamSpecVeMlpK8sService
    The k8s service of mlp.
    service_discover_type str
    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_id str
    The upstream source id.
    k8sService Property Map
    The k8s service of mlp.
    serviceDiscoverType String
    The service discover type of mlp.
    serviceId String
    The service id of mlp.
    serviceName String
    The service name of mlp.
    serviceUrl String
    The service url of mlp.
    upstreamSourceId String
    The upstream source id.

    ApigUpstreamUpstreamSpecVeMlpK8sService, ApigUpstreamUpstreamSpecVeMlpK8sServiceArgs

    ClusterInfo ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfo
    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.
    ClusterInfo ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfo
    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.
    clusterInfo ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfo
    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.
    clusterInfo ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfo
    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 ApigUpstreamUpstreamSpecVeMlpK8sServiceClusterInfo
    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.
    clusterInfo 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

    AccountId int
    The account id of k8s service.
    ClusterName string
    The cluster name of k8s service.
    AccountId int
    The account id of k8s service.
    ClusterName string
    The cluster name of k8s service.
    accountId Integer
    The account id of k8s service.
    clusterName String
    The cluster name of k8s service.
    accountId number
    The account id of k8s service.
    clusterName 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.
    accountId Number
    The account id of k8s service.
    clusterName String
    The cluster name of k8s service.

    ApigUpstreamVersionDetail, ApigUpstreamVersionDetailArgs

    Labels List<ApigUpstreamVersionDetailLabel>
    The labels of apig upstream version.
    Name string
    The name of the apig upstream.
    UpdateTime string
    The update time of apig upstream version.
    Labels []ApigUpstreamVersionDetailLabel
    The labels of apig upstream version.
    Name string
    The name of the apig upstream.
    UpdateTime string
    The update time of apig upstream version.
    labels List<ApigUpstreamVersionDetailLabel>
    The labels of apig upstream version.
    name String
    The name of the apig upstream.
    updateTime String
    The update time of apig upstream version.
    labels ApigUpstreamVersionDetailLabel[]
    The labels of apig upstream version.
    name string
    The name of the apig upstream.
    updateTime string
    The update time of apig upstream version.
    labels Sequence[ApigUpstreamVersionDetailLabel]
    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.
    updateTime String
    The update time of apig upstream version.

    ApigUpstreamVersionDetailLabel, ApigUpstreamVersionDetailLabelArgs

    Key string
    The key of apig upstream version label.
    Value string
    The value of apig upstream version label.
    Key string
    The key of apig upstream version label.
    Value string
    The value of apig upstream version label.
    key String
    The key of apig upstream version label.
    value String
    The value of apig upstream version label.
    key string
    The key of apig upstream version label.
    value string
    The value of apig upstream version label.
    key str
    The key of apig upstream version label.
    value str
    The value of apig upstream version label.
    key String
    The key of apig upstream version label.
    value String
    The value of apig upstream version label.

    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.
    volcengine logo
    Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine