published on Monday, May 11, 2026 by tencentcloudstack
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.
- Zone
Id string - Site ID.
- Teo
Import stringZone Config Operation Id - 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 stringZone Config Operation Id - 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_ stringzone_ config_ operation_ id - 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 StringZone Config Operation Id - 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 stringZone Config Operation Id - 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_ strzone_ config_ operation_ id - 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 StringZone Config Operation Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoImportZoneConfigOperation resource produces the following output properties:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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) -> TeoImportZoneConfigOperationfunc 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.
- 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 stringZone Config Operation Id - 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.
- 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 stringZone Config Operation Id - 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.
- 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_ stringzone_ config_ operation_ id - 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.
- 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 StringZone Config Operation Id - 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.
- 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 stringZone Config Operation Id - ID of the resource.
- zone
Id 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_ strzone_ config_ operation_ id - 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.
- 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 StringZone Config Operation Id - ID of the resource.
- zone
Id String - Site ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
