volcengine.apig.ApigUpstreamSource
Explore with Pulumi AI
Provides a resource to manage apig upstream source
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_nacos = new volcengine.apig.ApigUpstreamSource("foo-nacos", {
gatewayId: fooApigGateway.id,
comments: "acc-test-nacos",
sourceType: "Nacos",
sourceSpec: {
nacosSource: {
nacosId: "nd197ls631meck48imm7g",
authConfig: {
basic: {
username: "nacos",
password: "******",
},
},
},
},
});
const foo_k8s = new volcengine.apig.ApigUpstreamSource("foo-k8s", {
gatewayId: fooApigGateway.id,
comments: "acc-test-k8s",
sourceType: "K8S",
sourceSpec: {
k8sSource: {
clusterId: "cd197sac4mpmnruh7um80",
},
},
ingressSettings: [{
enableIngress: true,
updateStatus: true,
ingressClasses: ["test"],
watchNamespaces: ["default"],
}],
});
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_nacos = volcengine.apig.ApigUpstreamSource("foo-nacos",
gateway_id=foo_apig_gateway.id,
comments="acc-test-nacos",
source_type="Nacos",
source_spec=volcengine.apig.ApigUpstreamSourceSourceSpecArgs(
nacos_source=volcengine.apig.ApigUpstreamSourceSourceSpecNacosSourceArgs(
nacos_id="nd197ls631meck48imm7g",
auth_config=volcengine.apig.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigArgs(
basic=volcengine.apig.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs(
username="nacos",
password="******",
),
),
),
))
foo_k8s = volcengine.apig.ApigUpstreamSource("foo-k8s",
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"],
)])
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.NewApigUpstreamSource(ctx, "foo-nacos", &apig.ApigUpstreamSourceArgs{
GatewayId: fooApigGateway.ID(),
Comments: pulumi.String("acc-test-nacos"),
SourceType: pulumi.String("Nacos"),
SourceSpec: &apig.ApigUpstreamSourceSourceSpecArgs{
NacosSource: &apig.ApigUpstreamSourceSourceSpecNacosSourceArgs{
NacosId: pulumi.String("nd197ls631meck48imm7g"),
AuthConfig: &apig.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigArgs{
Basic: &apig.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs{
Username: pulumi.String("nacos"),
Password: pulumi.String("******"),
},
},
},
},
})
if err != nil {
return err
}
_, err = apig.NewApigUpstreamSource(ctx, "foo-k8s", &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
}
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_nacos = new Volcengine.Apig.ApigUpstreamSource("foo-nacos", new()
{
GatewayId = fooApigGateway.Id,
Comments = "acc-test-nacos",
SourceType = "Nacos",
SourceSpec = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecArgs
{
NacosSource = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecNacosSourceArgs
{
NacosId = "nd197ls631meck48imm7g",
AuthConfig = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigArgs
{
Basic = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs
{
Username = "nacos",
Password = "******",
},
},
},
},
});
var foo_k8s = new Volcengine.Apig.ApigUpstreamSource("foo-k8s", 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",
},
},
},
});
});
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.ApigUpstreamSource;
import com.pulumi.volcengine.apig.ApigUpstreamSourceArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamSourceSourceSpecArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamSourceSourceSpecNacosSourceArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamSourceSourceSpecK8sSourceArgs;
import com.pulumi.volcengine.apig.inputs.ApigUpstreamSourceIngressSettingArgs;
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_nacos = new ApigUpstreamSource("foo-nacos", ApigUpstreamSourceArgs.builder()
.gatewayId(fooApigGateway.id())
.comments("acc-test-nacos")
.sourceType("Nacos")
.sourceSpec(ApigUpstreamSourceSourceSpecArgs.builder()
.nacosSource(ApigUpstreamSourceSourceSpecNacosSourceArgs.builder()
.nacosId("nd197ls631meck48imm7g")
.authConfig(ApigUpstreamSourceSourceSpecNacosSourceAuthConfigArgs.builder()
.basic(ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs.builder()
.username("nacos")
.password("******")
.build())
.build())
.build())
.build())
.build());
var foo_k8s = new ApigUpstreamSource("foo-k8s", 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());
}
}
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-nacos:
type: volcengine:apig:ApigUpstreamSource
properties:
gatewayId: ${fooApigGateway.id}
comments: acc-test-nacos
sourceType: Nacos
sourceSpec:
nacosSource:
nacosId: nd197ls631meck48imm7g
authConfig:
basic:
username: nacos
password: '******'
foo-k8s:
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
variables:
fooZones:
fn::invoke:
Function: volcengine:ecs:getZones
Arguments: {}
Create ApigUpstreamSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApigUpstreamSource(name: string, args: ApigUpstreamSourceArgs, opts?: CustomResourceOptions);
@overload
def ApigUpstreamSource(resource_name: str,
args: ApigUpstreamSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApigUpstreamSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
source_spec: Optional[ApigUpstreamSourceSourceSpecArgs] = None,
source_type: Optional[str] = None,
comments: Optional[str] = None,
ingress_settings: Optional[Sequence[ApigUpstreamSourceIngressSettingArgs]] = None)
func NewApigUpstreamSource(ctx *Context, name string, args ApigUpstreamSourceArgs, opts ...ResourceOption) (*ApigUpstreamSource, error)
public ApigUpstreamSource(string name, ApigUpstreamSourceArgs args, CustomResourceOptions? opts = null)
public ApigUpstreamSource(String name, ApigUpstreamSourceArgs args)
public ApigUpstreamSource(String name, ApigUpstreamSourceArgs args, CustomResourceOptions options)
type: volcengine:apig:ApigUpstreamSource
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 ApigUpstreamSourceArgs
- 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 ApigUpstreamSourceArgs
- 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 ApigUpstreamSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApigUpstreamSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApigUpstreamSourceArgs
- 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 apigUpstreamSourceResource = new Volcengine.Apig.ApigUpstreamSource("apigUpstreamSourceResource", new()
{
GatewayId = "string",
SourceSpec = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecArgs
{
K8sSource = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecK8sSourceArgs
{
ClusterId = "string",
ClusterType = "string",
},
NacosSource = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecNacosSourceArgs
{
NacosId = "string",
Address = "string",
AuthConfig = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigArgs
{
Basic = new Volcengine.Apig.Inputs.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs
{
Password = "string",
Username = "string",
},
},
ContextPath = "string",
GrpcPort = 0,
HttpPort = 0,
NacosName = "string",
},
},
SourceType = "string",
Comments = "string",
IngressSettings = new[]
{
new Volcengine.Apig.Inputs.ApigUpstreamSourceIngressSettingArgs
{
EnableAllIngressClasses = false,
EnableAllNamespaces = false,
EnableIngress = false,
EnableIngressWithoutIngressClass = false,
IngressClasses = new[]
{
"string",
},
UpdateStatus = false,
WatchNamespaces = new[]
{
"string",
},
},
},
});
example, err := apig.NewApigUpstreamSource(ctx, "apigUpstreamSourceResource", &apig.ApigUpstreamSourceArgs{
GatewayId: pulumi.String("string"),
SourceSpec: &apig.ApigUpstreamSourceSourceSpecArgs{
K8sSource: &apig.ApigUpstreamSourceSourceSpecK8sSourceArgs{
ClusterId: pulumi.String("string"),
ClusterType: pulumi.String("string"),
},
NacosSource: &apig.ApigUpstreamSourceSourceSpecNacosSourceArgs{
NacosId: pulumi.String("string"),
Address: pulumi.String("string"),
AuthConfig: &apig.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigArgs{
Basic: &apig.ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs{
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
ContextPath: pulumi.String("string"),
GrpcPort: pulumi.Int(0),
HttpPort: pulumi.Int(0),
NacosName: pulumi.String("string"),
},
},
SourceType: pulumi.String("string"),
Comments: pulumi.String("string"),
IngressSettings: apig.ApigUpstreamSourceIngressSettingArray{
&apig.ApigUpstreamSourceIngressSettingArgs{
EnableAllIngressClasses: pulumi.Bool(false),
EnableAllNamespaces: pulumi.Bool(false),
EnableIngress: pulumi.Bool(false),
EnableIngressWithoutIngressClass: pulumi.Bool(false),
IngressClasses: pulumi.StringArray{
pulumi.String("string"),
},
UpdateStatus: pulumi.Bool(false),
WatchNamespaces: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
var apigUpstreamSourceResource = new ApigUpstreamSource("apigUpstreamSourceResource", ApigUpstreamSourceArgs.builder()
.gatewayId("string")
.sourceSpec(ApigUpstreamSourceSourceSpecArgs.builder()
.k8sSource(ApigUpstreamSourceSourceSpecK8sSourceArgs.builder()
.clusterId("string")
.clusterType("string")
.build())
.nacosSource(ApigUpstreamSourceSourceSpecNacosSourceArgs.builder()
.nacosId("string")
.address("string")
.authConfig(ApigUpstreamSourceSourceSpecNacosSourceAuthConfigArgs.builder()
.basic(ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs.builder()
.password("string")
.username("string")
.build())
.build())
.contextPath("string")
.grpcPort(0)
.httpPort(0)
.nacosName("string")
.build())
.build())
.sourceType("string")
.comments("string")
.ingressSettings(ApigUpstreamSourceIngressSettingArgs.builder()
.enableAllIngressClasses(false)
.enableAllNamespaces(false)
.enableIngress(false)
.enableIngressWithoutIngressClass(false)
.ingressClasses("string")
.updateStatus(false)
.watchNamespaces("string")
.build())
.build());
apig_upstream_source_resource = volcengine.apig.ApigUpstreamSource("apigUpstreamSourceResource",
gateway_id="string",
source_spec={
"k8s_source": {
"cluster_id": "string",
"cluster_type": "string",
},
"nacos_source": {
"nacos_id": "string",
"address": "string",
"auth_config": {
"basic": {
"password": "string",
"username": "string",
},
},
"context_path": "string",
"grpc_port": 0,
"http_port": 0,
"nacos_name": "string",
},
},
source_type="string",
comments="string",
ingress_settings=[{
"enable_all_ingress_classes": False,
"enable_all_namespaces": False,
"enable_ingress": False,
"enable_ingress_without_ingress_class": False,
"ingress_classes": ["string"],
"update_status": False,
"watch_namespaces": ["string"],
}])
const apigUpstreamSourceResource = new volcengine.apig.ApigUpstreamSource("apigUpstreamSourceResource", {
gatewayId: "string",
sourceSpec: {
k8sSource: {
clusterId: "string",
clusterType: "string",
},
nacosSource: {
nacosId: "string",
address: "string",
authConfig: {
basic: {
password: "string",
username: "string",
},
},
contextPath: "string",
grpcPort: 0,
httpPort: 0,
nacosName: "string",
},
},
sourceType: "string",
comments: "string",
ingressSettings: [{
enableAllIngressClasses: false,
enableAllNamespaces: false,
enableIngress: false,
enableIngressWithoutIngressClass: false,
ingressClasses: ["string"],
updateStatus: false,
watchNamespaces: ["string"],
}],
});
type: volcengine:apig:ApigUpstreamSource
properties:
comments: string
gatewayId: string
ingressSettings:
- enableAllIngressClasses: false
enableAllNamespaces: false
enableIngress: false
enableIngressWithoutIngressClass: false
ingressClasses:
- string
updateStatus: false
watchNamespaces:
- string
sourceSpec:
k8sSource:
clusterId: string
clusterType: string
nacosSource:
address: string
authConfig:
basic:
password: string
username: string
contextPath: string
grpcPort: 0
httpPort: 0
nacosId: string
nacosName: string
sourceType: string
ApigUpstreamSource 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 ApigUpstreamSource resource accepts the following input properties:
- Gateway
Id string - The gateway id of the apig upstream source.
- Source
Spec ApigUpstream Source Source Spec - The source spec of apig upstream source.
- Source
Type string - The source type of the apig upstream. Valid values:
K8S
,Nacos
. - Comments string
- The comments of the apig upstream source.
- Ingress
Settings List<ApigUpstream Source Ingress Setting> - The ingress settings of apig upstream source.
- Gateway
Id string - The gateway id of the apig upstream source.
- Source
Spec ApigUpstream Source Source Spec Args - The source spec of apig upstream source.
- Source
Type string - The source type of the apig upstream. Valid values:
K8S
,Nacos
. - Comments string
- The comments of the apig upstream source.
- Ingress
Settings []ApigUpstream Source Ingress Setting Args - The ingress settings of apig upstream source.
- gateway
Id String - The gateway id of the apig upstream source.
- source
Spec ApigUpstream Source Source Spec - The source spec of apig upstream source.
- source
Type String - The source type of the apig upstream. Valid values:
K8S
,Nacos
. - comments String
- The comments of the apig upstream source.
- ingress
Settings List<ApigUpstream Source Ingress Setting> - The ingress settings of apig upstream source.
- gateway
Id string - The gateway id of the apig upstream source.
- source
Spec ApigUpstream Source Source Spec - The source spec of apig upstream source.
- source
Type string - The source type of the apig upstream. Valid values:
K8S
,Nacos
. - comments string
- The comments of the apig upstream source.
- ingress
Settings ApigUpstream Source Ingress Setting[] - The ingress settings of apig upstream source.
- gateway_
id str - The gateway id of the apig upstream source.
- source_
spec ApigUpstream Source Source Spec Args - The source spec of apig upstream source.
- source_
type str - The source type of the apig upstream. Valid values:
K8S
,Nacos
. - comments str
- The comments of the apig upstream source.
- ingress_
settings Sequence[ApigUpstream Source Ingress Setting Args] - The ingress settings of apig upstream source.
- gateway
Id String - The gateway id of the apig upstream source.
- source
Spec Property Map - The source spec of apig upstream source.
- source
Type String - The source type of the apig upstream. Valid values:
K8S
,Nacos
. - comments String
- The comments of the apig upstream source.
- ingress
Settings List<Property Map> - The ingress settings of apig upstream source.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApigUpstreamSource resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ApigUpstreamSource Resource
Get an existing ApigUpstreamSource 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?: ApigUpstreamSourceState, opts?: CustomResourceOptions): ApigUpstreamSource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
gateway_id: Optional[str] = None,
ingress_settings: Optional[Sequence[ApigUpstreamSourceIngressSettingArgs]] = None,
source_spec: Optional[ApigUpstreamSourceSourceSpecArgs] = None,
source_type: Optional[str] = None) -> ApigUpstreamSource
func GetApigUpstreamSource(ctx *Context, name string, id IDInput, state *ApigUpstreamSourceState, opts ...ResourceOption) (*ApigUpstreamSource, error)
public static ApigUpstreamSource Get(string name, Input<string> id, ApigUpstreamSourceState? state, CustomResourceOptions? opts = null)
public static ApigUpstreamSource get(String name, Output<String> id, ApigUpstreamSourceState state, CustomResourceOptions options)
resources: _: type: volcengine:apig:ApigUpstreamSource 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.
- Comments string
- The comments of the apig upstream source.
- Gateway
Id string - The gateway id of the apig upstream source.
- Ingress
Settings List<ApigUpstream Source Ingress Setting> - The ingress settings of apig upstream source.
- Source
Spec ApigUpstream Source Source Spec - The source spec of apig upstream source.
- Source
Type string - The source type of the apig upstream. Valid values:
K8S
,Nacos
.
- Comments string
- The comments of the apig upstream source.
- Gateway
Id string - The gateway id of the apig upstream source.
- Ingress
Settings []ApigUpstream Source Ingress Setting Args - The ingress settings of apig upstream source.
- Source
Spec ApigUpstream Source Source Spec Args - The source spec of apig upstream source.
- Source
Type string - The source type of the apig upstream. Valid values:
K8S
,Nacos
.
- comments String
- The comments of the apig upstream source.
- gateway
Id String - The gateway id of the apig upstream source.
- ingress
Settings List<ApigUpstream Source Ingress Setting> - The ingress settings of apig upstream source.
- source
Spec ApigUpstream Source Source Spec - The source spec of apig upstream source.
- source
Type String - The source type of the apig upstream. Valid values:
K8S
,Nacos
.
- comments string
- The comments of the apig upstream source.
- gateway
Id string - The gateway id of the apig upstream source.
- ingress
Settings ApigUpstream Source Ingress Setting[] - The ingress settings of apig upstream source.
- source
Spec ApigUpstream Source Source Spec - The source spec of apig upstream source.
- source
Type string - The source type of the apig upstream. Valid values:
K8S
,Nacos
.
- comments str
- The comments of the apig upstream source.
- gateway_
id str - The gateway id of the apig upstream source.
- ingress_
settings Sequence[ApigUpstream Source Ingress Setting Args] - The ingress settings of apig upstream source.
- source_
spec ApigUpstream Source Source Spec Args - The source spec of apig upstream source.
- source_
type str - The source type of the apig upstream. Valid values:
K8S
,Nacos
.
- comments String
- The comments of the apig upstream source.
- gateway
Id String - The gateway id of the apig upstream source.
- ingress
Settings List<Property Map> - The ingress settings of apig upstream source.
- source
Spec Property Map - The source spec of apig upstream source.
- source
Type String - The source type of the apig upstream. Valid values:
K8S
,Nacos
.
Supporting Types
ApigUpstreamSourceIngressSetting, ApigUpstreamSourceIngressSettingArgs
- Enable
All boolIngress Classes - Whether to enable all ingress classes.
- Enable
All boolNamespaces - Whether to enable all namespaces.
- Enable
Ingress bool - Whether to enable ingress.
- Enable
Ingress boolWithout Ingress Class - Whether to enable ingress without ingress class.
- Ingress
Classes List<string> - The ingress classes of ingress settings.
- Update
Status bool - The update status of ingress settings.
- Watch
Namespaces List<string> - The watch namespaces of ingress settings.
- Enable
All boolIngress Classes - Whether to enable all ingress classes.
- Enable
All boolNamespaces - Whether to enable all namespaces.
- Enable
Ingress bool - Whether to enable ingress.
- Enable
Ingress boolWithout Ingress Class - Whether to enable ingress without ingress class.
- Ingress
Classes []string - The ingress classes of ingress settings.
- Update
Status bool - The update status of ingress settings.
- Watch
Namespaces []string - The watch namespaces of ingress settings.
- enable
All BooleanIngress Classes - Whether to enable all ingress classes.
- enable
All BooleanNamespaces - Whether to enable all namespaces.
- enable
Ingress Boolean - Whether to enable ingress.
- enable
Ingress BooleanWithout Ingress Class - Whether to enable ingress without ingress class.
- ingress
Classes List<String> - The ingress classes of ingress settings.
- update
Status Boolean - The update status of ingress settings.
- watch
Namespaces List<String> - The watch namespaces of ingress settings.
- enable
All booleanIngress Classes - Whether to enable all ingress classes.
- enable
All booleanNamespaces - Whether to enable all namespaces.
- enable
Ingress boolean - Whether to enable ingress.
- enable
Ingress booleanWithout Ingress Class - Whether to enable ingress without ingress class.
- ingress
Classes string[] - The ingress classes of ingress settings.
- update
Status boolean - The update status of ingress settings.
- watch
Namespaces string[] - The watch namespaces of ingress settings.
- enable_
all_ boolingress_ classes - Whether to enable all ingress classes.
- enable_
all_ boolnamespaces - Whether to enable all namespaces.
- enable_
ingress bool - Whether to enable ingress.
- enable_
ingress_ boolwithout_ ingress_ class - Whether to enable ingress without ingress class.
- ingress_
classes Sequence[str] - The ingress classes of ingress settings.
- update_
status bool - The update status of ingress settings.
- watch_
namespaces Sequence[str] - The watch namespaces of ingress settings.
- enable
All BooleanIngress Classes - Whether to enable all ingress classes.
- enable
All BooleanNamespaces - Whether to enable all namespaces.
- enable
Ingress Boolean - Whether to enable ingress.
- enable
Ingress BooleanWithout Ingress Class - Whether to enable ingress without ingress class.
- ingress
Classes List<String> - The ingress classes of ingress settings.
- update
Status Boolean - The update status of ingress settings.
- watch
Namespaces List<String> - The watch namespaces of ingress settings.
ApigUpstreamSourceSourceSpec, ApigUpstreamSourceSourceSpecArgs
- K8s
Source ApigUpstream Source Source Spec K8s Source - The k8s source of apig upstream source.
- Nacos
Source ApigUpstream Source Source Spec Nacos Source - The nacos source of apig upstream source.
- K8s
Source ApigUpstream Source Source Spec K8s Source - The k8s source of apig upstream source.
- Nacos
Source ApigUpstream Source Source Spec Nacos Source - The nacos source of apig upstream source.
- k8s
Source ApigUpstream Source Source Spec K8s Source - The k8s source of apig upstream source.
- nacos
Source ApigUpstream Source Source Spec Nacos Source - The nacos source of apig upstream source.
- k8s
Source ApigUpstream Source Source Spec K8s Source - The k8s source of apig upstream source.
- nacos
Source ApigUpstream Source Source Spec Nacos Source - The nacos source of apig upstream source.
- k8s_
source ApigUpstream Source Source Spec K8s Source - The k8s source of apig upstream source.
- nacos_
source ApigUpstream Source Source Spec Nacos Source - The nacos source of apig upstream source.
- k8s
Source Property Map - The k8s source of apig upstream source.
- nacos
Source Property Map - The nacos source of apig upstream source.
ApigUpstreamSourceSourceSpecK8sSource, ApigUpstreamSourceSourceSpecK8sSourceArgs
- Cluster
Id string - The cluster id of k8s source.
- Cluster
Type string - The cluster type of k8s source.
- Cluster
Id string - The cluster id of k8s source.
- Cluster
Type string - The cluster type of k8s source.
- cluster
Id String - The cluster id of k8s source.
- cluster
Type String - The cluster type of k8s source.
- cluster
Id string - The cluster id of k8s source.
- cluster
Type string - The cluster type of k8s source.
- cluster_
id str - The cluster id of k8s source.
- cluster_
type str - The cluster type of k8s source.
- cluster
Id String - The cluster id of k8s source.
- cluster
Type String - The cluster type of k8s source.
ApigUpstreamSourceSourceSpecNacosSource, ApigUpstreamSourceSourceSpecNacosSourceArgs
- Nacos
Id string - The nacos id of nacos source.
- Address string
- The address of nacos source.
- Auth
Config ApigUpstream Source Source Spec Nacos Source Auth Config - The auth config of nacos source.
- Context
Path string - The context path of nacos source.
- Grpc
Port int - The grpc port of nacos source.
- Http
Port int - The http port of nacos source.
- Nacos
Name string - The nacos name of nacos source.
- Nacos
Id string - The nacos id of nacos source.
- Address string
- The address of nacos source.
- Auth
Config ApigUpstream Source Source Spec Nacos Source Auth Config - The auth config of nacos source.
- Context
Path string - The context path of nacos source.
- Grpc
Port int - The grpc port of nacos source.
- Http
Port int - The http port of nacos source.
- Nacos
Name string - The nacos name of nacos source.
- nacos
Id String - The nacos id of nacos source.
- address String
- The address of nacos source.
- auth
Config ApigUpstream Source Source Spec Nacos Source Auth Config - The auth config of nacos source.
- context
Path String - The context path of nacos source.
- grpc
Port Integer - The grpc port of nacos source.
- http
Port Integer - The http port of nacos source.
- nacos
Name String - The nacos name of nacos source.
- nacos
Id string - The nacos id of nacos source.
- address string
- The address of nacos source.
- auth
Config ApigUpstream Source Source Spec Nacos Source Auth Config - The auth config of nacos source.
- context
Path string - The context path of nacos source.
- grpc
Port number - The grpc port of nacos source.
- http
Port number - The http port of nacos source.
- nacos
Name string - The nacos name of nacos source.
- nacos_
id str - The nacos id of nacos source.
- address str
- The address of nacos source.
- auth_
config ApigUpstream Source Source Spec Nacos Source Auth Config - The auth config of nacos source.
- context_
path str - The context path of nacos source.
- grpc_
port int - The grpc port of nacos source.
- http_
port int - The http port of nacos source.
- nacos_
name str - The nacos name of nacos source.
- nacos
Id String - The nacos id of nacos source.
- address String
- The address of nacos source.
- auth
Config Property Map - The auth config of nacos source.
- context
Path String - The context path of nacos source.
- grpc
Port Number - The grpc port of nacos source.
- http
Port Number - The http port of nacos source.
- nacos
Name String - The nacos name of nacos source.
ApigUpstreamSourceSourceSpecNacosSourceAuthConfig, ApigUpstreamSourceSourceSpecNacosSourceAuthConfigArgs
- Basic
Apig
Upstream Source Source Spec Nacos Source Auth Config Basic - The basic auth config of nacos source.
- Basic
Apig
Upstream Source Source Spec Nacos Source Auth Config Basic - The basic auth config of nacos source.
- basic
Apig
Upstream Source Source Spec Nacos Source Auth Config Basic - The basic auth config of nacos source.
- basic
Apig
Upstream Source Source Spec Nacos Source Auth Config Basic - The basic auth config of nacos source.
- basic
Apig
Upstream Source Source Spec Nacos Source Auth Config Basic - The basic auth config of nacos source.
- basic Property Map
- The basic auth config of nacos source.
ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasic, ApigUpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs
Import
ApigUpstreamSource can be imported using the id, e.g.
$ pulumi import volcengine:apig/apigUpstreamSource:ApigUpstreamSource 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.