Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
volcengine.apig.getUpstreamSources
Explore with Pulumi AI
Use this data source to query detailed information of apig upstream sources
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.apig.getUpstreamSources({
gatewayId: "gd13d8c6eq1emkiunq6p0",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.apig.get_upstream_sources(gateway_id="gd13d8c6eq1emkiunq6p0")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/apig"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apig.GetUpstreamSources(ctx, &apig.GetUpstreamSourcesArgs{
GatewayId: pulumi.StringRef("gd13d8c6eq1emkiunq6p0"),
}, nil)
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 foo = Volcengine.Apig.GetUpstreamSources.Invoke(new()
{
GatewayId = "gd13d8c6eq1emkiunq6p0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.apig.ApigFunctions;
import com.pulumi.volcengine.apig.inputs.GetUpstreamSourcesArgs;
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 foo = ApigFunctions.getUpstreamSources(GetUpstreamSourcesArgs.builder()
.gatewayId("gd13d8c6eq1emkiunq6p0")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:apig:getUpstreamSources
Arguments:
gatewayId: gd13d8c6eq1emkiunq6p0
Using getUpstreamSources
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUpstreamSources(args: GetUpstreamSourcesArgs, opts?: InvokeOptions): Promise<GetUpstreamSourcesResult>
function getUpstreamSourcesOutput(args: GetUpstreamSourcesOutputArgs, opts?: InvokeOptions): Output<GetUpstreamSourcesResult>
def get_upstream_sources(enable_ingress: Optional[bool] = None,
gateway_id: Optional[str] = None,
name: Optional[str] = None,
output_file: Optional[str] = None,
source_type: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUpstreamSourcesResult
def get_upstream_sources_output(enable_ingress: Optional[pulumi.Input[bool]] = None,
gateway_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
source_type: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUpstreamSourcesResult]
func GetUpstreamSources(ctx *Context, args *GetUpstreamSourcesArgs, opts ...InvokeOption) (*GetUpstreamSourcesResult, error)
func GetUpstreamSourcesOutput(ctx *Context, args *GetUpstreamSourcesOutputArgs, opts ...InvokeOption) GetUpstreamSourcesResultOutput
> Note: This function is named GetUpstreamSources
in the Go SDK.
public static class GetUpstreamSources
{
public static Task<GetUpstreamSourcesResult> InvokeAsync(GetUpstreamSourcesArgs args, InvokeOptions? opts = null)
public static Output<GetUpstreamSourcesResult> Invoke(GetUpstreamSourcesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUpstreamSourcesResult> getUpstreamSources(GetUpstreamSourcesArgs args, InvokeOptions options)
public static Output<GetUpstreamSourcesResult> getUpstreamSources(GetUpstreamSourcesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:apig/getUpstreamSources:getUpstreamSources
arguments:
# arguments dictionary
The following arguments are supported:
- Enable
Ingress bool - The enable ingress of apig upstream source.
- Gateway
Id string - The id of api gateway.
- Name string
- The name of nacos source.
- Output
File string - File name where to save data source results.
- Source
Type string - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - Status string
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
.
- Enable
Ingress bool - The enable ingress of apig upstream source.
- Gateway
Id string - The id of api gateway.
- Name string
- The name of nacos source.
- Output
File string - File name where to save data source results.
- Source
Type string - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - Status string
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
.
- enable
Ingress Boolean - The enable ingress of apig upstream source.
- gateway
Id String - The id of api gateway.
- name String
- The name of nacos source.
- output
File String - File name where to save data source results.
- source
Type String - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - status String
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
.
- enable
Ingress boolean - The enable ingress of apig upstream source.
- gateway
Id string - The id of api gateway.
- name string
- The name of nacos source.
- output
File string - File name where to save data source results.
- source
Type string - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - status string
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
.
- enable_
ingress bool - The enable ingress of apig upstream source.
- gateway_
id str - The id of api gateway.
- name str
- The name of nacos source.
- output_
file str - File name where to save data source results.
- source_
type str - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - status str
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
.
- enable
Ingress Boolean - The enable ingress of apig upstream source.
- gateway
Id String - The id of api gateway.
- name String
- The name of nacos source.
- output
File String - File name where to save data source results.
- source
Type String - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - status String
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
.
getUpstreamSources Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Upstream
Sources List<GetUpstream Sources Upstream Source> - The collection of query.
- Enable
Ingress bool - Whether to enable ingress.
- Gateway
Id string - The id of api gateway.
- Name string
- Output
File string - Source
Type string - The source type of apig upstream source.
- Status string
- The status of apig upstream source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Upstream
Sources []GetUpstream Sources Upstream Source - The collection of query.
- Enable
Ingress bool - Whether to enable ingress.
- Gateway
Id string - The id of api gateway.
- Name string
- Output
File string - Source
Type string - The source type of apig upstream source.
- Status string
- The status of apig upstream source.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- upstream
Sources List<GetUpstream Sources Upstream Source> - The collection of query.
- enable
Ingress Boolean - Whether to enable ingress.
- gateway
Id String - The id of api gateway.
- name String
- output
File String - source
Type String - The source type of apig upstream source.
- status String
- The status of apig upstream source.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- upstream
Sources GetUpstream Sources Upstream Source[] - The collection of query.
- enable
Ingress boolean - Whether to enable ingress.
- gateway
Id string - The id of api gateway.
- name string
- output
File string - source
Type string - The source type of apig upstream source.
- status string
- The status of apig upstream source.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- upstream_
sources Sequence[GetUpstream Sources Upstream Source] - The collection of query.
- enable_
ingress bool - Whether to enable ingress.
- gateway_
id str - The id of api gateway.
- name str
- output_
file str - source_
type str - The source type of apig upstream source.
- status str
- The status of apig upstream source.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- upstream
Sources List<Property Map> - The collection of query.
- enable
Ingress Boolean - Whether to enable ingress.
- gateway
Id String - The id of api gateway.
- name String
- output
File String - source
Type String - The source type of apig upstream source.
- status String
- The status of apig upstream source.
Supporting Types
GetUpstreamSourcesUpstreamSource
- Comments string
- The comments of apig upstream source.
- Create
Time string - The create time of apig upstream source.
- Gateway
Id string - The id of api gateway.
- Id string
- The id of apig upstream source.
- Ingress
Settings List<GetUpstream Sources Upstream Source Ingress Setting> - The ingress settings of apig upstream source.
- Source
Specs List<GetUpstream Sources Upstream Source Source Spec> - The source spec of apig upstream source.
- Source
Type string - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - Status string
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
. - Status
Message string - The status message of apig upstream source.
- Update
Time string - The update time of apig upstream source.
- Comments string
- The comments of apig upstream source.
- Create
Time string - The create time of apig upstream source.
- Gateway
Id string - The id of api gateway.
- Id string
- The id of apig upstream source.
- Ingress
Settings []GetUpstream Sources Upstream Source Ingress Setting - The ingress settings of apig upstream source.
- Source
Specs []GetUpstream Sources Upstream Source Source Spec - The source spec of apig upstream source.
- Source
Type string - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - Status string
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
. - Status
Message string - The status message of apig upstream source.
- Update
Time string - The update time of apig upstream source.
- comments String
- The comments of apig upstream source.
- create
Time String - The create time of apig upstream source.
- gateway
Id String - The id of api gateway.
- id String
- The id of apig upstream source.
- ingress
Settings List<GetUpstream Sources Upstream Source Ingress Setting> - The ingress settings of apig upstream source.
- source
Specs List<GetUpstream Sources Upstream Source Source Spec> - The source spec of apig upstream source.
- source
Type String - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - status String
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
. - status
Message String - The status message of apig upstream source.
- update
Time String - The update time of apig upstream source.
- comments string
- The comments of apig upstream source.
- create
Time string - The create time of apig upstream source.
- gateway
Id string - The id of api gateway.
- id string
- The id of apig upstream source.
- ingress
Settings GetUpstream Sources Upstream Source Ingress Setting[] - The ingress settings of apig upstream source.
- source
Specs GetUpstream Sources Upstream Source Source Spec[] - The source spec of apig upstream source.
- source
Type string - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - status string
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
. - status
Message string - The status message of apig upstream source.
- update
Time string - The update time of apig upstream source.
- comments str
- The comments of apig upstream source.
- create_
time str - The create time of apig upstream source.
- gateway_
id str - The id of api gateway.
- id str
- The id of apig upstream source.
- ingress_
settings Sequence[GetUpstream Sources Upstream Source Ingress Setting] - The ingress settings of apig upstream source.
- source_
specs Sequence[GetUpstream Sources Upstream Source Source Spec] - The source spec of apig upstream source.
- source_
type str - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - status str
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
. - status_
message str - The status message of apig upstream source.
- update_
time str - The update time of apig upstream source.
- comments String
- The comments of apig upstream source.
- create
Time String - The create time of apig upstream source.
- gateway
Id String - The id of api gateway.
- id String
- The id of apig upstream source.
- ingress
Settings List<Property Map> - The ingress settings of apig upstream source.
- source
Specs List<Property Map> - The source spec of apig upstream source.
- source
Type String - The source type of apig upstream source. Valid values:
K8S
,Nacos
. - status String
- The status of apig upstream source. Valid values:
Syncing
,SyncedSucceed
,SyncedFailed
. - status
Message String - The status message of apig upstream source.
- update
Time String - The update time of apig upstream source.
GetUpstreamSourcesUpstreamSourceIngressSetting
- Enable
All boolIngress Classes - Whether to enable all ingress classes.
- Enable
All boolNamespaces - Whether to enable all namespaces.
- Enable
Ingress bool - The enable ingress of apig upstream source.
- 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 - The enable ingress of apig upstream source.
- 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 - The enable ingress of apig upstream source.
- 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 - The enable ingress of apig upstream source.
- 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 - The enable ingress of apig upstream source.
- 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 - The enable ingress of apig upstream source.
- 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.
GetUpstreamSourcesUpstreamSourceSourceSpec
- K8s
Sources List<GetUpstream Sources Upstream Source Source Spec K8s Source> - The k8s source of apig upstream source.
- Nacos
Sources List<GetUpstream Sources Upstream Source Source Spec Nacos Source> - The nacos source of apig upstream source.
- K8s
Sources []GetUpstream Sources Upstream Source Source Spec K8s Source - The k8s source of apig upstream source.
- Nacos
Sources []GetUpstream Sources Upstream Source Source Spec Nacos Source - The nacos source of apig upstream source.
- k8s
Sources List<GetUpstream Sources Upstream Source Source Spec K8s Source> - The k8s source of apig upstream source.
- nacos
Sources List<GetUpstream Sources Upstream Source Source Spec Nacos Source> - The nacos source of apig upstream source.
- k8s
Sources GetUpstream Sources Upstream Source Source Spec K8s Source[] - The k8s source of apig upstream source.
- nacos
Sources GetUpstream Sources Upstream Source Source Spec Nacos Source[] - The nacos source of apig upstream source.
- k8s_
sources Sequence[GetUpstream Sources Upstream Source Source Spec K8s Source] - The k8s source of apig upstream source.
- nacos_
sources Sequence[GetUpstream Sources Upstream Source Source Spec Nacos Source] - The nacos source of apig upstream source.
- k8s
Sources List<Property Map> - The k8s source of apig upstream source.
- nacos
Sources List<Property Map> - The nacos source of apig upstream source.
GetUpstreamSourcesUpstreamSourceSourceSpecK8sSource
- 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.
GetUpstreamSourcesUpstreamSourceSourceSpecNacosSource
- Address string
- The address of nacos source.
- Auth
Configs List<GetUpstream Sources Upstream 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
Id string - The nacos id of nacos source.
- Nacos
Name string - The nacos name of nacos source.
- Address string
- The address of nacos source.
- Auth
Configs []GetUpstream Sources Upstream 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
Id string - The nacos id of nacos source.
- Nacos
Name string - The nacos name of nacos source.
- address String
- The address of nacos source.
- auth
Configs List<GetUpstream Sources Upstream 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
Id String - The nacos id of nacos source.
- nacos
Name String - The nacos name of nacos source.
- address string
- The address of nacos source.
- auth
Configs GetUpstream Sources Upstream 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
Id string - The nacos id of nacos source.
- nacos
Name string - The nacos name of nacos source.
- address str
- The address of nacos source.
- auth_
configs Sequence[GetUpstream Sources Upstream 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_
id str - The nacos id of nacos source.
- nacos_
name str - The nacos name of nacos source.
- address String
- The address of nacos source.
- auth
Configs List<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
Id String - The nacos id of nacos source.
- nacos
Name String - The nacos name of nacos source.
GetUpstreamSourcesUpstreamSourceSourceSpecNacosSourceAuthConfig
- Basics
List<Get
Upstream Sources Upstream Source Source Spec Nacos Source Auth Config Basic> - The basic auth config of nacos source.
- Basics
[]Get
Upstream Sources Upstream Source Source Spec Nacos Source Auth Config Basic - The basic auth config of nacos source.
- basics
List<Get
Upstream Sources Upstream Source Source Spec Nacos Source Auth Config Basic> - The basic auth config of nacos source.
- basics
Get
Upstream Sources Upstream Source Source Spec Nacos Source Auth Config Basic[] - The basic auth config of nacos source.
- basics
Sequence[Get
Upstream Sources Upstream Source Source Spec Nacos Source Auth Config Basic] - The basic auth config of nacos source.
- basics List<Property Map>
- The basic auth config of nacos source.
GetUpstreamSourcesUpstreamSourceSourceSpecNacosSourceAuthConfigBasic
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.