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

tencentcloud.getMysqlCloneList

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 mysql clone_list

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const cloneList = tencentcloud.getMysqlCloneList({
        instanceId: "cdb-fitq5t9h",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    clone_list = tencentcloud.get_mysql_clone_list(instance_id="cdb-fitq5t9h")
    
    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.GetMysqlCloneList(ctx, &tencentcloud.GetMysqlCloneListArgs{
    			InstanceId: "cdb-fitq5t9h",
    		}, 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 cloneList = Tencentcloud.GetMysqlCloneList.Invoke(new()
        {
            InstanceId = "cdb-fitq5t9h",
        });
    
    });
    
    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.GetMysqlCloneListArgs;
    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 cloneList = TencentcloudFunctions.getMysqlCloneList(GetMysqlCloneListArgs.builder()
                .instanceId("cdb-fitq5t9h")
                .build());
    
        }
    }
    
    variables:
      cloneList:
        fn::invoke:
          function: tencentcloud:getMysqlCloneList
          arguments:
            instanceId: cdb-fitq5t9h
    

    Using getMysqlCloneList

    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 getMysqlCloneList(args: GetMysqlCloneListArgs, opts?: InvokeOptions): Promise<GetMysqlCloneListResult>
    function getMysqlCloneListOutput(args: GetMysqlCloneListOutputArgs, opts?: InvokeOptions): Output<GetMysqlCloneListResult>
    def get_mysql_clone_list(id: Optional[str] = None,
                             instance_id: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetMysqlCloneListResult
    def get_mysql_clone_list_output(id: Optional[pulumi.Input[str]] = None,
                             instance_id: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetMysqlCloneListResult]
    func GetMysqlCloneList(ctx *Context, args *GetMysqlCloneListArgs, opts ...InvokeOption) (*GetMysqlCloneListResult, error)
    func GetMysqlCloneListOutput(ctx *Context, args *GetMysqlCloneListOutputArgs, opts ...InvokeOption) GetMysqlCloneListResultOutput

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

    public static class GetMysqlCloneList 
    {
        public static Task<GetMysqlCloneListResult> InvokeAsync(GetMysqlCloneListArgs args, InvokeOptions? opts = null)
        public static Output<GetMysqlCloneListResult> Invoke(GetMysqlCloneListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMysqlCloneListResult> getMysqlCloneList(GetMysqlCloneListArgs args, InvokeOptions options)
    public static Output<GetMysqlCloneListResult> getMysqlCloneList(GetMysqlCloneListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMysqlCloneList:getMysqlCloneList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Query the list of cloning tasks for the specified source instance.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    Query the list of cloning tasks for the specified source instance.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    Query the list of cloning tasks for the specified source instance.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    Query the list of cloning tasks for the specified source instance.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    Query the list of cloning tasks for the specified source instance.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    Query the list of cloning tasks for the specified source instance.
    id String
    resultOutputFile String
    Used to save results.

    getMysqlCloneList Result

    The following output properties are available:

    Id string
    InstanceId string
    Items []GetMysqlCloneListItem
    Clone task list.
    ResultOutputFile string
    id string
    instanceId string
    items GetMysqlCloneListItem[]
    Clone task list.
    resultOutputFile string
    id String
    instanceId String
    items List<Property Map>
    Clone task list.
    resultOutputFile String

    Supporting Types

    GetMysqlCloneListItem

    CloneJobId double
    Id of the task list corresponding to the clone task.
    DstInstanceId string
    The newly spawned instance Id of the clone task.
    EndTime string
    Task end time.
    NewRegionId double
    Id of the region where the cloned instance is located.
    RollbackStrategy string
    The strategy used by the clone instance includes the following types: timepoint: specify the point-in-time rollback, backupset: specify the backup file rollback.
    RollbackTargetTime string
    The time point when the clone instance is rolled back.
    SrcInstanceId string
    The source instance Id of the clone task.
    SrcRegionId double
    Id of the region where the source instance is located.
    StartTime string
    Task start time.
    TaskStatus string
    Task status, including the following status: initial, running, wait_complete, success, failed.
    CloneJobId float64
    Id of the task list corresponding to the clone task.
    DstInstanceId string
    The newly spawned instance Id of the clone task.
    EndTime string
    Task end time.
    NewRegionId float64
    Id of the region where the cloned instance is located.
    RollbackStrategy string
    The strategy used by the clone instance includes the following types: timepoint: specify the point-in-time rollback, backupset: specify the backup file rollback.
    RollbackTargetTime string
    The time point when the clone instance is rolled back.
    SrcInstanceId string
    The source instance Id of the clone task.
    SrcRegionId float64
    Id of the region where the source instance is located.
    StartTime string
    Task start time.
    TaskStatus string
    Task status, including the following status: initial, running, wait_complete, success, failed.
    cloneJobId Double
    Id of the task list corresponding to the clone task.
    dstInstanceId String
    The newly spawned instance Id of the clone task.
    endTime String
    Task end time.
    newRegionId Double
    Id of the region where the cloned instance is located.
    rollbackStrategy String
    The strategy used by the clone instance includes the following types: timepoint: specify the point-in-time rollback, backupset: specify the backup file rollback.
    rollbackTargetTime String
    The time point when the clone instance is rolled back.
    srcInstanceId String
    The source instance Id of the clone task.
    srcRegionId Double
    Id of the region where the source instance is located.
    startTime String
    Task start time.
    taskStatus String
    Task status, including the following status: initial, running, wait_complete, success, failed.
    cloneJobId number
    Id of the task list corresponding to the clone task.
    dstInstanceId string
    The newly spawned instance Id of the clone task.
    endTime string
    Task end time.
    newRegionId number
    Id of the region where the cloned instance is located.
    rollbackStrategy string
    The strategy used by the clone instance includes the following types: timepoint: specify the point-in-time rollback, backupset: specify the backup file rollback.
    rollbackTargetTime string
    The time point when the clone instance is rolled back.
    srcInstanceId string
    The source instance Id of the clone task.
    srcRegionId number
    Id of the region where the source instance is located.
    startTime string
    Task start time.
    taskStatus string
    Task status, including the following status: initial, running, wait_complete, success, failed.
    clone_job_id float
    Id of the task list corresponding to the clone task.
    dst_instance_id str
    The newly spawned instance Id of the clone task.
    end_time str
    Task end time.
    new_region_id float
    Id of the region where the cloned instance is located.
    rollback_strategy str
    The strategy used by the clone instance includes the following types: timepoint: specify the point-in-time rollback, backupset: specify the backup file rollback.
    rollback_target_time str
    The time point when the clone instance is rolled back.
    src_instance_id str
    The source instance Id of the clone task.
    src_region_id float
    Id of the region where the source instance is located.
    start_time str
    Task start time.
    task_status str
    Task status, including the following status: initial, running, wait_complete, success, failed.
    cloneJobId Number
    Id of the task list corresponding to the clone task.
    dstInstanceId String
    The newly spawned instance Id of the clone task.
    endTime String
    Task end time.
    newRegionId Number
    Id of the region where the cloned instance is located.
    rollbackStrategy String
    The strategy used by the clone instance includes the following types: timepoint: specify the point-in-time rollback, backupset: specify the backup file rollback.
    rollbackTargetTime String
    The time point when the clone instance is rolled back.
    srcInstanceId String
    The source instance Id of the clone task.
    srcRegionId Number
    Id of the region where the source instance is located.
    startTime String
    Task start time.
    taskStatus String
    Task status, including the following status: initial, running, wait_complete, success, failed.

    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