1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMysqlInstanceInfo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getMysqlInstanceInfo

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The following arguments are supported:

    InstanceId string
    instance id.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    instance id.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    instance id.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    instance id.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    instance id.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    instance id.
    id String
    resultOutputFile String
    Used to save results.

    getMysqlInstanceInfo Result

    The following output properties are available:

    DefaultKmsRegion string
    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
    InstanceId string
    InstanceName string
    instance name.
    KeyId string
    The key ID used for encryption.
    KeyRegion string
    The region where the key is located.
    ResultOutputFile string
    DefaultKmsRegion string
    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
    InstanceId string
    InstanceName string
    instance name.
    KeyId string
    The key ID used for encryption.
    KeyRegion string
    The region where the key is located.
    ResultOutputFile string
    defaultKmsRegion String
    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
    instanceId String
    instanceName String
    instance name.
    keyId String
    The key ID used for encryption.
    keyRegion String
    The region where the key is located.
    resultOutputFile String
    defaultKmsRegion string
    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
    instanceId string
    instanceName string
    instance name.
    keyId string
    The key ID used for encryption.
    keyRegion string
    The region where the key is located.
    resultOutputFile string
    default_kms_region str
    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_file str
    defaultKmsRegion String
    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
    instanceId String
    instanceName String
    instance name.
    keyId String
    The key ID used for encryption.
    keyRegion String
    The region where the key is located.
    resultOutputFile String

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack