tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getMysqlInstanceInfo
Start a Neo task
Explain and create a tencentcloud.getMysqlInstanceInfo resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of mysql instance_info
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const instanceInfo = tencentcloud.getMysqlInstanceInfo({
instanceId: "cdb-fitq5t9h",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
instance_info = tencentcloud.get_mysql_instance_info(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.GetMysqlInstanceInfo(ctx, &tencentcloud.GetMysqlInstanceInfoArgs{
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 instanceInfo = Tencentcloud.GetMysqlInstanceInfo.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.GetMysqlInstanceInfoArgs;
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 instanceInfo = TencentcloudFunctions.getMysqlInstanceInfo(GetMysqlInstanceInfoArgs.builder()
.instanceId("cdb-fitq5t9h")
.build());
}
}
variables:
instanceInfo:
fn::invoke:
function: tencentcloud:getMysqlInstanceInfo
arguments:
instanceId: cdb-fitq5t9h
Using getMysqlInstanceInfo
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 getMysqlInstanceInfo(args: GetMysqlInstanceInfoArgs, opts?: InvokeOptions): Promise<GetMysqlInstanceInfoResult>
function getMysqlInstanceInfoOutput(args: GetMysqlInstanceInfoOutputArgs, opts?: InvokeOptions): Output<GetMysqlInstanceInfoResult>def get_mysql_instance_info(id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMysqlInstanceInfoResult
def get_mysql_instance_info_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[GetMysqlInstanceInfoResult]func GetMysqlInstanceInfo(ctx *Context, args *GetMysqlInstanceInfoArgs, opts ...InvokeOption) (*GetMysqlInstanceInfoResult, error)
func GetMysqlInstanceInfoOutput(ctx *Context, args *GetMysqlInstanceInfoOutputArgs, opts ...InvokeOption) GetMysqlInstanceInfoResultOutput> Note: This function is named GetMysqlInstanceInfo in the Go SDK.
public static class GetMysqlInstanceInfo
{
public static Task<GetMysqlInstanceInfoResult> InvokeAsync(GetMysqlInstanceInfoArgs args, InvokeOptions? opts = null)
public static Output<GetMysqlInstanceInfoResult> Invoke(GetMysqlInstanceInfoInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMysqlInstanceInfoResult> getMysqlInstanceInfo(GetMysqlInstanceInfoArgs args, InvokeOptions options)
public static Output<GetMysqlInstanceInfoResult> getMysqlInstanceInfo(GetMysqlInstanceInfoArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMysqlInstanceInfo:getMysqlInstanceInfo
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - instance id.
- Id string
- Result
Output stringFile - Used to save results.
- Instance
Id string - instance id.
- Id string
- Result
Output stringFile - Used to save results.
- instance
Id String - instance id.
- id String
- result
Output StringFile - Used to save results.
- instance
Id string - instance id.
- id string
- result
Output stringFile - Used to save results.
- instance_
id str - instance id.
- id str
- result_
output_ strfile - Used to save results.
- instance
Id String - instance id.
- id String
- result
Output StringFile - Used to save results.
getMysqlInstanceInfo Result
The following output properties are available:
- Default
Kms stringRegion - The default region of the KMS service used by the current CDB backend service.
- Encryption string
- Whether to enable encryption, YES is enabled, NO is not enabled.
- Id string
- Instance
Id string - Instance
Name string - instance name.
- Key
Id string - The key ID used for encryption.
- Key
Region string - The region where the key is located.
- Result
Output stringFile
- Default
Kms stringRegion - The default region of the KMS service used by the current CDB backend service.
- Encryption string
- Whether to enable encryption, YES is enabled, NO is not enabled.
- Id string
- Instance
Id string - Instance
Name string - instance name.
- Key
Id string - The key ID used for encryption.
- Key
Region string - The region where the key is located.
- Result
Output stringFile
- default
Kms StringRegion - The default region of the KMS service used by the current CDB backend service.
- encryption String
- Whether to enable encryption, YES is enabled, NO is not enabled.
- id String
- instance
Id String - instance
Name String - instance name.
- key
Id String - The key ID used for encryption.
- key
Region String - The region where the key is located.
- result
Output StringFile
- default
Kms stringRegion - The default region of the KMS service used by the current CDB backend service.
- encryption string
- Whether to enable encryption, YES is enabled, NO is not enabled.
- id string
- instance
Id string - instance
Name string - instance name.
- key
Id string - The key ID used for encryption.
- key
Region string - The region where the key is located.
- result
Output stringFile
- default_
kms_ strregion - The default region of the KMS service used by the current CDB backend service.
- encryption str
- Whether to enable encryption, YES is enabled, NO is not enabled.
- id str
- instance_
id str - instance_
name str - instance name.
- key_
id str - The key ID used for encryption.
- key_
region str - The region where the key is located.
- result_
output_ strfile
- default
Kms StringRegion - The default region of the KMS service used by the current CDB backend service.
- encryption String
- Whether to enable encryption, YES is enabled, NO is not enabled.
- id String
- instance
Id String - instance
Name String - instance name.
- key
Id String - The key ID used for encryption.
- key
Region String - The region where the key is located.
- result
Output StringFile
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
