tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getMysqlInstanceRebootTime
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 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 dictionaryThe 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
- ResultOutput stringFile 
- 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
- ResultOutput stringFile 
- 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
- resultOutput StringFile 
- 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
- resultOutput stringFile 
- 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_ strfile 
- 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
- resultOutput StringFile 
- Used to save results.
getMysqlInstanceRebootTime Result
The following output properties are available:
- Id string
- InstanceIds List<string>
- Items
List<GetMysql Instance Reboot Time Item> 
- Returned parameter information.
- ResultOutput stringFile 
- Id string
- InstanceIds []string
- Items
[]GetMysql Instance Reboot Time Item 
- Returned parameter information.
- ResultOutput stringFile 
- id String
- instanceIds List<String>
- items
List<GetMysql Instance Reboot Time Item> 
- Returned parameter information.
- resultOutput StringFile 
- id string
- instanceIds string[]
- items
GetMysql Instance Reboot Time Item[] 
- Returned parameter information.
- resultOutput stringFile 
- id str
- instance_ids Sequence[str]
- items
Sequence[GetMysql Instance Reboot Time Item] 
- Returned parameter information.
- result_output_ strfile 
- id String
- instanceIds List<String>
- items List<Property Map>
- Returned parameter information.
- resultOutput StringFile 
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.
- TimeIn doubleSeconds 
- 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.
- TimeIn float64Seconds 
- 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.
- timeIn DoubleSeconds 
- 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.
- timeIn numberSeconds 
- 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_ floatseconds 
- 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.
- timeIn NumberSeconds 
- expected restart time.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack