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

tencentcloud.getApiGatewayServiceEnvironmentList

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 service_environment_list

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getApiGatewayServiceEnvironmentList({
        serviceId: "service-nxz6yync",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_api_gateway_service_environment_list(service_id="service-nxz6yync")
    
    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.LookupApiGatewayServiceEnvironmentList(ctx, &tencentcloud.LookupApiGatewayServiceEnvironmentListArgs{
    			ServiceId: "service-nxz6yync",
    		}, 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.GetApiGatewayServiceEnvironmentList.Invoke(new()
        {
            ServiceId = "service-nxz6yync",
        });
    
    });
    
    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.GetApiGatewayServiceEnvironmentListArgs;
    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.getApiGatewayServiceEnvironmentList(GetApiGatewayServiceEnvironmentListArgs.builder()
                .serviceId("service-nxz6yync")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getApiGatewayServiceEnvironmentList
          arguments:
            serviceId: service-nxz6yync
    

    Using getApiGatewayServiceEnvironmentList

    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 getApiGatewayServiceEnvironmentList(args: GetApiGatewayServiceEnvironmentListArgs, opts?: InvokeOptions): Promise<GetApiGatewayServiceEnvironmentListResult>
    function getApiGatewayServiceEnvironmentListOutput(args: GetApiGatewayServiceEnvironmentListOutputArgs, opts?: InvokeOptions): Output<GetApiGatewayServiceEnvironmentListResult>
    def get_api_gateway_service_environment_list(id: Optional[str] = None,
                                                 result_output_file: Optional[str] = None,
                                                 service_id: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetApiGatewayServiceEnvironmentListResult
    def get_api_gateway_service_environment_list_output(id: Optional[pulumi.Input[str]] = None,
                                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                                 service_id: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetApiGatewayServiceEnvironmentListResult]
    func LookupApiGatewayServiceEnvironmentList(ctx *Context, args *LookupApiGatewayServiceEnvironmentListArgs, opts ...InvokeOption) (*LookupApiGatewayServiceEnvironmentListResult, error)
    func LookupApiGatewayServiceEnvironmentListOutput(ctx *Context, args *LookupApiGatewayServiceEnvironmentListOutputArgs, opts ...InvokeOption) LookupApiGatewayServiceEnvironmentListResultOutput

    > Note: This function is named LookupApiGatewayServiceEnvironmentList in the Go SDK.

    public static class GetApiGatewayServiceEnvironmentList 
    {
        public static Task<GetApiGatewayServiceEnvironmentListResult> InvokeAsync(GetApiGatewayServiceEnvironmentListArgs args, InvokeOptions? opts = null)
        public static Output<GetApiGatewayServiceEnvironmentListResult> Invoke(GetApiGatewayServiceEnvironmentListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApiGatewayServiceEnvironmentListResult> getApiGatewayServiceEnvironmentList(GetApiGatewayServiceEnvironmentListArgs args, InvokeOptions options)
    public static Output<GetApiGatewayServiceEnvironmentListResult> getApiGatewayServiceEnvironmentList(GetApiGatewayServiceEnvironmentListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getApiGatewayServiceEnvironmentList:getApiGatewayServiceEnvironmentList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceId string
    The unique ID of the service to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    ServiceId string
    The unique ID of the service to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    serviceId String
    The unique ID of the service to be queried.
    id String
    resultOutputFile String
    Used to save results.
    serviceId string
    The unique ID of the service to be queried.
    id string
    resultOutputFile string
    Used to save results.
    service_id str
    The unique ID of the service to be queried.
    id str
    result_output_file str
    Used to save results.
    serviceId String
    The unique ID of the service to be queried.
    id String
    resultOutputFile String
    Used to save results.

    getApiGatewayServiceEnvironmentList Result

    The following output properties are available:

    Id string
    Results List<GetApiGatewayServiceEnvironmentListResult>
    Service binding environment details.Note: This field may return null, indicating that no valid value can be obtained.
    ServiceId string
    ResultOutputFile string
    Id string
    Results []GetApiGatewayServiceEnvironmentListResult
    Service binding environment details.Note: This field may return null, indicating that no valid value can be obtained.
    ServiceId string
    ResultOutputFile string
    id String
    results List<GetApiGatewayServiceEnvironmentListResult>
    Service binding environment details.Note: This field may return null, indicating that no valid value can be obtained.
    serviceId String
    resultOutputFile String
    id string
    results GetApiGatewayServiceEnvironmentListResult[]
    Service binding environment details.Note: This field may return null, indicating that no valid value can be obtained.
    serviceId string
    resultOutputFile string
    id str
    results Sequence[GetApiGatewayServiceEnvironmentListResult]
    Service binding environment details.Note: This field may return null, indicating that no valid value can be obtained.
    service_id str
    result_output_file str
    id String
    results List<Property Map>
    Service binding environment details.Note: This field may return null, indicating that no valid value can be obtained.
    serviceId String
    resultOutputFile String

    Supporting Types

    GetApiGatewayServiceEnvironmentListResult

    EnvironmentName string
    Environment name.
    Status double
    Release status, 1 means released, 0 means not released.
    Url string
    Access path.
    VersionName string
    Running version.
    EnvironmentName string
    Environment name.
    Status float64
    Release status, 1 means released, 0 means not released.
    Url string
    Access path.
    VersionName string
    Running version.
    environmentName String
    Environment name.
    status Double
    Release status, 1 means released, 0 means not released.
    url String
    Access path.
    versionName String
    Running version.
    environmentName string
    Environment name.
    status number
    Release status, 1 means released, 0 means not released.
    url string
    Access path.
    versionName string
    Running version.
    environment_name str
    Environment name.
    status float
    Release status, 1 means released, 0 means not released.
    url str
    Access path.
    version_name str
    Running version.
    environmentName String
    Environment name.
    status Number
    Release status, 1 means released, 0 means not released.
    url String
    Access path.
    versionName String
    Running version.

    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