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

tencentcloud.getMysqlInstanceRebootTime

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 instance_reboot_time

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const instanceRebootTime = tencentcloud.getMysqlInstanceRebootTime({
        instanceIds: ["cdb-fitq5t9h"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    instance_reboot_time = tencentcloud.get_mysql_instance_reboot_time(instance_ids=["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.GetMysqlInstanceRebootTime(ctx, &tencentcloud.GetMysqlInstanceRebootTimeArgs{
    			InstanceIds: []string{
    				"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 instanceRebootTime = Tencentcloud.GetMysqlInstanceRebootTime.Invoke(new()
        {
            InstanceIds = new[]
            {
                "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.GetMysqlInstanceRebootTimeArgs;
    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 instanceRebootTime = TencentcloudFunctions.getMysqlInstanceRebootTime(GetMysqlInstanceRebootTimeArgs.builder()
                .instanceIds("cdb-fitq5t9h")
                .build());
    
        }
    }
    
    variables:
      instanceRebootTime:
        fn::invoke:
          function: tencentcloud:getMysqlInstanceRebootTime
          arguments:
            instanceIds:
              - cdb-fitq5t9h
    

    Using getMysqlInstanceRebootTime

    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 getMysqlInstanceRebootTime(args: GetMysqlInstanceRebootTimeArgs, opts?: InvokeOptions): Promise<GetMysqlInstanceRebootTimeResult>
    function getMysqlInstanceRebootTimeOutput(args: GetMysqlInstanceRebootTimeOutputArgs, opts?: InvokeOptions): Output<GetMysqlInstanceRebootTimeResult>
    def get_mysql_instance_reboot_time(id: Optional[str] = None,
                                       instance_ids: Optional[Sequence[str]] = None,
                                       result_output_file: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetMysqlInstanceRebootTimeResult
    def get_mysql_instance_reboot_time_output(id: Optional[pulumi.Input[str]] = None,
                                       instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                       result_output_file: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetMysqlInstanceRebootTimeResult]
    func GetMysqlInstanceRebootTime(ctx *Context, args *GetMysqlInstanceRebootTimeArgs, opts ...InvokeOption) (*GetMysqlInstanceRebootTimeResult, error)
    func GetMysqlInstanceRebootTimeOutput(ctx *Context, args *GetMysqlInstanceRebootTimeOutputArgs, opts ...InvokeOption) GetMysqlInstanceRebootTimeResultOutput

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

    public static class GetMysqlInstanceRebootTime 
    {
        public static Task<GetMysqlInstanceRebootTimeResult> InvokeAsync(GetMysqlInstanceRebootTimeArgs args, InvokeOptions? opts = null)
        public static Output<GetMysqlInstanceRebootTimeResult> Invoke(GetMysqlInstanceRebootTimeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMysqlInstanceRebootTimeResult> getMysqlInstanceRebootTime(GetMysqlInstanceRebootTimeArgs args, InvokeOptions options)
    public static Output<GetMysqlInstanceRebootTimeResult> getMysqlInstanceRebootTime(GetMysqlInstanceRebootTimeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMysqlInstanceRebootTime:getMysqlInstanceRebootTime
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceIds List<string>
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceIds []string
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceIds List<String>
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    id String
    resultOutputFile String
    Used to save results.
    instanceIds string[]
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    id string
    resultOutputFile string
    Used to save results.
    instance_ids Sequence[str]
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    id str
    result_output_file str
    Used to save results.
    instanceIds List<String>
    The instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page.
    id String
    resultOutputFile String
    Used to save results.

    getMysqlInstanceRebootTime Result

    The following output properties are available:

    Id string
    InstanceIds List<string>
    Items List<GetMysqlInstanceRebootTimeItem>
    Returned parameter information.
    ResultOutputFile string
    Id string
    InstanceIds []string
    Items []GetMysqlInstanceRebootTimeItem
    Returned parameter information.
    ResultOutputFile string
    id String
    instanceIds List<String>
    items List<GetMysqlInstanceRebootTimeItem>
    Returned parameter information.
    resultOutputFile String
    id string
    instanceIds string[]
    items GetMysqlInstanceRebootTimeItem[]
    Returned parameter information.
    resultOutputFile string
    id str
    instance_ids Sequence[str]
    items Sequence[GetMysqlInstanceRebootTimeItem]
    Returned parameter information.
    result_output_file str
    id String
    instanceIds List<String>
    items List<Property Map>
    Returned parameter information.
    resultOutputFile String

    Supporting Types

    GetMysqlInstanceRebootTimeItem

    InstanceId string
    Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
    TimeInSeconds double
    expected restart time.
    InstanceId string
    Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
    TimeInSeconds float64
    expected restart time.
    instanceId String
    Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
    timeInSeconds Double
    expected restart time.
    instanceId string
    Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
    timeInSeconds number
    expected restart time.
    instance_id str
    Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
    time_in_seconds float
    expected restart time.
    instanceId String
    Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
    timeInSeconds Number
    expected restart time.

    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