1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMysqlRoMinScale
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.getMysqlRoMinScale

Explore with Pulumi AI

tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

Use this data source to query detailed information of mysql ro_min_scale

Example Usage

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

const roMinScale = tencentcloud.getMysqlRoMinScale({
    masterInstanceId: "cdb-fitq5t9h",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

ro_min_scale = tencentcloud.get_mysql_ro_min_scale(master_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.GetMysqlRoMinScale(ctx, &tencentcloud.GetMysqlRoMinScaleArgs{
			MasterInstanceId: pulumi.StringRef("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 roMinScale = Tencentcloud.GetMysqlRoMinScale.Invoke(new()
    {
        MasterInstanceId = "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.GetMysqlRoMinScaleArgs;
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 roMinScale = TencentcloudFunctions.getMysqlRoMinScale(GetMysqlRoMinScaleArgs.builder()
            .masterInstanceId("cdb-fitq5t9h")
            .build());

    }
}
Copy
variables:
  roMinScale:
    fn::invoke:
      function: tencentcloud:getMysqlRoMinScale
      arguments:
        masterInstanceId: cdb-fitq5t9h
Copy

Using getMysqlRoMinScale

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 getMysqlRoMinScale(args: GetMysqlRoMinScaleArgs, opts?: InvokeOptions): Promise<GetMysqlRoMinScaleResult>
function getMysqlRoMinScaleOutput(args: GetMysqlRoMinScaleOutputArgs, opts?: InvokeOptions): Output<GetMysqlRoMinScaleResult>
Copy
def get_mysql_ro_min_scale(id: Optional[str] = None,
                           master_instance_id: Optional[str] = None,
                           result_output_file: Optional[str] = None,
                           ro_instance_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetMysqlRoMinScaleResult
def get_mysql_ro_min_scale_output(id: Optional[pulumi.Input[str]] = None,
                           master_instance_id: Optional[pulumi.Input[str]] = None,
                           result_output_file: Optional[pulumi.Input[str]] = None,
                           ro_instance_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetMysqlRoMinScaleResult]
Copy
func GetMysqlRoMinScale(ctx *Context, args *GetMysqlRoMinScaleArgs, opts ...InvokeOption) (*GetMysqlRoMinScaleResult, error)
func GetMysqlRoMinScaleOutput(ctx *Context, args *GetMysqlRoMinScaleOutputArgs, opts ...InvokeOption) GetMysqlRoMinScaleResultOutput
Copy

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

public static class GetMysqlRoMinScale 
{
    public static Task<GetMysqlRoMinScaleResult> InvokeAsync(GetMysqlRoMinScaleArgs args, InvokeOptions? opts = null)
    public static Output<GetMysqlRoMinScaleResult> Invoke(GetMysqlRoMinScaleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMysqlRoMinScaleResult> getMysqlRoMinScale(GetMysqlRoMinScaleArgs args, InvokeOptions options)
public static Output<GetMysqlRoMinScaleResult> getMysqlRoMinScale(GetMysqlRoMinScaleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getMysqlRoMinScale:getMysqlRoMinScale
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
MasterInstanceId string
The primary instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the RoInstanceId parameter cannot be empty at the same time. Note that when the input parameter contains RoInstanceId, the return value is the minimum specification when the read-only instance is upgraded; when the input parameter only contains MasterInstanceId, the return value is the minimum specification when the read-only instance is purchased.
ResultOutputFile string
Used to save results.
RoInstanceId string
The read-only instance ID, in the format: cdbro-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the MasterInstanceId parameter cannot be empty at the same time.
Id string
MasterInstanceId string
The primary instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the RoInstanceId parameter cannot be empty at the same time. Note that when the input parameter contains RoInstanceId, the return value is the minimum specification when the read-only instance is upgraded; when the input parameter only contains MasterInstanceId, the return value is the minimum specification when the read-only instance is purchased.
ResultOutputFile string
Used to save results.
RoInstanceId string
The read-only instance ID, in the format: cdbro-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the MasterInstanceId parameter cannot be empty at the same time.
id String
masterInstanceId String
The primary instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the RoInstanceId parameter cannot be empty at the same time. Note that when the input parameter contains RoInstanceId, the return value is the minimum specification when the read-only instance is upgraded; when the input parameter only contains MasterInstanceId, the return value is the minimum specification when the read-only instance is purchased.
resultOutputFile String
Used to save results.
roInstanceId String
The read-only instance ID, in the format: cdbro-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the MasterInstanceId parameter cannot be empty at the same time.
id string
masterInstanceId string
The primary instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the RoInstanceId parameter cannot be empty at the same time. Note that when the input parameter contains RoInstanceId, the return value is the minimum specification when the read-only instance is upgraded; when the input parameter only contains MasterInstanceId, the return value is the minimum specification when the read-only instance is purchased.
resultOutputFile string
Used to save results.
roInstanceId string
The read-only instance ID, in the format: cdbro-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the MasterInstanceId parameter cannot be empty at the same time.
id str
master_instance_id str
The primary instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the RoInstanceId parameter cannot be empty at the same time. Note that when the input parameter contains RoInstanceId, the return value is the minimum specification when the read-only instance is upgraded; when the input parameter only contains MasterInstanceId, the return value is the minimum specification when the read-only instance is purchased.
result_output_file str
Used to save results.
ro_instance_id str
The read-only instance ID, in the format: cdbro-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the MasterInstanceId parameter cannot be empty at the same time.
id String
masterInstanceId String
The primary instance ID, in the format: cdb-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the RoInstanceId parameter cannot be empty at the same time. Note that when the input parameter contains RoInstanceId, the return value is the minimum specification when the read-only instance is upgraded; when the input parameter only contains MasterInstanceId, the return value is the minimum specification when the read-only instance is purchased.
resultOutputFile String
Used to save results.
roInstanceId String
The read-only instance ID, in the format: cdbro-c1nl9rpv, is the same as the instance ID displayed on the cloud database console page. This parameter and the MasterInstanceId parameter cannot be empty at the same time.

getMysqlRoMinScale Result

The following output properties are available:

Id string
Memory double
Memory specification size, unit: MB.
Volume double
Disk specification size, unit: GB.
MasterInstanceId string
ResultOutputFile string
RoInstanceId string
Id string
Memory float64
Memory specification size, unit: MB.
Volume float64
Disk specification size, unit: GB.
MasterInstanceId string
ResultOutputFile string
RoInstanceId string
id String
memory Double
Memory specification size, unit: MB.
volume Double
Disk specification size, unit: GB.
masterInstanceId String
resultOutputFile String
roInstanceId String
id string
memory number
Memory specification size, unit: MB.
volume number
Disk specification size, unit: GB.
masterInstanceId string
resultOutputFile string
roInstanceId string
id str
memory float
Memory specification size, unit: MB.
volume float
Disk specification size, unit: GB.
master_instance_id str
result_output_file str
ro_instance_id str
id String
memory Number
Memory specification size, unit: MB.
volume Number
Disk specification size, unit: GB.
masterInstanceId String
resultOutputFile String
roInstanceId String

Package Details

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