tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getMysqlRoMinScale
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
ro_min_scale = tencentcloud.get_mysql_ro_min_scale(master_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.GetMysqlRoMinScale(ctx, &tencentcloud.GetMysqlRoMinScaleArgs{
MasterInstanceId: pulumi.StringRef("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 roMinScale = Tencentcloud.GetMysqlRoMinScale.Invoke(new()
{
MasterInstanceId = "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.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());
}
}
variables:
roMinScale:
fn::invoke:
function: tencentcloud:getMysqlRoMinScale
arguments:
masterInstanceId: cdb-fitq5t9h
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>
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]
func GetMysqlRoMinScale(ctx *Context, args *GetMysqlRoMinScaleArgs, opts ...InvokeOption) (*GetMysqlRoMinScaleResult, error)
func GetMysqlRoMinScaleOutput(ctx *Context, args *GetMysqlRoMinScaleOutputArgs, opts ...InvokeOption) GetMysqlRoMinScaleResultOutput
> 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)
}
public static CompletableFuture<GetMysqlRoMinScaleResult> getMysqlRoMinScale(GetMysqlRoMinScaleArgs args, InvokeOptions options)
public static Output<GetMysqlRoMinScaleResult> getMysqlRoMinScale(GetMysqlRoMinScaleArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMysqlRoMinScale:getMysqlRoMinScale
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Master
Instance stringId - 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 stringFile - Used to save results.
- Ro
Instance stringId - 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
- Master
Instance stringId - 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 stringFile - Used to save results.
- Ro
Instance stringId - 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
- master
Instance StringId - 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 StringFile - Used to save results.
- ro
Instance StringId - 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
- master
Instance stringId - 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 stringFile - Used to save results.
- ro
Instance stringId - 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_ strid - 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_ strfile - Used to save results.
- ro_
instance_ strid - 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
- master
Instance StringId - 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 StringFile - Used to save results.
- ro
Instance StringId - 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.
- Master
Instance stringId - Result
Output stringFile - Ro
Instance stringId
- Id string
- Memory float64
- Memory specification size, unit: MB.
- Volume float64
- Disk specification size, unit: GB.
- Master
Instance stringId - Result
Output stringFile - Ro
Instance stringId
- id String
- memory Double
- Memory specification size, unit: MB.
- volume Double
- Disk specification size, unit: GB.
- master
Instance StringId - result
Output StringFile - ro
Instance StringId
- id string
- memory number
- Memory specification size, unit: MB.
- volume number
- Disk specification size, unit: GB.
- master
Instance stringId - result
Output stringFile - ro
Instance stringId
- id str
- memory float
- Memory specification size, unit: MB.
- volume float
- Disk specification size, unit: GB.
- master_
instance_ strid - result_
output_ strfile - ro_
instance_ strid
- id String
- memory Number
- Memory specification size, unit: MB.
- volume Number
- Disk specification size, unit: GB.
- master
Instance StringId - result
Output StringFile - ro
Instance StringId
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack