tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getMysqlInstanceRebootTime
Start a Neo task
Explain and create a tencentcloud.getMysqlInstanceRebootTime resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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:
- Instance
Ids 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
- Result
Output stringFile - Used to save results.
- Instance
Ids []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
- Result
Output stringFile - Used to save results.
- instance
Ids 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
- result
Output StringFile - Used to save results.
- instance
Ids 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
- result
Output 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.
- instance
Ids 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
- result
Output StringFile - Used to save results.
getMysqlInstanceRebootTime Result
The following output properties are available:
- Id string
- Instance
Ids List<string> - Items
List<Get
Mysql Instance Reboot Time Item> - Returned parameter information.
- Result
Output stringFile
- Id string
- Instance
Ids []string - Items
[]Get
Mysql Instance Reboot Time Item - Returned parameter information.
- Result
Output stringFile
- id String
- instance
Ids List<String> - items
List<Get
Mysql Instance Reboot Time Item> - Returned parameter information.
- result
Output StringFile
- id string
- instance
Ids string[] - items
Get
Mysql Instance Reboot Time Item[] - Returned parameter information.
- result
Output stringFile
- id str
- instance_
ids Sequence[str] - items
Sequence[Get
Mysql Instance Reboot Time Item] - Returned parameter information.
- result_
output_ strfile
- id String
- instance
Ids List<String> - items List<Property Map>
- Returned parameter information.
- result
Output StringFile
Supporting Types
GetMysqlInstanceRebootTimeItem
- Instance
Id string - Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
- Time
In doubleSeconds - expected restart time.
- Instance
Id string - Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
- Time
In float64Seconds - expected restart time.
- instance
Id String - Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
- time
In DoubleSeconds - expected restart time.
- instance
Id string - Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
- time
In 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.
- instance
Id String - Instance ID, the format is: cdb-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
- time
In 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.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
