1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. getTeoExportZoneConfig
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Use this data source to export TEO (EdgeOne) site configuration

    Example Usage

    Export all types of zone configuration

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getTeoExportZoneConfig({
        zoneId: "zone-3fkff38fyw8s",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_teo_export_zone_config(zone_id="zone-3fkff38fyw8s")
    
    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.GetTeoExportZoneConfig(ctx, &tencentcloud.GetTeoExportZoneConfigArgs{
    			ZoneId: "zone-3fkff38fyw8s",
    		}, 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.GetTeoExportZoneConfig.Invoke(new()
        {
            ZoneId = "zone-3fkff38fyw8s",
        });
    
    });
    
    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.GetTeoExportZoneConfigArgs;
    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.getTeoExportZoneConfig(GetTeoExportZoneConfigArgs.builder()
                .zoneId("zone-3fkff38fyw8s")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getTeoExportZoneConfig
          arguments:
            zoneId: zone-3fkff38fyw8s
    
    Example coming soon!
    

    Export specific types of zone configuration

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getTeoExportZoneConfig({
        zoneId: "zone-3fkff38fyw8s",
        types: ["L7AccelerationConfig"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_teo_export_zone_config(zone_id="zone-3fkff38fyw8s",
        types=["L7AccelerationConfig"])
    
    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.GetTeoExportZoneConfig(ctx, &tencentcloud.GetTeoExportZoneConfigArgs{
    			ZoneId: "zone-3fkff38fyw8s",
    			Types: []string{
    				"L7AccelerationConfig",
    			},
    		}, 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.GetTeoExportZoneConfig.Invoke(new()
        {
            ZoneId = "zone-3fkff38fyw8s",
            Types = new[]
            {
                "L7AccelerationConfig",
            },
        });
    
    });
    
    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.GetTeoExportZoneConfigArgs;
    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.getTeoExportZoneConfig(GetTeoExportZoneConfigArgs.builder()
                .zoneId("zone-3fkff38fyw8s")
                .types("L7AccelerationConfig")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getTeoExportZoneConfig
          arguments:
            zoneId: zone-3fkff38fyw8s
            types:
              - L7AccelerationConfig
    
    Example coming soon!
    

    Using getTeoExportZoneConfig

    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 getTeoExportZoneConfig(args: GetTeoExportZoneConfigArgs, opts?: InvokeOptions): Promise<GetTeoExportZoneConfigResult>
    function getTeoExportZoneConfigOutput(args: GetTeoExportZoneConfigOutputArgs, opts?: InvokeOptions): Output<GetTeoExportZoneConfigResult>
    def get_teo_export_zone_config(id: Optional[str] = None,
                                   result_output_file: Optional[str] = None,
                                   types: Optional[Sequence[str]] = None,
                                   zone_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetTeoExportZoneConfigResult
    def get_teo_export_zone_config_output(id: pulumi.Input[Optional[str]] = None,
                                   result_output_file: pulumi.Input[Optional[str]] = None,
                                   types: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                                   zone_id: pulumi.Input[Optional[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetTeoExportZoneConfigResult]
    func GetTeoExportZoneConfig(ctx *Context, args *GetTeoExportZoneConfigArgs, opts ...InvokeOption) (*GetTeoExportZoneConfigResult, error)
    func GetTeoExportZoneConfigOutput(ctx *Context, args *GetTeoExportZoneConfigOutputArgs, opts ...InvokeOption) GetTeoExportZoneConfigResultOutput

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

    public static class GetTeoExportZoneConfig 
    {
        public static Task<GetTeoExportZoneConfigResult> InvokeAsync(GetTeoExportZoneConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetTeoExportZoneConfigResult> Invoke(GetTeoExportZoneConfigInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTeoExportZoneConfigResult> getTeoExportZoneConfig(GetTeoExportZoneConfigArgs args, InvokeOptions options)
    public static Output<GetTeoExportZoneConfigResult> getTeoExportZoneConfig(GetTeoExportZoneConfigArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTeoExportZoneConfig:getTeoExportZoneConfig
      arguments:
        # arguments dictionary
    data "tencentcloud_getteoexportzoneconfig" "name" {
        # arguments
    }

    The following arguments are supported:

    ZoneId string
    Specifies the site ID.
    Id string
    ResultOutputFile string
    Used to save results.
    Types List<string>
    Types of configuration to export. If not specified, all types of configuration will be exported. Valid values: L7AccelerationConfig, WebSecurity.
    ZoneId string
    Specifies the site ID.
    Id string
    ResultOutputFile string
    Used to save results.
    Types []string
    Types of configuration to export. If not specified, all types of configuration will be exported. Valid values: L7AccelerationConfig, WebSecurity.
    zone_id string
    Specifies the site ID.
    id string
    result_output_file string
    Used to save results.
    types list(string)
    Types of configuration to export. If not specified, all types of configuration will be exported. Valid values: L7AccelerationConfig, WebSecurity.
    zoneId String
    Specifies the site ID.
    id String
    resultOutputFile String
    Used to save results.
    types List<String>
    Types of configuration to export. If not specified, all types of configuration will be exported. Valid values: L7AccelerationConfig, WebSecurity.
    zoneId string
    Specifies the site ID.
    id string
    resultOutputFile string
    Used to save results.
    types string[]
    Types of configuration to export. If not specified, all types of configuration will be exported. Valid values: L7AccelerationConfig, WebSecurity.
    zone_id str
    Specifies the site ID.
    id str
    result_output_file str
    Used to save results.
    types Sequence[str]
    Types of configuration to export. If not specified, all types of configuration will be exported. Valid values: L7AccelerationConfig, WebSecurity.
    zoneId String
    Specifies the site ID.
    id String
    resultOutputFile String
    Used to save results.
    types List<String>
    Types of configuration to export. If not specified, all types of configuration will be exported. Valid values: L7AccelerationConfig, WebSecurity.

    getTeoExportZoneConfig Result

    The following output properties are available:

    Content string
    Exported zone configuration content in JSON format.
    Id string
    ZoneId string
    ResultOutputFile string
    Types List<string>
    Content string
    Exported zone configuration content in JSON format.
    Id string
    ZoneId string
    ResultOutputFile string
    Types []string
    content string
    Exported zone configuration content in JSON format.
    id string
    zone_id string
    result_output_file string
    types list(string)
    content String
    Exported zone configuration content in JSON format.
    id String
    zoneId String
    resultOutputFile String
    types List<String>
    content string
    Exported zone configuration content in JSON format.
    id string
    zoneId string
    resultOutputFile string
    types string[]
    content str
    Exported zone configuration content in JSON format.
    id str
    zone_id str
    result_output_file str
    types Sequence[str]
    content String
    Exported zone configuration content in JSON format.
    id String
    zoneId String
    resultOutputFile String
    types List<String>

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.