1. Registry
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. getTeoEnvironments
Viewing docs for tencentcloud 1.83.38
published on Friday, Oct 23, 2026 by tencentcloudstack
tencentcloud
Viewing docs for tencentcloud 1.83.38
published on Friday, Oct 23, 2026 by tencentcloudstack

    Use this data source to query detailed information of TEO environments, including the environment list and the source version (source_version) of each effective config group version.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const teoEnvironments = tencentcloud.getTeoEnvironments({
        zoneId: "zone-2qtuhspy7cr6",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    teo_environments = tencentcloud.get_teo_environments(zone_id="zone-2qtuhspy7cr6")
    
    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.GetTeoEnvironments(ctx, &tencentcloud.GetTeoEnvironmentsArgs{
    			ZoneId: "zone-2qtuhspy7cr6",
    		}, 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 teoEnvironments = Tencentcloud.GetTeoEnvironments.Invoke(new()
        {
            ZoneId = "zone-2qtuhspy7cr6",
        });
    
    });
    
    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.GetTeoEnvironmentsArgs;
    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 teoEnvironments = TencentcloudFunctions.getTeoEnvironments(GetTeoEnvironmentsArgs.builder()
                .zoneId("zone-2qtuhspy7cr6")
                .build());
    
        }
    }
    
    variables:
      teoEnvironments:
        fn::invoke:
          function: tencentcloud:getTeoEnvironments
          arguments:
            zoneId: zone-2qtuhspy7cr6
    
    Example coming soon!
    

    API Reference

    This data source queries the following TencentCloud APIs:

    Using getTeoEnvironments

    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 getTeoEnvironments(args: GetTeoEnvironmentsArgs, opts?: InvokeOptions): Promise<GetTeoEnvironmentsResult>
    function getTeoEnvironmentsOutput(args: GetTeoEnvironmentsOutputArgs, opts?: InvokeOutputOptions): Output<GetTeoEnvironmentsResult>
    def get_teo_environments(id: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             zone_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetTeoEnvironmentsResult
    def get_teo_environments_output(id: pulumi.Input[Optional[str]] = None,
                             result_output_file: pulumi.Input[Optional[str]] = None,
                             zone_id: pulumi.Input[Optional[str]] = None,
                             opts: Optional[InvokeOutputOptions] = None) -> Output[GetTeoEnvironmentsResult]
    func GetTeoEnvironments(ctx *Context, args *GetTeoEnvironmentsArgs, opts ...InvokeOption) (*GetTeoEnvironmentsResult, error)
    func GetTeoEnvironmentsOutput(ctx *Context, args *GetTeoEnvironmentsOutputArgs, opts ...InvokeOption) GetTeoEnvironmentsResultOutput

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

    public static class GetTeoEnvironments 
    {
        public static Task<GetTeoEnvironmentsResult> InvokeAsync(GetTeoEnvironmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetTeoEnvironmentsResult> Invoke(GetTeoEnvironmentsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTeoEnvironmentsResult> Invoke(GetTeoEnvironmentsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTeoEnvironmentsResult> getTeoEnvironments(GetTeoEnvironmentsArgs args, InvokeOptions options)
    public static Output<GetTeoEnvironmentsResult> getTeoEnvironments(GetTeoEnvironmentsArgs args, InvokeOptions options)
    public static Output<GetTeoEnvironmentsResult> getTeoEnvironments(GetTeoEnvironmentsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTeoEnvironments:getTeoEnvironments
      arguments:
        # arguments dictionary
    data "tencentcloud_get_teo_environments" "name" {
        # arguments
    }

    The following arguments are supported:

    ZoneId string
    Zone ID.
    Id string
    ResultOutputFile string
    Used to save results.
    ZoneId string
    Zone ID.
    Id string
    ResultOutputFile string
    Used to save results.
    zone_id string
    Zone ID.
    id string
    result_output_file string
    Used to save results.
    zoneId String
    Zone ID.
    id String
    resultOutputFile String
    Used to save results.
    zoneId string
    Zone ID.
    id string
    resultOutputFile string
    Used to save results.
    zone_id str
    Zone ID.
    id str
    result_output_file str
    Used to save results.
    zoneId String
    Zone ID.
    id String
    resultOutputFile String
    Used to save results.

    getTeoEnvironments Result

    The following output properties are available:

    env_infos list(object)
    Environment list.
    id string
    zone_id string
    result_output_file string
    envInfos List<Property Map>
    Environment list.
    id String
    zoneId String
    resultOutputFile String

    Supporting Types

    GetTeoEnvironmentsEnvInfo

    CreateTime string
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    CurrentConfigGroupVersionInfos List<GetTeoEnvironmentsEnvInfoCurrentConfigGroupVersionInfo>
    For the effective versions of each configuration group in the current environment, there are two possible scenarios based on the value of Status: When Status is set to version_deploying, the returned value of this field represents the previously effective version. In other words, during the deployment of the new version, the effective version is the one that was in effect before any changes were made. When Status is set to running, the value returned by this field is the currently effective version.
    EnvId string
    Environment ID.
    EnvType string
    Environment type. Valid values: production (Production environment), staging (Test environment).
    Scopes List<string>
    Effective scope of the configuration in the current environment. Valid values: ALL (It takes effect on the entire network when EnvType is set to production), It returns the IP address of the test node for host binding during testing when EnvType is set to staging.
    Status string
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    UpdateTime string
    CreateTime string
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    CurrentConfigGroupVersionInfos []GetTeoEnvironmentsEnvInfoCurrentConfigGroupVersionInfo
    For the effective versions of each configuration group in the current environment, there are two possible scenarios based on the value of Status: When Status is set to version_deploying, the returned value of this field represents the previously effective version. In other words, during the deployment of the new version, the effective version is the one that was in effect before any changes were made. When Status is set to running, the value returned by this field is the currently effective version.
    EnvId string
    Environment ID.
    EnvType string
    Environment type. Valid values: production (Production environment), staging (Test environment).
    Scopes []string
    Effective scope of the configuration in the current environment. Valid values: ALL (It takes effect on the entire network when EnvType is set to production), It returns the IP address of the test node for host binding during testing when EnvType is set to staging.
    Status string
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    UpdateTime string
    create_time string
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    current_config_group_version_infos list(object)
    For the effective versions of each configuration group in the current environment, there are two possible scenarios based on the value of Status: When Status is set to version_deploying, the returned value of this field represents the previously effective version. In other words, during the deployment of the new version, the effective version is the one that was in effect before any changes were made. When Status is set to running, the value returned by this field is the currently effective version.
    env_id string
    Environment ID.
    env_type string
    Environment type. Valid values: production (Production environment), staging (Test environment).
    scopes list(string)
    Effective scope of the configuration in the current environment. Valid values: ALL (It takes effect on the entire network when EnvType is set to production), It returns the IP address of the test node for host binding during testing when EnvType is set to staging.
    status string
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    update_time string
    createTime String
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    currentConfigGroupVersionInfos List<GetTeoEnvironmentsEnvInfoCurrentConfigGroupVersionInfo>
    For the effective versions of each configuration group in the current environment, there are two possible scenarios based on the value of Status: When Status is set to version_deploying, the returned value of this field represents the previously effective version. In other words, during the deployment of the new version, the effective version is the one that was in effect before any changes were made. When Status is set to running, the value returned by this field is the currently effective version.
    envId String
    Environment ID.
    envType String
    Environment type. Valid values: production (Production environment), staging (Test environment).
    scopes List<String>
    Effective scope of the configuration in the current environment. Valid values: ALL (It takes effect on the entire network when EnvType is set to production), It returns the IP address of the test node for host binding during testing when EnvType is set to staging.
    status String
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    updateTime String
    createTime string
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    currentConfigGroupVersionInfos GetTeoEnvironmentsEnvInfoCurrentConfigGroupVersionInfo[]
    For the effective versions of each configuration group in the current environment, there are two possible scenarios based on the value of Status: When Status is set to version_deploying, the returned value of this field represents the previously effective version. In other words, during the deployment of the new version, the effective version is the one that was in effect before any changes were made. When Status is set to running, the value returned by this field is the currently effective version.
    envId string
    Environment ID.
    envType string
    Environment type. Valid values: production (Production environment), staging (Test environment).
    scopes string[]
    Effective scope of the configuration in the current environment. Valid values: ALL (It takes effect on the entire network when EnvType is set to production), It returns the IP address of the test node for host binding during testing when EnvType is set to staging.
    status string
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    updateTime string
    create_time str
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    current_config_group_version_infos Sequence[GetTeoEnvironmentsEnvInfoCurrentConfigGroupVersionInfo]
    For the effective versions of each configuration group in the current environment, there are two possible scenarios based on the value of Status: When Status is set to version_deploying, the returned value of this field represents the previously effective version. In other words, during the deployment of the new version, the effective version is the one that was in effect before any changes were made. When Status is set to running, the value returned by this field is the currently effective version.
    env_id str
    Environment ID.
    env_type str
    Environment type. Valid values: production (Production environment), staging (Test environment).
    scopes Sequence[str]
    Effective scope of the configuration in the current environment. Valid values: ALL (It takes effect on the entire network when EnvType is set to production), It returns the IP address of the test node for host binding during testing when EnvType is set to staging.
    status str
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    update_time str
    createTime String
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    currentConfigGroupVersionInfos List<Property Map>
    For the effective versions of each configuration group in the current environment, there are two possible scenarios based on the value of Status: When Status is set to version_deploying, the returned value of this field represents the previously effective version. In other words, during the deployment of the new version, the effective version is the one that was in effect before any changes were made. When Status is set to running, the value returned by this field is the currently effective version.
    envId String
    Environment ID.
    envType String
    Environment type. Valid values: production (Production environment), staging (Test environment).
    scopes List<String>
    Effective scope of the configuration in the current environment. Valid values: ALL (It takes effect on the entire network when EnvType is set to production), It returns the IP address of the test node for host binding during testing when EnvType is set to staging.
    status String
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    updateTime String

    GetTeoEnvironmentsEnvInfoCurrentConfigGroupVersionInfo

    CreateTime string
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    Description string
    Version description.
    GroupId string
    Configuraration group ID.
    GroupType string
    Configuration group type. Valid values: l7_acceleration (L7 acceleration configuration group), edge_functions (Edge function configuration group).
    SourceVersion string
    The source version ID that the config group version was derived from.
    Status string
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    VersionId string
    Version ID.
    VersionNumber string
    Version No.
    CreateTime string
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    Description string
    Version description.
    GroupId string
    Configuraration group ID.
    GroupType string
    Configuration group type. Valid values: l7_acceleration (L7 acceleration configuration group), edge_functions (Edge function configuration group).
    SourceVersion string
    The source version ID that the config group version was derived from.
    Status string
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    VersionId string
    Version ID.
    VersionNumber string
    Version No.
    create_time string
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    description string
    Version description.
    group_id string
    Configuraration group ID.
    group_type string
    Configuration group type. Valid values: l7_acceleration (L7 acceleration configuration group), edge_functions (Edge function configuration group).
    source_version string
    The source version ID that the config group version was derived from.
    status string
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    version_id string
    Version ID.
    version_number string
    Version No.
    createTime String
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    description String
    Version description.
    groupId String
    Configuraration group ID.
    groupType String
    Configuration group type. Valid values: l7_acceleration (L7 acceleration configuration group), edge_functions (Edge function configuration group).
    sourceVersion String
    The source version ID that the config group version was derived from.
    status String
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    versionId String
    Version ID.
    versionNumber String
    Version No.
    createTime string
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    description string
    Version description.
    groupId string
    Configuraration group ID.
    groupType string
    Configuration group type. Valid values: l7_acceleration (L7 acceleration configuration group), edge_functions (Edge function configuration group).
    sourceVersion string
    The source version ID that the config group version was derived from.
    status string
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    versionId string
    Version ID.
    versionNumber string
    Version No.
    create_time str
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    description str
    Version description.
    group_id str
    Configuraration group ID.
    group_type str
    Configuration group type. Valid values: l7_acceleration (L7 acceleration configuration group), edge_functions (Edge function configuration group).
    source_version str
    The source version ID that the config group version was derived from.
    status str
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    version_id str
    Version ID.
    version_number str
    Version No.
    createTime String
    Version creation time. The time format follows the ISO 8601 standard and is represented in Coordinated Universal Time (UTC).
    description String
    Version description.
    groupId String
    Configuraration group ID.
    groupType String
    Configuration group type. Valid values: l7_acceleration (L7 acceleration configuration group), edge_functions (Edge function configuration group).
    sourceVersion String
    The source version ID that the config group version was derived from.
    status String
    Environment status. Valid values: creating (Being created), running (The environment is stable, with version changes allowed), version_deploying (The version is currently being deployed, with no more changes allowed).
    versionId String
    Version ID.
    versionNumber String
    Version No.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud
    Viewing docs for tencentcloud 1.83.38
    published on Friday, Oct 23, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial