tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getApiGatewayUpstreams
Start a Neo task
Explain and create a tencentcloud.getApiGatewayUpstreams resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of apigateway upstream
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getApiGatewayUpstreams({
upstreamId: "upstream-4n5bfklc",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_api_gateway_upstreams(upstream_id="upstream-4n5bfklc")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.LookupApiGatewayUpstreams(ctx, &tencentcloud.LookupApiGatewayUpstreamsArgs{
UpstreamId: "upstream-4n5bfklc",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetApiGatewayUpstreams.Invoke(new()
{
UpstreamId = "upstream-4n5bfklc",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetApiGatewayUpstreamsArgs;
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 example = TencentcloudFunctions.getApiGatewayUpstreams(GetApiGatewayUpstreamsArgs.builder()
.upstreamId("upstream-4n5bfklc")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getApiGatewayUpstreams
arguments:
upstreamId: upstream-4n5bfklc
Using getApiGatewayUpstreams
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 getApiGatewayUpstreams(args: GetApiGatewayUpstreamsArgs, opts?: InvokeOptions): Promise<GetApiGatewayUpstreamsResult>
function getApiGatewayUpstreamsOutput(args: GetApiGatewayUpstreamsOutputArgs, opts?: InvokeOptions): Output<GetApiGatewayUpstreamsResult>def get_api_gateway_upstreams(filters: Optional[Sequence[GetApiGatewayUpstreamsFilter]] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
upstream_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiGatewayUpstreamsResult
def get_api_gateway_upstreams_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetApiGatewayUpstreamsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
upstream_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApiGatewayUpstreamsResult]func LookupApiGatewayUpstreams(ctx *Context, args *LookupApiGatewayUpstreamsArgs, opts ...InvokeOption) (*LookupApiGatewayUpstreamsResult, error)
func LookupApiGatewayUpstreamsOutput(ctx *Context, args *LookupApiGatewayUpstreamsOutputArgs, opts ...InvokeOption) LookupApiGatewayUpstreamsResultOutput> Note: This function is named LookupApiGatewayUpstreams in the Go SDK.
public static class GetApiGatewayUpstreams
{
public static Task<GetApiGatewayUpstreamsResult> InvokeAsync(GetApiGatewayUpstreamsArgs args, InvokeOptions? opts = null)
public static Output<GetApiGatewayUpstreamsResult> Invoke(GetApiGatewayUpstreamsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApiGatewayUpstreamsResult> getApiGatewayUpstreams(GetApiGatewayUpstreamsArgs args, InvokeOptions options)
public static Output<GetApiGatewayUpstreamsResult> getApiGatewayUpstreams(GetApiGatewayUpstreamsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getApiGatewayUpstreams:getApiGatewayUpstreams
arguments:
# arguments dictionaryThe following arguments are supported:
- Upstream
Id string - Backend channel ID.
- Filters
List<Get
Api Gateway Upstreams Filter> - ServiceId and ApiId filtering queries.
- Id string
- Result
Output stringFile - Used to save results.
- Upstream
Id string - Backend channel ID.
- Filters
[]Get
Api Gateway Upstreams Filter - ServiceId and ApiId filtering queries.
- Id string
- Result
Output stringFile - Used to save results.
- upstream
Id String - Backend channel ID.
- filters
List<Get
Api Gateway Upstreams Filter> - ServiceId and ApiId filtering queries.
- id String
- result
Output StringFile - Used to save results.
- upstream
Id string - Backend channel ID.
- filters
Get
Api Gateway Upstreams Filter[] - ServiceId and ApiId filtering queries.
- id string
- result
Output stringFile - Used to save results.
- upstream_
id str - Backend channel ID.
- filters
Sequence[Get
Api Gateway Upstreams Filter] - ServiceId and ApiId filtering queries.
- id str
- result_
output_ strfile - Used to save results.
- upstream
Id String - Backend channel ID.
- filters List<Property Map>
- ServiceId and ApiId filtering queries.
- id String
- result
Output StringFile - Used to save results.
getApiGatewayUpstreams Result
The following output properties are available:
- Id string
- Results
List<Get
Api Gateway Upstreams Result> - Query Results.
- Upstream
Id string - Filters
List<Get
Api Gateway Upstreams Filter> - Result
Output stringFile
- Id string
- Results
[]Get
Api Gateway Upstreams Result - Query Results.
- Upstream
Id string - Filters
[]Get
Api Gateway Upstreams Filter - Result
Output stringFile
- id String
- results
List<Get
Api Gateway Upstreams Result> - Query Results.
- upstream
Id String - filters
List<Get
Api Gateway Upstreams Filter> - result
Output StringFile
- id string
- results
Get
Api Gateway Upstreams Result[] - Query Results.
- upstream
Id string - filters
Get
Api Gateway Upstreams Filter[] - result
Output stringFile
- id String
- results List<Property Map>
- Query Results.
- upstream
Id String - filters List<Property Map>
- result
Output StringFile
Supporting Types
GetApiGatewayUpstreamsFilter
GetApiGatewayUpstreamsResult
- Api
Id string - API Unique ID.
- Api
Name string - API nameNote: This field may return null, indicating that a valid value cannot be obtained.
- Bind
Time string - binding time.
- Service
Id string - Service Unique ID.
- Service
Name string - Service NameNote: This field may return null, indicating that a valid value cannot be obtained.
- Api
Id string - API Unique ID.
- Api
Name string - API nameNote: This field may return null, indicating that a valid value cannot be obtained.
- Bind
Time string - binding time.
- Service
Id string - Service Unique ID.
- Service
Name string - Service NameNote: This field may return null, indicating that a valid value cannot be obtained.
- api
Id String - API Unique ID.
- api
Name String - API nameNote: This field may return null, indicating that a valid value cannot be obtained.
- bind
Time String - binding time.
- service
Id String - Service Unique ID.
- service
Name String - Service NameNote: This field may return null, indicating that a valid value cannot be obtained.
- api
Id string - API Unique ID.
- api
Name string - API nameNote: This field may return null, indicating that a valid value cannot be obtained.
- bind
Time string - binding time.
- service
Id string - Service Unique ID.
- service
Name string - Service NameNote: This field may return null, indicating that a valid value cannot be obtained.
- api_
id str - API Unique ID.
- api_
name str - API nameNote: This field may return null, indicating that a valid value cannot be obtained.
- bind_
time str - binding time.
- service_
id str - Service Unique ID.
- service_
name str - Service NameNote: This field may return null, indicating that a valid value cannot be obtained.
- api
Id String - API Unique ID.
- api
Name String - API nameNote: This field may return null, indicating that a valid value cannot be obtained.
- bind
Time String - binding time.
- service
Id String - Service Unique ID.
- service
Name String - Service NameNote: This field may return null, indicating that a valid value cannot be obtained.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
