1. Packages
  2. Volcenginecc Provider
  3. API Docs
  4. apig
  5. UpstreamSource
volcenginecc v0.0.4 published on Monday, Nov 3, 2025 by Volcengine

volcenginecc.apig.UpstreamSource

Start a Neo task
Explain and create a volcenginecc.apig.UpstreamSource resource
volcenginecc logo
volcenginecc v0.0.4 published on Monday, Nov 3, 2025 by Volcengine

    API 网关支持基于容器服务(VKE)集和容器服务的注册集群功能,将集群导入到 API 网关实例,将其作为网关的 Upstream 来源,以便网关获取集群中的 Service 列表。

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      upstreamSourceNacosDemo:
        type: volcenginecc:apig:UpstreamSource
        name: UpstreamSourceNacosDemo
        properties:
          gatewayId: gd3s9vbk7npja181xxxxx
          comments: upstreamSourceNacosDemo
          sourceType: Nacos
          sourceSpec:
            nacos_source:
              nacosId: nd3thmnjdl46p917xxxxx
              authConfig:
                basic:
                  username: nacos
                  password: '******'
    

    Create UpstreamSource Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UpstreamSource(name: string, args: UpstreamSourceArgs, opts?: CustomResourceOptions);
    @overload
    def UpstreamSource(resource_name: str,
                       args: UpstreamSourceArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def UpstreamSource(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       gateway_id: Optional[str] = None,
                       source_spec: Optional[UpstreamSourceSourceSpecArgs] = None,
                       source_type: Optional[str] = None,
                       comments: Optional[str] = None,
                       ingress_settings: Optional[UpstreamSourceIngressSettingsArgs] = None,
                       watch_namespaces: Optional[Sequence[str]] = None)
    func NewUpstreamSource(ctx *Context, name string, args UpstreamSourceArgs, opts ...ResourceOption) (*UpstreamSource, error)
    public UpstreamSource(string name, UpstreamSourceArgs args, CustomResourceOptions? opts = null)
    public UpstreamSource(String name, UpstreamSourceArgs args)
    public UpstreamSource(String name, UpstreamSourceArgs args, CustomResourceOptions options)
    
    type: volcenginecc:apig:UpstreamSource
    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 UpstreamSourceArgs
    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 UpstreamSourceArgs
    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 UpstreamSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UpstreamSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UpstreamSourceArgs
    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 upstreamSourceResource = new Volcenginecc.Apig.UpstreamSource("upstreamSourceResource", new()
    {
        GatewayId = "string",
        SourceSpec = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecArgs
        {
            K8SSource = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecK8SSourceArgs
            {
                ClusterId = "string",
                ClusterType = "string",
            },
            NacosSource = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecNacosSourceArgs
            {
                AuthConfig = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecNacosSourceAuthConfigArgs
                {
                    Basic = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs
                    {
                        Password = "string",
                        Username = "string",
                    },
                },
                NacosId = "string",
                NacosName = "string",
            },
        },
        SourceType = "string",
        Comments = "string",
        IngressSettings = new Volcenginecc.Apig.Inputs.UpstreamSourceIngressSettingsArgs
        {
            EnableAllIngressClasses = false,
            EnableAllNamespaces = false,
            EnableIngress = false,
            EnableIngressWithoutIngressClass = false,
            IngressClasses = new[]
            {
                "string",
            },
            UpdateStatus = false,
            WatchNamespaces = new[]
            {
                "string",
            },
        },
        WatchNamespaces = new[]
        {
            "string",
        },
    });
    
    example, err := apig.NewUpstreamSource(ctx, "upstreamSourceResource", &apig.UpstreamSourceArgs{
    	GatewayId: pulumi.String("string"),
    	SourceSpec: &apig.UpstreamSourceSourceSpecArgs{
    		K8SSource: &apig.UpstreamSourceSourceSpecK8SSourceArgs{
    			ClusterId:   pulumi.String("string"),
    			ClusterType: pulumi.String("string"),
    		},
    		NacosSource: &apig.UpstreamSourceSourceSpecNacosSourceArgs{
    			AuthConfig: &apig.UpstreamSourceSourceSpecNacosSourceAuthConfigArgs{
    				Basic: &apig.UpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs{
    					Password: pulumi.String("string"),
    					Username: pulumi.String("string"),
    				},
    			},
    			NacosId:   pulumi.String("string"),
    			NacosName: pulumi.String("string"),
    		},
    	},
    	SourceType: pulumi.String("string"),
    	Comments:   pulumi.String("string"),
    	IngressSettings: &apig.UpstreamSourceIngressSettingsArgs{
    		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"),
    		},
    	},
    	WatchNamespaces: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var upstreamSourceResource = new UpstreamSource("upstreamSourceResource", UpstreamSourceArgs.builder()
        .gatewayId("string")
        .sourceSpec(UpstreamSourceSourceSpecArgs.builder()
            .k8SSource(UpstreamSourceSourceSpecK8SSourceArgs.builder()
                .clusterId("string")
                .clusterType("string")
                .build())
            .nacosSource(UpstreamSourceSourceSpecNacosSourceArgs.builder()
                .authConfig(UpstreamSourceSourceSpecNacosSourceAuthConfigArgs.builder()
                    .basic(UpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs.builder()
                        .password("string")
                        .username("string")
                        .build())
                    .build())
                .nacosId("string")
                .nacosName("string")
                .build())
            .build())
        .sourceType("string")
        .comments("string")
        .ingressSettings(UpstreamSourceIngressSettingsArgs.builder()
            .enableAllIngressClasses(false)
            .enableAllNamespaces(false)
            .enableIngress(false)
            .enableIngressWithoutIngressClass(false)
            .ingressClasses("string")
            .updateStatus(false)
            .watchNamespaces("string")
            .build())
        .watchNamespaces("string")
        .build());
    
    upstream_source_resource = volcenginecc.apig.UpstreamSource("upstreamSourceResource",
        gateway_id="string",
        source_spec={
            "k8_s_source": {
                "cluster_id": "string",
                "cluster_type": "string",
            },
            "nacos_source": {
                "auth_config": {
                    "basic": {
                        "password": "string",
                        "username": "string",
                    },
                },
                "nacos_id": "string",
                "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"],
        },
        watch_namespaces=["string"])
    
    const upstreamSourceResource = new volcenginecc.apig.UpstreamSource("upstreamSourceResource", {
        gatewayId: "string",
        sourceSpec: {
            k8SSource: {
                clusterId: "string",
                clusterType: "string",
            },
            nacosSource: {
                authConfig: {
                    basic: {
                        password: "string",
                        username: "string",
                    },
                },
                nacosId: "string",
                nacosName: "string",
            },
        },
        sourceType: "string",
        comments: "string",
        ingressSettings: {
            enableAllIngressClasses: false,
            enableAllNamespaces: false,
            enableIngress: false,
            enableIngressWithoutIngressClass: false,
            ingressClasses: ["string"],
            updateStatus: false,
            watchNamespaces: ["string"],
        },
        watchNamespaces: ["string"],
    });
    
    type: volcenginecc:apig:UpstreamSource
    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:
                authConfig:
                    basic:
                        password: string
                        username: string
                nacosId: string
                nacosName: string
        sourceType: string
        watchNamespaces:
            - string
    

    UpstreamSource 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 UpstreamSource resource accepts the following input properties:

    GatewayId string
    网关实例ID。
    SourceSpec Volcengine.UpstreamSourceSourceSpec
    Upstream来源配置。
    SourceType string
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    Comments string
    备注,长度限制为0~253个字符。
    IngressSettings Volcengine.UpstreamSourceIngressSettings
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    WatchNamespaces List<string>
    指定命名空间。
    GatewayId string
    网关实例ID。
    SourceSpec UpstreamSourceSourceSpecArgs
    Upstream来源配置。
    SourceType string
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    Comments string
    备注,长度限制为0~253个字符。
    IngressSettings UpstreamSourceIngressSettingsArgs
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    WatchNamespaces []string
    指定命名空间。
    gatewayId String
    网关实例ID。
    sourceSpec UpstreamSourceSourceSpec
    Upstream来源配置。
    sourceType String
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    comments String
    备注,长度限制为0~253个字符。
    ingressSettings UpstreamSourceIngressSettings
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    watchNamespaces List<String>
    指定命名空间。
    gatewayId string
    网关实例ID。
    sourceSpec UpstreamSourceSourceSpec
    Upstream来源配置。
    sourceType string
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    comments string
    备注,长度限制为0~253个字符。
    ingressSettings UpstreamSourceIngressSettings
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    watchNamespaces string[]
    指定命名空间。
    gateway_id str
    网关实例ID。
    source_spec UpstreamSourceSourceSpecArgs
    Upstream来源配置。
    source_type str
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    comments str
    备注,长度限制为0~253个字符。
    ingress_settings UpstreamSourceIngressSettingsArgs
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    watch_namespaces Sequence[str]
    指定命名空间。
    gatewayId String
    网关实例ID。
    sourceSpec Property Map
    Upstream来源配置。
    sourceType String
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    comments String
    备注,长度限制为0~253个字符。
    ingressSettings Property Map
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    watchNamespaces List<String>
    指定命名空间。

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UpstreamSource resource produces the following output properties:

    CreatedTime string
    创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    StatusMessage string
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    UpdatedTime string
    更新时间。
    UpstreamSourceId string
    Upstream来源ID。
    CreatedTime string
    创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    StatusMessage string
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    UpdatedTime string
    更新时间。
    UpstreamSourceId string
    Upstream来源ID。
    createdTime String
    创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    statusMessage String
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    updatedTime String
    更新时间。
    upstreamSourceId String
    Upstream来源ID。
    createdTime string
    创建时间。
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    statusMessage string
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    updatedTime string
    更新时间。
    upstreamSourceId string
    Upstream来源ID。
    created_time str
    创建时间。
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    status_message str
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    updated_time str
    更新时间。
    upstream_source_id str
    Upstream来源ID。
    createdTime String
    创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    statusMessage String
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    updatedTime String
    更新时间。
    upstreamSourceId String
    Upstream来源ID。

    Look up Existing UpstreamSource Resource

    Get an existing UpstreamSource 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?: UpstreamSourceState, opts?: CustomResourceOptions): UpstreamSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comments: Optional[str] = None,
            created_time: Optional[str] = None,
            gateway_id: Optional[str] = None,
            ingress_settings: Optional[UpstreamSourceIngressSettingsArgs] = None,
            source_spec: Optional[UpstreamSourceSourceSpecArgs] = None,
            source_type: Optional[str] = None,
            status: Optional[str] = None,
            status_message: Optional[str] = None,
            updated_time: Optional[str] = None,
            upstream_source_id: Optional[str] = None,
            watch_namespaces: Optional[Sequence[str]] = None) -> UpstreamSource
    func GetUpstreamSource(ctx *Context, name string, id IDInput, state *UpstreamSourceState, opts ...ResourceOption) (*UpstreamSource, error)
    public static UpstreamSource Get(string name, Input<string> id, UpstreamSourceState? state, CustomResourceOptions? opts = null)
    public static UpstreamSource get(String name, Output<String> id, UpstreamSourceState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:apig:UpstreamSource    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:
    Comments string
    备注,长度限制为0~253个字符。
    CreatedTime string
    创建时间。
    GatewayId string
    网关实例ID。
    IngressSettings Volcengine.UpstreamSourceIngressSettings
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    SourceSpec Volcengine.UpstreamSourceSourceSpec
    Upstream来源配置。
    SourceType string
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    Status string
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    StatusMessage string
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    UpdatedTime string
    更新时间。
    UpstreamSourceId string
    Upstream来源ID。
    WatchNamespaces List<string>
    指定命名空间。
    Comments string
    备注,长度限制为0~253个字符。
    CreatedTime string
    创建时间。
    GatewayId string
    网关实例ID。
    IngressSettings UpstreamSourceIngressSettingsArgs
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    SourceSpec UpstreamSourceSourceSpecArgs
    Upstream来源配置。
    SourceType string
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    Status string
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    StatusMessage string
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    UpdatedTime string
    更新时间。
    UpstreamSourceId string
    Upstream来源ID。
    WatchNamespaces []string
    指定命名空间。
    comments String
    备注,长度限制为0~253个字符。
    createdTime String
    创建时间。
    gatewayId String
    网关实例ID。
    ingressSettings UpstreamSourceIngressSettings
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    sourceSpec UpstreamSourceSourceSpec
    Upstream来源配置。
    sourceType String
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    status String
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    statusMessage String
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    updatedTime String
    更新时间。
    upstreamSourceId String
    Upstream来源ID。
    watchNamespaces List<String>
    指定命名空间。
    comments string
    备注,长度限制为0~253个字符。
    createdTime string
    创建时间。
    gatewayId string
    网关实例ID。
    ingressSettings UpstreamSourceIngressSettings
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    sourceSpec UpstreamSourceSourceSpec
    Upstream来源配置。
    sourceType string
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    status string
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    statusMessage string
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    updatedTime string
    更新时间。
    upstreamSourceId string
    Upstream来源ID。
    watchNamespaces string[]
    指定命名空间。
    comments str
    备注,长度限制为0~253个字符。
    created_time str
    创建时间。
    gateway_id str
    网关实例ID。
    ingress_settings UpstreamSourceIngressSettingsArgs
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    source_spec UpstreamSourceSourceSpecArgs
    Upstream来源配置。
    source_type str
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    status str
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    status_message str
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    updated_time str
    更新时间。
    upstream_source_id str
    Upstream来源ID。
    watch_namespaces Sequence[str]
    指定命名空间。
    comments String
    备注,长度限制为0~253个字符。
    createdTime String
    创建时间。
    gatewayId String
    网关实例ID。
    ingressSettings Property Map
    路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
    sourceSpec Property Map
    Upstream来源配置。
    sourceType String
    Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
    status String
    导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
    statusMessage String
    导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
    updatedTime String
    更新时间。
    upstreamSourceId String
    Upstream来源ID。
    watchNamespaces List<String>
    指定命名空间。

    Supporting Types

    UpstreamSourceIngressSettings, UpstreamSourceIngressSettingsArgs

    EnableAllIngressClasses bool
    是否启用所有Ingress类。
    EnableAllNamespaces bool
    是否全部命名空间。
    EnableIngress bool
    是否开启。
    EnableIngressWithoutIngressClass bool
    是否监听IngressClass为空的资源。
    IngressClasses List<string>
    指定IngressClass。
    UpdateStatus bool
    流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
    WatchNamespaces List<string>
    指定命名空间。
    EnableAllIngressClasses bool
    是否启用所有Ingress类。
    EnableAllNamespaces bool
    是否全部命名空间。
    EnableIngress bool
    是否开启。
    EnableIngressWithoutIngressClass bool
    是否监听IngressClass为空的资源。
    IngressClasses []string
    指定IngressClass。
    UpdateStatus bool
    流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
    WatchNamespaces []string
    指定命名空间。
    enableAllIngressClasses Boolean
    是否启用所有Ingress类。
    enableAllNamespaces Boolean
    是否全部命名空间。
    enableIngress Boolean
    是否开启。
    enableIngressWithoutIngressClass Boolean
    是否监听IngressClass为空的资源。
    ingressClasses List<String>
    指定IngressClass。
    updateStatus Boolean
    流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
    watchNamespaces List<String>
    指定命名空间。
    enableAllIngressClasses boolean
    是否启用所有Ingress类。
    enableAllNamespaces boolean
    是否全部命名空间。
    enableIngress boolean
    是否开启。
    enableIngressWithoutIngressClass boolean
    是否监听IngressClass为空的资源。
    ingressClasses string[]
    指定IngressClass。
    updateStatus boolean
    流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
    watchNamespaces string[]
    指定命名空间。
    enable_all_ingress_classes bool
    是否启用所有Ingress类。
    enable_all_namespaces bool
    是否全部命名空间。
    enable_ingress bool
    是否开启。
    enable_ingress_without_ingress_class bool
    是否监听IngressClass为空的资源。
    ingress_classes Sequence[str]
    指定IngressClass。
    update_status bool
    流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
    watch_namespaces Sequence[str]
    指定命名空间。
    enableAllIngressClasses Boolean
    是否启用所有Ingress类。
    enableAllNamespaces Boolean
    是否全部命名空间。
    enableIngress Boolean
    是否开启。
    enableIngressWithoutIngressClass Boolean
    是否监听IngressClass为空的资源。
    ingressClasses List<String>
    指定IngressClass。
    updateStatus Boolean
    流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
    watchNamespaces List<String>
    指定命名空间。

    UpstreamSourceSourceSpec, UpstreamSourceSourceSpecArgs

    k8SSource Property Map
    容器集群来源。
    nacosSource Property Map
    注册中心来源。

    UpstreamSourceSourceSpecK8SSource, UpstreamSourceSourceSpecK8SSourceArgs

    ClusterId string
    集群ID。
    ClusterType string
    集群类型。
    ClusterId string
    集群ID。
    ClusterType string
    集群类型。
    clusterId String
    集群ID。
    clusterType String
    集群类型。
    clusterId string
    集群ID。
    clusterType string
    集群类型。
    cluster_id str
    集群ID。
    cluster_type str
    集群类型。
    clusterId String
    集群ID。
    clusterType String
    集群类型。

    UpstreamSourceSourceSpecNacosSource, UpstreamSourceSourceSpecNacosSourceArgs

    AuthConfig Volcengine.UpstreamSourceSourceSpecNacosSourceAuthConfig
    认证配置。
    NacosId string
    Nacos ID。
    NacosName string
    Nacos名称。
    AuthConfig UpstreamSourceSourceSpecNacosSourceAuthConfig
    认证配置。
    NacosId string
    Nacos ID。
    NacosName string
    Nacos名称。
    authConfig UpstreamSourceSourceSpecNacosSourceAuthConfig
    认证配置。
    nacosId String
    Nacos ID。
    nacosName String
    Nacos名称。
    authConfig UpstreamSourceSourceSpecNacosSourceAuthConfig
    认证配置。
    nacosId string
    Nacos ID。
    nacosName string
    Nacos名称。
    authConfig Property Map
    认证配置。
    nacosId String
    Nacos ID。
    nacosName String
    Nacos名称。

    UpstreamSourceSourceSpecNacosSourceAuthConfig, UpstreamSourceSourceSpecNacosSourceAuthConfigArgs

    basic Property Map
    Basic认证。

    UpstreamSourceSourceSpecNacosSourceAuthConfigBasic, UpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs

    Password string
    密码。
    Username string
    用户名。
    Password string
    密码。
    Username string
    用户名。
    password String
    密码。
    username String
    用户名。
    password string
    密码。
    username string
    用户名。
    password str
    密码。
    username str
    用户名。
    password String
    密码。
    username String
    用户名。

    Import

    $ pulumi import volcenginecc:apig/upstreamSource:UpstreamSource example "upstream_source_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    volcenginecc v0.0.4 published on Monday, Nov 3, 2025 by Volcengine
      Meet Neo: Your AI Platform Teammate