1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoImportZoneConfigOperation
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

    Provides a resource to import TEO zone configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getTeoExportZoneConfig({
        zoneId: "zone-id1",
        types: ["L7AccelerationConfig"],
    });
    const exampleTeoImportZoneConfigOperation = new tencentcloud.TeoImportZoneConfigOperation("example", {
        zoneId: "zone-id2",
        content: example.then(example => example.content),
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_teo_export_zone_config(zone_id="zone-id1",
        types=["L7AccelerationConfig"])
    example_teo_import_zone_config_operation = tencentcloud.TeoImportZoneConfigOperation("example",
        zone_id="zone-id2",
        content=example.content)
    
    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 {
    		example, err := tencentcloud.GetTeoExportZoneConfig(ctx, &tencentcloud.GetTeoExportZoneConfigArgs{
    			ZoneId: "zone-id1",
    			Types: []string{
    				"L7AccelerationConfig",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewTeoImportZoneConfigOperation(ctx, "example", &tencentcloud.TeoImportZoneConfigOperationArgs{
    			ZoneId:  pulumi.String("zone-id2"),
    			Content: pulumi.String(example.Content),
    		})
    		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-id1",
            Types = new[]
            {
                "L7AccelerationConfig",
            },
        });
    
        var exampleTeoImportZoneConfigOperation = new Tencentcloud.TeoImportZoneConfigOperation("example", new()
        {
            ZoneId = "zone-id2",
            Content = example.Apply(getTeoExportZoneConfigResult => getTeoExportZoneConfigResult.Content),
        });
    
    });
    
    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 com.pulumi.tencentcloud.TeoImportZoneConfigOperation;
    import com.pulumi.tencentcloud.TeoImportZoneConfigOperationArgs;
    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-id1")
                .types("L7AccelerationConfig")
                .build());
    
            var exampleTeoImportZoneConfigOperation = new TeoImportZoneConfigOperation("exampleTeoImportZoneConfigOperation", TeoImportZoneConfigOperationArgs.builder()
                .zoneId("zone-id2")
                .content(example.content())
                .build());
    
        }
    }
    
    resources:
      exampleTeoImportZoneConfigOperation:
        type: tencentcloud:TeoImportZoneConfigOperation
        name: example
        properties:
          zoneId: zone-id2
          content: ${example.content}
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getTeoExportZoneConfig
          arguments:
            zoneId: zone-id1
            types:
              - L7AccelerationConfig
    
    Example coming soon!
    

    Create TeoImportZoneConfigOperation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TeoImportZoneConfigOperation(name: string, args: TeoImportZoneConfigOperationArgs, opts?: CustomResourceOptions);
    @overload
    def TeoImportZoneConfigOperation(resource_name: str,
                                     args: TeoImportZoneConfigOperationArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoImportZoneConfigOperation(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     content: Optional[str] = None,
                                     zone_id: Optional[str] = None,
                                     teo_import_zone_config_operation_id: Optional[str] = None)
    func NewTeoImportZoneConfigOperation(ctx *Context, name string, args TeoImportZoneConfigOperationArgs, opts ...ResourceOption) (*TeoImportZoneConfigOperation, error)
    public TeoImportZoneConfigOperation(string name, TeoImportZoneConfigOperationArgs args, CustomResourceOptions? opts = null)
    public TeoImportZoneConfigOperation(String name, TeoImportZoneConfigOperationArgs args)
    public TeoImportZoneConfigOperation(String name, TeoImportZoneConfigOperationArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoImportZoneConfigOperation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_teoimportzoneconfigoperation" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TeoImportZoneConfigOperationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TeoImportZoneConfigOperationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TeoImportZoneConfigOperationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoImportZoneConfigOperationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoImportZoneConfigOperationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TeoImportZoneConfigOperation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TeoImportZoneConfigOperation resource accepts the following input properties:

    Content string
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    ZoneId string
    Site ID.
    TeoImportZoneConfigOperationId string
    ID of the resource.
    Content string
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    ZoneId string
    Site ID.
    TeoImportZoneConfigOperationId string
    ID of the resource.
    content string
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    zone_id string
    Site ID.
    teo_import_zone_config_operation_id string
    ID of the resource.
    content String
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    zoneId String
    Site ID.
    teoImportZoneConfigOperationId String
    ID of the resource.
    content string
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    zoneId string
    Site ID.
    teoImportZoneConfigOperationId string
    ID of the resource.
    content str
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    zone_id str
    Site ID.
    teo_import_zone_config_operation_id str
    ID of the resource.
    content String
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    zoneId String
    Site ID.
    teoImportZoneConfigOperationId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeoImportZoneConfigOperation resource produces the following output properties:

    FinishTime string
    The end time of the import task.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImportTime string
    The start time of the import task.
    Message string
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    Status string
    The import task status. Valid values: success, failure, doing.
    TaskId string
    The task ID of the import configuration operation.
    FinishTime string
    The end time of the import task.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImportTime string
    The start time of the import task.
    Message string
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    Status string
    The import task status. Valid values: success, failure, doing.
    TaskId string
    The task ID of the import configuration operation.
    finish_time string
    The end time of the import task.
    id string
    The provider-assigned unique ID for this managed resource.
    import_time string
    The start time of the import task.
    message string
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status string
    The import task status. Valid values: success, failure, doing.
    task_id string
    The task ID of the import configuration operation.
    finishTime String
    The end time of the import task.
    id String
    The provider-assigned unique ID for this managed resource.
    importTime String
    The start time of the import task.
    message String
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status String
    The import task status. Valid values: success, failure, doing.
    taskId String
    The task ID of the import configuration operation.
    finishTime string
    The end time of the import task.
    id string
    The provider-assigned unique ID for this managed resource.
    importTime string
    The start time of the import task.
    message string
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status string
    The import task status. Valid values: success, failure, doing.
    taskId string
    The task ID of the import configuration operation.
    finish_time str
    The end time of the import task.
    id str
    The provider-assigned unique ID for this managed resource.
    import_time str
    The start time of the import task.
    message str
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status str
    The import task status. Valid values: success, failure, doing.
    task_id str
    The task ID of the import configuration operation.
    finishTime String
    The end time of the import task.
    id String
    The provider-assigned unique ID for this managed resource.
    importTime String
    The start time of the import task.
    message String
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status String
    The import task status. Valid values: success, failure, doing.
    taskId String
    The task ID of the import configuration operation.

    Look up Existing TeoImportZoneConfigOperation Resource

    Get an existing TeoImportZoneConfigOperation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TeoImportZoneConfigOperationState, opts?: CustomResourceOptions): TeoImportZoneConfigOperation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content: Optional[str] = None,
            finish_time: Optional[str] = None,
            import_time: Optional[str] = None,
            message: Optional[str] = None,
            status: Optional[str] = None,
            task_id: Optional[str] = None,
            teo_import_zone_config_operation_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoImportZoneConfigOperation
    func GetTeoImportZoneConfigOperation(ctx *Context, name string, id IDInput, state *TeoImportZoneConfigOperationState, opts ...ResourceOption) (*TeoImportZoneConfigOperation, error)
    public static TeoImportZoneConfigOperation Get(string name, Input<string> id, TeoImportZoneConfigOperationState? state, CustomResourceOptions? opts = null)
    public static TeoImportZoneConfigOperation get(String name, Output<String> id, TeoImportZoneConfigOperationState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoImportZoneConfigOperation    get:      id: ${id}
    import {
      to = tencentcloud_teoimportzoneconfigoperation.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Content string
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    FinishTime string
    The end time of the import task.
    ImportTime string
    The start time of the import task.
    Message string
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    Status string
    The import task status. Valid values: success, failure, doing.
    TaskId string
    The task ID of the import configuration operation.
    TeoImportZoneConfigOperationId string
    ID of the resource.
    ZoneId string
    Site ID.
    Content string
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    FinishTime string
    The end time of the import task.
    ImportTime string
    The start time of the import task.
    Message string
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    Status string
    The import task status. Valid values: success, failure, doing.
    TaskId string
    The task ID of the import configuration operation.
    TeoImportZoneConfigOperationId string
    ID of the resource.
    ZoneId string
    Site ID.
    content string
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    finish_time string
    The end time of the import task.
    import_time string
    The start time of the import task.
    message string
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status string
    The import task status. Valid values: success, failure, doing.
    task_id string
    The task ID of the import configuration operation.
    teo_import_zone_config_operation_id string
    ID of the resource.
    zone_id string
    Site ID.
    content String
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    finishTime String
    The end time of the import task.
    importTime String
    The start time of the import task.
    message String
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status String
    The import task status. Valid values: success, failure, doing.
    taskId String
    The task ID of the import configuration operation.
    teoImportZoneConfigOperationId String
    ID of the resource.
    zoneId String
    Site ID.
    content string
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    finishTime string
    The end time of the import task.
    importTime string
    The start time of the import task.
    message string
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status string
    The import task status. Valid values: success, failure, doing.
    taskId string
    The task ID of the import configuration operation.
    teoImportZoneConfigOperationId string
    ID of the resource.
    zoneId string
    Site ID.
    content str
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    finish_time str
    The end time of the import task.
    import_time str
    The start time of the import task.
    message str
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status str
    The import task status. Valid values: success, failure, doing.
    task_id str
    The task ID of the import configuration operation.
    teo_import_zone_config_operation_id str
    ID of the resource.
    zone_id str
    Site ID.
    content String
    The configuration content to import. It must be in JSON format and encoded in UTF-8. You can obtain the configuration content via the tencentcloud.getTeoExportZoneConfig data source.
    finishTime String
    The end time of the import task.
    importTime String
    The start time of the import task.
    message String
    The status message of the import task. When the configuration import fails, you can view the failure reason through this field.
    status String
    The import task status. Valid values: success, failure, doing.
    taskId String
    The task ID of the import configuration operation.
    teoImportZoneConfigOperationId String
    ID of the resource.
    zoneId String
    Site ID.

    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.