1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getApiGatewayUpstreams
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getApiGatewayUpstreams

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The following arguments are supported:

    UpstreamId string
    Backend channel ID.
    Filters List<GetApiGatewayUpstreamsFilter>
    ServiceId and ApiId filtering queries.
    Id string
    ResultOutputFile string
    Used to save results.
    UpstreamId string
    Backend channel ID.
    Filters []GetApiGatewayUpstreamsFilter
    ServiceId and ApiId filtering queries.
    Id string
    ResultOutputFile string
    Used to save results.
    upstreamId String
    Backend channel ID.
    filters List<GetApiGatewayUpstreamsFilter>
    ServiceId and ApiId filtering queries.
    id String
    resultOutputFile String
    Used to save results.
    upstreamId string
    Backend channel ID.
    filters GetApiGatewayUpstreamsFilter[]
    ServiceId and ApiId filtering queries.
    id string
    resultOutputFile string
    Used to save results.
    upstream_id str
    Backend channel ID.
    filters Sequence[GetApiGatewayUpstreamsFilter]
    ServiceId and ApiId filtering queries.
    id str
    result_output_file str
    Used to save results.
    upstreamId String
    Backend channel ID.
    filters List<Property Map>
    ServiceId and ApiId filtering queries.
    id String
    resultOutputFile String
    Used to save results.

    getApiGatewayUpstreams Result

    The following output properties are available:

    Supporting Types

    GetApiGatewayUpstreamsFilter

    Name string
    Fields that need to be filtered.
    Values List<string>
    The filtering value of the field.
    Name string
    Fields that need to be filtered.
    Values []string
    The filtering value of the field.
    name String
    Fields that need to be filtered.
    values List<String>
    The filtering value of the field.
    name string
    Fields that need to be filtered.
    values string[]
    The filtering value of the field.
    name str
    Fields that need to be filtered.
    values Sequence[str]
    The filtering value of the field.
    name String
    Fields that need to be filtered.
    values List<String>
    The filtering value of the field.

    GetApiGatewayUpstreamsResult

    ApiId string
    API Unique ID.
    ApiName string
    API nameNote: This field may return null, indicating that a valid value cannot be obtained.
    BindTime string
    binding time.
    ServiceId string
    Service Unique ID.
    ServiceName string
    Service NameNote: This field may return null, indicating that a valid value cannot be obtained.
    ApiId string
    API Unique ID.
    ApiName string
    API nameNote: This field may return null, indicating that a valid value cannot be obtained.
    BindTime string
    binding time.
    ServiceId string
    Service Unique ID.
    ServiceName string
    Service NameNote: This field may return null, indicating that a valid value cannot be obtained.
    apiId String
    API Unique ID.
    apiName String
    API nameNote: This field may return null, indicating that a valid value cannot be obtained.
    bindTime String
    binding time.
    serviceId String
    Service Unique ID.
    serviceName String
    Service NameNote: This field may return null, indicating that a valid value cannot be obtained.
    apiId string
    API Unique ID.
    apiName string
    API nameNote: This field may return null, indicating that a valid value cannot be obtained.
    bindTime string
    binding time.
    serviceId string
    Service Unique ID.
    serviceName 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.
    apiId String
    API Unique ID.
    apiName String
    API nameNote: This field may return null, indicating that a valid value cannot be obtained.
    bindTime String
    binding time.
    serviceId String
    Service Unique ID.
    serviceName 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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack