tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getMysqlInstanceCharset
Start a Neo task
Explain and create a tencentcloud.getMysqlInstanceCharset resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of mysql instance_charset
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const instanceCharset = tencentcloud.getMysqlInstanceCharset({
instanceId: "",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
instance_charset = tencentcloud.get_mysql_instance_charset(instance_id="")
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.GetMysqlInstanceCharset(ctx, &tencentcloud.GetMysqlInstanceCharsetArgs{
InstanceId: "",
}, 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 instanceCharset = Tencentcloud.GetMysqlInstanceCharset.Invoke(new()
{
InstanceId = "",
});
});
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.GetMysqlInstanceCharsetArgs;
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 instanceCharset = TencentcloudFunctions.getMysqlInstanceCharset(GetMysqlInstanceCharsetArgs.builder()
.instanceId("")
.build());
}
}
variables:
instanceCharset:
fn::invoke:
function: tencentcloud:getMysqlInstanceCharset
arguments:
instanceId: ""
Using getMysqlInstanceCharset
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 getMysqlInstanceCharset(args: GetMysqlInstanceCharsetArgs, opts?: InvokeOptions): Promise<GetMysqlInstanceCharsetResult>
function getMysqlInstanceCharsetOutput(args: GetMysqlInstanceCharsetOutputArgs, opts?: InvokeOptions): Output<GetMysqlInstanceCharsetResult>def get_mysql_instance_charset(id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMysqlInstanceCharsetResult
def get_mysql_instance_charset_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[GetMysqlInstanceCharsetResult]func GetMysqlInstanceCharset(ctx *Context, args *GetMysqlInstanceCharsetArgs, opts ...InvokeOption) (*GetMysqlInstanceCharsetResult, error)
func GetMysqlInstanceCharsetOutput(ctx *Context, args *GetMysqlInstanceCharsetOutputArgs, opts ...InvokeOption) GetMysqlInstanceCharsetResultOutput> Note: This function is named GetMysqlInstanceCharset in the Go SDK.
public static class GetMysqlInstanceCharset
{
public static Task<GetMysqlInstanceCharsetResult> InvokeAsync(GetMysqlInstanceCharsetArgs args, InvokeOptions? opts = null)
public static Output<GetMysqlInstanceCharsetResult> Invoke(GetMysqlInstanceCharsetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMysqlInstanceCharsetResult> getMysqlInstanceCharset(GetMysqlInstanceCharsetArgs args, InvokeOptions options)
public static Output<GetMysqlInstanceCharsetResult> getMysqlInstanceCharset(GetMysqlInstanceCharsetArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMysqlInstanceCharset:getMysqlInstanceCharset
arguments:
# arguments dictionaryThe following arguments are supported:
- 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, and you can use the [query instance list] (https://cloud.tencent.com/document/api/236/15872) interface Gets the value of the field InstanceId in the output parameter.
- Id string
- Result
Output stringFile - Used to save results.
- 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, and you can use the [query instance list] (https://cloud.tencent.com/document/api/236/15872) interface Gets the value of the field InstanceId in the output parameter.
- Id string
- Result
Output stringFile - Used to save results.
- 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, and you can use the [query instance list] (https://cloud.tencent.com/document/api/236/15872) interface Gets the value of the field InstanceId in the output parameter.
- id String
- result
Output StringFile - Used to save results.
- 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, and you can use the [query instance list] (https://cloud.tencent.com/document/api/236/15872) interface Gets the value of the field InstanceId in the output parameter.
- id string
- result
Output stringFile - Used to save results.
- 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, and you can use the [query instance list] (https://cloud.tencent.com/document/api/236/15872) interface Gets the value of the field InstanceId in the output parameter.
- id str
- result_
output_ strfile - Used to save results.
- 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, and you can use the [query instance list] (https://cloud.tencent.com/document/api/236/15872) interface Gets the value of the field InstanceId in the output parameter.
- id String
- result
Output StringFile - Used to save results.
getMysqlInstanceCharset Result
The following output properties are available:
- Charset string
- The default character set of the instance, such as
latin1,utf8etc. - Id string
- Instance
Id string - Result
Output stringFile
- Charset string
- The default character set of the instance, such as
latin1,utf8etc. - Id string
- Instance
Id string - Result
Output stringFile
- charset String
- The default character set of the instance, such as
latin1,utf8etc. - id String
- instance
Id String - result
Output StringFile
- charset string
- The default character set of the instance, such as
latin1,utf8etc. - id string
- instance
Id string - result
Output stringFile
- charset str
- The default character set of the instance, such as
latin1,utf8etc. - id str
- instance_
id str - result_
output_ strfile
- charset String
- The default character set of the instance, such as
latin1,utf8etc. - id String
- instance
Id String - 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.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
