1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMysqlDbFeatures
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.getMysqlDbFeatures

Explore with Pulumi AI

tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

Use this data source to query detailed information of mysql db_features

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const dbFeatures = tencentcloud.getMysqlDbFeatures({
    instanceId: "cdb-fitq5t9h",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

db_features = tencentcloud.get_mysql_db_features(instance_id="cdb-fitq5t9h")
Copy
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.GetMysqlDbFeatures(ctx, &tencentcloud.GetMysqlDbFeaturesArgs{
			InstanceId: "cdb-fitq5t9h",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var dbFeatures = Tencentcloud.GetMysqlDbFeatures.Invoke(new()
    {
        InstanceId = "cdb-fitq5t9h",
    });

});
Copy
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.GetMysqlDbFeaturesArgs;
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 dbFeatures = TencentcloudFunctions.getMysqlDbFeatures(GetMysqlDbFeaturesArgs.builder()
            .instanceId("cdb-fitq5t9h")
            .build());

    }
}
Copy
variables:
  dbFeatures:
    fn::invoke:
      function: tencentcloud:getMysqlDbFeatures
      arguments:
        instanceId: cdb-fitq5t9h
Copy

Using getMysqlDbFeatures

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 getMysqlDbFeatures(args: GetMysqlDbFeaturesArgs, opts?: InvokeOptions): Promise<GetMysqlDbFeaturesResult>
function getMysqlDbFeaturesOutput(args: GetMysqlDbFeaturesOutputArgs, opts?: InvokeOptions): Output<GetMysqlDbFeaturesResult>
Copy
def get_mysql_db_features(id: Optional[str] = None,
                          instance_id: Optional[str] = None,
                          result_output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetMysqlDbFeaturesResult
def get_mysql_db_features_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[GetMysqlDbFeaturesResult]
Copy
func GetMysqlDbFeatures(ctx *Context, args *GetMysqlDbFeaturesArgs, opts ...InvokeOption) (*GetMysqlDbFeaturesResult, error)
func GetMysqlDbFeaturesOutput(ctx *Context, args *GetMysqlDbFeaturesOutputArgs, opts ...InvokeOption) GetMysqlDbFeaturesResultOutput
Copy

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

public static class GetMysqlDbFeatures 
{
    public static Task<GetMysqlDbFeaturesResult> InvokeAsync(GetMysqlDbFeaturesArgs args, InvokeOptions? opts = null)
    public static Output<GetMysqlDbFeaturesResult> Invoke(GetMysqlDbFeaturesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMysqlDbFeaturesResult> getMysqlDbFeatures(GetMysqlDbFeaturesArgs args, InvokeOptions options)
public static Output<GetMysqlDbFeaturesResult> getMysqlDbFeatures(GetMysqlDbFeaturesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getMysqlDbFeatures:getMysqlDbFeatures
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
Instance ID, the format is: cdb-c1nl9rpv or cdbro-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
Id string
ResultOutputFile string
Used to save results.
InstanceId This property is required. string
Instance ID, the format is: cdb-c1nl9rpv or cdbro-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
Id string
ResultOutputFile string
Used to save results.
instanceId This property is required. String
Instance ID, the format is: cdb-c1nl9rpv or cdbro-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
id String
resultOutputFile String
Used to save results.
instanceId This property is required. string
Instance ID, the format is: cdb-c1nl9rpv or cdbro-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
id string
resultOutputFile string
Used to save results.
instance_id This property is required. str
Instance ID, the format is: cdb-c1nl9rpv or cdbro-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
id str
result_output_file str
Used to save results.
instanceId This property is required. String
Instance ID, the format is: cdb-c1nl9rpv or cdbro-c1nl9rpv, which is the same as the instance ID displayed on the cloud database console page.
id String
resultOutputFile String
Used to save results.

getMysqlDbFeatures Result

The following output properties are available:

AuditNeedUpgrade bool
Whether to enable auditing needs to upgrade the kernel version.
CurrentSubVersion string
Current kernel version.
EncryptionNeedUpgrade bool
Whether to enable encryption needs to upgrade the kernel version.
Id string
InstanceId string
IsRemoteRo bool
Whether it is a remote read-only instance.
IsSupportAudit bool
Whether to support the database audit function.
IsSupportEncryption bool
Whether to support the database encryption function.
IsSupportUpdateSubVersion bool
Whether to support minor version upgrades.
MasterRegion string
The region where the master instance is located.
TargetSubVersion string
Available kernel versions for upgrade.
ResultOutputFile string
AuditNeedUpgrade bool
Whether to enable auditing needs to upgrade the kernel version.
CurrentSubVersion string
Current kernel version.
EncryptionNeedUpgrade bool
Whether to enable encryption needs to upgrade the kernel version.
Id string
InstanceId string
IsRemoteRo bool
Whether it is a remote read-only instance.
IsSupportAudit bool
Whether to support the database audit function.
IsSupportEncryption bool
Whether to support the database encryption function.
IsSupportUpdateSubVersion bool
Whether to support minor version upgrades.
MasterRegion string
The region where the master instance is located.
TargetSubVersion string
Available kernel versions for upgrade.
ResultOutputFile string
auditNeedUpgrade Boolean
Whether to enable auditing needs to upgrade the kernel version.
currentSubVersion String
Current kernel version.
encryptionNeedUpgrade Boolean
Whether to enable encryption needs to upgrade the kernel version.
id String
instanceId String
isRemoteRo Boolean
Whether it is a remote read-only instance.
isSupportAudit Boolean
Whether to support the database audit function.
isSupportEncryption Boolean
Whether to support the database encryption function.
isSupportUpdateSubVersion Boolean
Whether to support minor version upgrades.
masterRegion String
The region where the master instance is located.
targetSubVersion String
Available kernel versions for upgrade.
resultOutputFile String
auditNeedUpgrade boolean
Whether to enable auditing needs to upgrade the kernel version.
currentSubVersion string
Current kernel version.
encryptionNeedUpgrade boolean
Whether to enable encryption needs to upgrade the kernel version.
id string
instanceId string
isRemoteRo boolean
Whether it is a remote read-only instance.
isSupportAudit boolean
Whether to support the database audit function.
isSupportEncryption boolean
Whether to support the database encryption function.
isSupportUpdateSubVersion boolean
Whether to support minor version upgrades.
masterRegion string
The region where the master instance is located.
targetSubVersion string
Available kernel versions for upgrade.
resultOutputFile string
audit_need_upgrade bool
Whether to enable auditing needs to upgrade the kernel version.
current_sub_version str
Current kernel version.
encryption_need_upgrade bool
Whether to enable encryption needs to upgrade the kernel version.
id str
instance_id str
is_remote_ro bool
Whether it is a remote read-only instance.
is_support_audit bool
Whether to support the database audit function.
is_support_encryption bool
Whether to support the database encryption function.
is_support_update_sub_version bool
Whether to support minor version upgrades.
master_region str
The region where the master instance is located.
target_sub_version str
Available kernel versions for upgrade.
result_output_file str
auditNeedUpgrade Boolean
Whether to enable auditing needs to upgrade the kernel version.
currentSubVersion String
Current kernel version.
encryptionNeedUpgrade Boolean
Whether to enable encryption needs to upgrade the kernel version.
id String
instanceId String
isRemoteRo Boolean
Whether it is a remote read-only instance.
isSupportAudit Boolean
Whether to support the database audit function.
isSupportEncryption Boolean
Whether to support the database encryption function.
isSupportUpdateSubVersion Boolean
Whether to support minor version upgrades.
masterRegion String
The region where the master instance is located.
targetSubVersion String
Available kernel versions for upgrade.
resultOutputFile String

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack