published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Provides a resource to manage MySQL database proxy address configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MysqlProxyAddressConfig("example", {
instanceId: "cdb-o2t7gmjl",
proxyGroupId: "proxy-ov7dqp8n",
proxyAddressId: "proxyaddr-y8dnlfs0",
weightMode: "system",
isKickOut: true,
minCount: 0,
maxDelay: 10,
failOver: true,
autoAddRo: true,
readOnly: false,
transSplit: false,
connectionPool: true,
autoLoadBalance: true,
accessMode: "nearby",
proxyAllocations: [
{
region: "ap-guangzhou",
zone: "ap-guangzhou-6",
proxyInstances: [{
instanceId: "cdb-o2t7gmjl",
weight: 0,
}],
},
{
region: "ap-guangzhou",
zone: "ap-guangzhou-7",
proxyInstances: [{
instanceId: "cdb-o2t7gmjl",
weight: 0,
}],
},
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MysqlProxyAddressConfig("example",
instance_id="cdb-o2t7gmjl",
proxy_group_id="proxy-ov7dqp8n",
proxy_address_id="proxyaddr-y8dnlfs0",
weight_mode="system",
is_kick_out=True,
min_count=0,
max_delay=10,
fail_over=True,
auto_add_ro=True,
read_only=False,
trans_split=False,
connection_pool=True,
auto_load_balance=True,
access_mode="nearby",
proxy_allocations=[
{
"region": "ap-guangzhou",
"zone": "ap-guangzhou-6",
"proxy_instances": [{
"instance_id": "cdb-o2t7gmjl",
"weight": 0,
}],
},
{
"region": "ap-guangzhou",
"zone": "ap-guangzhou-7",
"proxy_instances": [{
"instance_id": "cdb-o2t7gmjl",
"weight": 0,
}],
},
])
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.NewMysqlProxyAddressConfig(ctx, "example", &tencentcloud.MysqlProxyAddressConfigArgs{
InstanceId: pulumi.String("cdb-o2t7gmjl"),
ProxyGroupId: pulumi.String("proxy-ov7dqp8n"),
ProxyAddressId: pulumi.String("proxyaddr-y8dnlfs0"),
WeightMode: pulumi.String("system"),
IsKickOut: pulumi.Bool(true),
MinCount: pulumi.Float64(0),
MaxDelay: pulumi.Float64(10),
FailOver: pulumi.Bool(true),
AutoAddRo: pulumi.Bool(true),
ReadOnly: pulumi.Bool(false),
TransSplit: pulumi.Bool(false),
ConnectionPool: pulumi.Bool(true),
AutoLoadBalance: pulumi.Bool(true),
AccessMode: pulumi.String("nearby"),
ProxyAllocations: tencentcloud.MysqlProxyAddressConfigProxyAllocationArray{
&tencentcloud.MysqlProxyAddressConfigProxyAllocationArgs{
Region: pulumi.String("ap-guangzhou"),
Zone: pulumi.String("ap-guangzhou-6"),
ProxyInstances: tencentcloud.MysqlProxyAddressConfigProxyAllocationProxyInstanceArray{
&tencentcloud.MysqlProxyAddressConfigProxyAllocationProxyInstanceArgs{
InstanceId: pulumi.String("cdb-o2t7gmjl"),
Weight: pulumi.Float64(0),
},
},
},
&tencentcloud.MysqlProxyAddressConfigProxyAllocationArgs{
Region: pulumi.String("ap-guangzhou"),
Zone: pulumi.String("ap-guangzhou-7"),
ProxyInstances: tencentcloud.MysqlProxyAddressConfigProxyAllocationProxyInstanceArray{
&tencentcloud.MysqlProxyAddressConfigProxyAllocationProxyInstanceArgs{
InstanceId: pulumi.String("cdb-o2t7gmjl"),
Weight: pulumi.Float64(0),
},
},
},
},
})
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 example = new Tencentcloud.MysqlProxyAddressConfig("example", new()
{
InstanceId = "cdb-o2t7gmjl",
ProxyGroupId = "proxy-ov7dqp8n",
ProxyAddressId = "proxyaddr-y8dnlfs0",
WeightMode = "system",
IsKickOut = true,
MinCount = 0,
MaxDelay = 10,
FailOver = true,
AutoAddRo = true,
ReadOnly = false,
TransSplit = false,
ConnectionPool = true,
AutoLoadBalance = true,
AccessMode = "nearby",
ProxyAllocations = new[]
{
new Tencentcloud.Inputs.MysqlProxyAddressConfigProxyAllocationArgs
{
Region = "ap-guangzhou",
Zone = "ap-guangzhou-6",
ProxyInstances = new[]
{
new Tencentcloud.Inputs.MysqlProxyAddressConfigProxyAllocationProxyInstanceArgs
{
InstanceId = "cdb-o2t7gmjl",
Weight = 0,
},
},
},
new Tencentcloud.Inputs.MysqlProxyAddressConfigProxyAllocationArgs
{
Region = "ap-guangzhou",
Zone = "ap-guangzhou-7",
ProxyInstances = new[]
{
new Tencentcloud.Inputs.MysqlProxyAddressConfigProxyAllocationProxyInstanceArgs
{
InstanceId = "cdb-o2t7gmjl",
Weight = 0,
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MysqlProxyAddressConfig;
import com.pulumi.tencentcloud.MysqlProxyAddressConfigArgs;
import com.pulumi.tencentcloud.inputs.MysqlProxyAddressConfigProxyAllocationArgs;
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) {
var example = new MysqlProxyAddressConfig("example", MysqlProxyAddressConfigArgs.builder()
.instanceId("cdb-o2t7gmjl")
.proxyGroupId("proxy-ov7dqp8n")
.proxyAddressId("proxyaddr-y8dnlfs0")
.weightMode("system")
.isKickOut(true)
.minCount(0.0)
.maxDelay(10.0)
.failOver(true)
.autoAddRo(true)
.readOnly(false)
.transSplit(false)
.connectionPool(true)
.autoLoadBalance(true)
.accessMode("nearby")
.proxyAllocations(
MysqlProxyAddressConfigProxyAllocationArgs.builder()
.region("ap-guangzhou")
.zone("ap-guangzhou-6")
.proxyInstances(MysqlProxyAddressConfigProxyAllocationProxyInstanceArgs.builder()
.instanceId("cdb-o2t7gmjl")
.weight(0.0)
.build())
.build(),
MysqlProxyAddressConfigProxyAllocationArgs.builder()
.region("ap-guangzhou")
.zone("ap-guangzhou-7")
.proxyInstances(MysqlProxyAddressConfigProxyAllocationProxyInstanceArgs.builder()
.instanceId("cdb-o2t7gmjl")
.weight(0.0)
.build())
.build())
.build());
}
}
resources:
example:
type: tencentcloud:MysqlProxyAddressConfig
properties:
instanceId: cdb-o2t7gmjl
proxyGroupId: proxy-ov7dqp8n
proxyAddressId: proxyaddr-y8dnlfs0
weightMode: system
isKickOut: true
minCount: 0
maxDelay: 10
failOver: true
autoAddRo: true
readOnly: false
transSplit: false
connectionPool: true
autoLoadBalance: true
accessMode: nearby
proxyAllocations:
- region: ap-guangzhou
zone: ap-guangzhou-6
proxyInstances:
- instanceId: cdb-o2t7gmjl
weight: 0
- region: ap-guangzhou
zone: ap-guangzhou-7
proxyInstances:
- instanceId: cdb-o2t7gmjl
weight: 0
Example coming soon!
Create MysqlProxyAddressConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MysqlProxyAddressConfig(name: string, args: MysqlProxyAddressConfigArgs, opts?: CustomResourceOptions);@overload
def MysqlProxyAddressConfig(resource_name: str,
args: MysqlProxyAddressConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MysqlProxyAddressConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
proxy_address_id: Optional[str] = None,
max_delay: Optional[float] = None,
weight_mode: Optional[str] = None,
auto_add_ro: Optional[bool] = None,
read_only: Optional[bool] = None,
is_kick_out: Optional[bool] = None,
fail_over: Optional[bool] = None,
instance_id: Optional[str] = None,
proxy_group_id: Optional[str] = None,
min_count: Optional[float] = None,
connection_pool: Optional[bool] = None,
mysql_proxy_address_config_id: Optional[str] = None,
access_mode: Optional[str] = None,
proxy_allocations: Optional[Sequence[MysqlProxyAddressConfigProxyAllocationArgs]] = None,
ap_node_as_ro_node: Optional[bool] = None,
auto_load_balance: Optional[bool] = None,
trans_split: Optional[bool] = None,
ap_query_to_other_node: Optional[bool] = None)func NewMysqlProxyAddressConfig(ctx *Context, name string, args MysqlProxyAddressConfigArgs, opts ...ResourceOption) (*MysqlProxyAddressConfig, error)public MysqlProxyAddressConfig(string name, MysqlProxyAddressConfigArgs args, CustomResourceOptions? opts = null)
public MysqlProxyAddressConfig(String name, MysqlProxyAddressConfigArgs args)
public MysqlProxyAddressConfig(String name, MysqlProxyAddressConfigArgs args, CustomResourceOptions options)
type: tencentcloud:MysqlProxyAddressConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_mysqlproxyaddressconfig" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MysqlProxyAddressConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MysqlProxyAddressConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MysqlProxyAddressConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MysqlProxyAddressConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MysqlProxyAddressConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MysqlProxyAddressConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MysqlProxyAddressConfig resource accepts the following input properties:
- Auto
Add boolRo - Whether to automatically add read-only instances. Valid values:
true,false. - Fail
Over bool - Whether to enable failover. Valid values:
true,false. - Instance
Id string - Instance ID, such as: cdb-xxxxxxxx.
- Is
Kick boolOut - Whether to enable delay elimination. Valid values:
true,false. - Max
Delay double - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- Min
Count double - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- Proxy
Address stringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- Proxy
Group stringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- Read
Only bool - Whether it is read-only. Valid values:
true,false. - Weight
Mode string - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom). - Access
Mode string - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - Ap
Node boolAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- Ap
Query boolTo Other Node - When libra node fails, whether to forward to other nodes.
- Auto
Load boolBalance - Whether to enable adaptive load balancing. Default is disabled.
- Connection
Pool bool - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- Mysql
Proxy stringAddress Config Id - ID of the resource.
- Proxy
Allocations List<MysqlProxy Address Config Proxy Allocation> - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - Trans
Split bool - Whether to enable transaction splitting. Default value:
false.
- Auto
Add boolRo - Whether to automatically add read-only instances. Valid values:
true,false. - Fail
Over bool - Whether to enable failover. Valid values:
true,false. - Instance
Id string - Instance ID, such as: cdb-xxxxxxxx.
- Is
Kick boolOut - Whether to enable delay elimination. Valid values:
true,false. - Max
Delay float64 - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- Min
Count float64 - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- Proxy
Address stringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- Proxy
Group stringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- Read
Only bool - Whether it is read-only. Valid values:
true,false. - Weight
Mode string - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom). - Access
Mode string - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - Ap
Node boolAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- Ap
Query boolTo Other Node - When libra node fails, whether to forward to other nodes.
- Auto
Load boolBalance - Whether to enable adaptive load balancing. Default is disabled.
- Connection
Pool bool - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- Mysql
Proxy stringAddress Config Id - ID of the resource.
- Proxy
Allocations []MysqlProxy Address Config Proxy Allocation Args - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - Trans
Split bool - Whether to enable transaction splitting. Default value:
false.
- auto_
add_ boolro - Whether to automatically add read-only instances. Valid values:
true,false. - fail_
over bool - Whether to enable failover. Valid values:
true,false. - instance_
id string - Instance ID, such as: cdb-xxxxxxxx.
- is_
kick_ boolout - Whether to enable delay elimination. Valid values:
true,false. - max_
delay number - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min_
count number - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- proxy_
address_ stringid - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy_
group_ stringid - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read_
only bool - Whether it is read-only. Valid values:
true,false. - weight_
mode string - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom). - access_
mode string - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap_
node_ boolas_ ro_ node - Whether to treat libra nodes as regular RO nodes.
- ap_
query_ boolto_ other_ node - When libra node fails, whether to forward to other nodes.
- auto_
load_ boolbalance - Whether to enable adaptive load balancing. Default is disabled.
- connection_
pool bool - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- mysql_
proxy_ stringaddress_ config_ id - ID of the resource.
- proxy_
allocations list(object) - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - trans_
split bool - Whether to enable transaction splitting. Default value:
false.
- auto
Add BooleanRo - Whether to automatically add read-only instances. Valid values:
true,false. - fail
Over Boolean - Whether to enable failover. Valid values:
true,false. - instance
Id String - Instance ID, such as: cdb-xxxxxxxx.
- is
Kick BooleanOut - Whether to enable delay elimination. Valid values:
true,false. - max
Delay Double - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min
Count Double - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- proxy
Address StringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy
Group StringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read
Only Boolean - Whether it is read-only. Valid values:
true,false. - weight
Mode String - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom). - access
Mode String - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap
Node BooleanAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- ap
Query BooleanTo Other Node - When libra node fails, whether to forward to other nodes.
- auto
Load BooleanBalance - Whether to enable adaptive load balancing. Default is disabled.
- connection
Pool Boolean - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- mysql
Proxy StringAddress Config Id - ID of the resource.
- proxy
Allocations List<MysqlProxy Address Config Proxy Allocation> - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - trans
Split Boolean - Whether to enable transaction splitting. Default value:
false.
- auto
Add booleanRo - Whether to automatically add read-only instances. Valid values:
true,false. - fail
Over boolean - Whether to enable failover. Valid values:
true,false. - instance
Id string - Instance ID, such as: cdb-xxxxxxxx.
- is
Kick booleanOut - Whether to enable delay elimination. Valid values:
true,false. - max
Delay number - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min
Count number - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- proxy
Address stringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy
Group stringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read
Only boolean - Whether it is read-only. Valid values:
true,false. - weight
Mode string - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom). - access
Mode string - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap
Node booleanAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- ap
Query booleanTo Other Node - When libra node fails, whether to forward to other nodes.
- auto
Load booleanBalance - Whether to enable adaptive load balancing. Default is disabled.
- connection
Pool boolean - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- mysql
Proxy stringAddress Config Id - ID of the resource.
- proxy
Allocations MysqlProxy Address Config Proxy Allocation[] - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - trans
Split boolean - Whether to enable transaction splitting. Default value:
false.
- auto_
add_ boolro - Whether to automatically add read-only instances. Valid values:
true,false. - fail_
over bool - Whether to enable failover. Valid values:
true,false. - instance_
id str - Instance ID, such as: cdb-xxxxxxxx.
- is_
kick_ boolout - Whether to enable delay elimination. Valid values:
true,false. - max_
delay float - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min_
count float - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- proxy_
address_ strid - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy_
group_ strid - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read_
only bool - Whether it is read-only. Valid values:
true,false. - weight_
mode str - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom). - access_
mode str - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap_
node_ boolas_ ro_ node - Whether to treat libra nodes as regular RO nodes.
- ap_
query_ boolto_ other_ node - When libra node fails, whether to forward to other nodes.
- auto_
load_ boolbalance - Whether to enable adaptive load balancing. Default is disabled.
- connection_
pool bool - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- mysql_
proxy_ straddress_ config_ id - ID of the resource.
- proxy_
allocations Sequence[MysqlProxy Address Config Proxy Allocation Args] - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - trans_
split bool - Whether to enable transaction splitting. Default value:
false.
- auto
Add BooleanRo - Whether to automatically add read-only instances. Valid values:
true,false. - fail
Over Boolean - Whether to enable failover. Valid values:
true,false. - instance
Id String - Instance ID, such as: cdb-xxxxxxxx.
- is
Kick BooleanOut - Whether to enable delay elimination. Valid values:
true,false. - max
Delay Number - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min
Count Number - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- proxy
Address StringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy
Group StringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read
Only Boolean - Whether it is read-only. Valid values:
true,false. - weight
Mode String - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom). - access
Mode String - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap
Node BooleanAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- ap
Query BooleanTo Other Node - When libra node fails, whether to forward to other nodes.
- auto
Load BooleanBalance - Whether to enable adaptive load balancing. Default is disabled.
- connection
Pool Boolean - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- mysql
Proxy StringAddress Config Id - ID of the resource.
- proxy
Allocations List<Property Map> - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - trans
Split Boolean - Whether to enable transaction splitting. Default value:
false.
Outputs
All input properties are implicitly available as output properties. Additionally, the MysqlProxyAddressConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MysqlProxyAddressConfig Resource
Get an existing MysqlProxyAddressConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MysqlProxyAddressConfigState, opts?: CustomResourceOptions): MysqlProxyAddressConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
ap_node_as_ro_node: Optional[bool] = None,
ap_query_to_other_node: Optional[bool] = None,
auto_add_ro: Optional[bool] = None,
auto_load_balance: Optional[bool] = None,
connection_pool: Optional[bool] = None,
fail_over: Optional[bool] = None,
instance_id: Optional[str] = None,
is_kick_out: Optional[bool] = None,
max_delay: Optional[float] = None,
min_count: Optional[float] = None,
mysql_proxy_address_config_id: Optional[str] = None,
proxy_address_id: Optional[str] = None,
proxy_allocations: Optional[Sequence[MysqlProxyAddressConfigProxyAllocationArgs]] = None,
proxy_group_id: Optional[str] = None,
read_only: Optional[bool] = None,
trans_split: Optional[bool] = None,
weight_mode: Optional[str] = None) -> MysqlProxyAddressConfigfunc GetMysqlProxyAddressConfig(ctx *Context, name string, id IDInput, state *MysqlProxyAddressConfigState, opts ...ResourceOption) (*MysqlProxyAddressConfig, error)public static MysqlProxyAddressConfig Get(string name, Input<string> id, MysqlProxyAddressConfigState? state, CustomResourceOptions? opts = null)public static MysqlProxyAddressConfig get(String name, Output<String> id, MysqlProxyAddressConfigState state, CustomResourceOptions options)resources: _: type: tencentcloud:MysqlProxyAddressConfig get: id: ${id}import {
to = tencentcloud_mysqlproxyaddressconfig.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Mode string - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - Ap
Node boolAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- Ap
Query boolTo Other Node - When libra node fails, whether to forward to other nodes.
- Auto
Add boolRo - Whether to automatically add read-only instances. Valid values:
true,false. - Auto
Load boolBalance - Whether to enable adaptive load balancing. Default is disabled.
- Connection
Pool bool - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- Fail
Over bool - Whether to enable failover. Valid values:
true,false. - Instance
Id string - Instance ID, such as: cdb-xxxxxxxx.
- Is
Kick boolOut - Whether to enable delay elimination. Valid values:
true,false. - Max
Delay double - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- Min
Count double - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- Mysql
Proxy stringAddress Config Id - ID of the resource.
- Proxy
Address stringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- Proxy
Allocations List<MysqlProxy Address Config Proxy Allocation> - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - Proxy
Group stringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- Read
Only bool - Whether it is read-only. Valid values:
true,false. - Trans
Split bool - Whether to enable transaction splitting. Default value:
false. - Weight
Mode string - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom).
- Access
Mode string - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - Ap
Node boolAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- Ap
Query boolTo Other Node - When libra node fails, whether to forward to other nodes.
- Auto
Add boolRo - Whether to automatically add read-only instances. Valid values:
true,false. - Auto
Load boolBalance - Whether to enable adaptive load balancing. Default is disabled.
- Connection
Pool bool - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- Fail
Over bool - Whether to enable failover. Valid values:
true,false. - Instance
Id string - Instance ID, such as: cdb-xxxxxxxx.
- Is
Kick boolOut - Whether to enable delay elimination. Valid values:
true,false. - Max
Delay float64 - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- Min
Count float64 - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- Mysql
Proxy stringAddress Config Id - ID of the resource.
- Proxy
Address stringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- Proxy
Allocations []MysqlProxy Address Config Proxy Allocation Args - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - Proxy
Group stringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- Read
Only bool - Whether it is read-only. Valid values:
true,false. - Trans
Split bool - Whether to enable transaction splitting. Default value:
false. - Weight
Mode string - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom).
- access_
mode string - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap_
node_ boolas_ ro_ node - Whether to treat libra nodes as regular RO nodes.
- ap_
query_ boolto_ other_ node - When libra node fails, whether to forward to other nodes.
- auto_
add_ boolro - Whether to automatically add read-only instances. Valid values:
true,false. - auto_
load_ boolbalance - Whether to enable adaptive load balancing. Default is disabled.
- connection_
pool bool - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- fail_
over bool - Whether to enable failover. Valid values:
true,false. - instance_
id string - Instance ID, such as: cdb-xxxxxxxx.
- is_
kick_ boolout - Whether to enable delay elimination. Valid values:
true,false. - max_
delay number - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min_
count number - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- mysql_
proxy_ stringaddress_ config_ id - ID of the resource.
- proxy_
address_ stringid - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy_
allocations list(object) - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - proxy_
group_ stringid - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read_
only bool - Whether it is read-only. Valid values:
true,false. - trans_
split bool - Whether to enable transaction splitting. Default value:
false. - weight_
mode string - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom).
- access
Mode String - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap
Node BooleanAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- ap
Query BooleanTo Other Node - When libra node fails, whether to forward to other nodes.
- auto
Add BooleanRo - Whether to automatically add read-only instances. Valid values:
true,false. - auto
Load BooleanBalance - Whether to enable adaptive load balancing. Default is disabled.
- connection
Pool Boolean - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- fail
Over Boolean - Whether to enable failover. Valid values:
true,false. - instance
Id String - Instance ID, such as: cdb-xxxxxxxx.
- is
Kick BooleanOut - Whether to enable delay elimination. Valid values:
true,false. - max
Delay Double - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min
Count Double - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- mysql
Proxy StringAddress Config Id - ID of the resource.
- proxy
Address StringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy
Allocations List<MysqlProxy Address Config Proxy Allocation> - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - proxy
Group StringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read
Only Boolean - Whether it is read-only. Valid values:
true,false. - trans
Split Boolean - Whether to enable transaction splitting. Default value:
false. - weight
Mode String - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom).
- access
Mode string - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap
Node booleanAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- ap
Query booleanTo Other Node - When libra node fails, whether to forward to other nodes.
- auto
Add booleanRo - Whether to automatically add read-only instances. Valid values:
true,false. - auto
Load booleanBalance - Whether to enable adaptive load balancing. Default is disabled.
- connection
Pool boolean - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- fail
Over boolean - Whether to enable failover. Valid values:
true,false. - instance
Id string - Instance ID, such as: cdb-xxxxxxxx.
- is
Kick booleanOut - Whether to enable delay elimination. Valid values:
true,false. - max
Delay number - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min
Count number - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- mysql
Proxy stringAddress Config Id - ID of the resource.
- proxy
Address stringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy
Allocations MysqlProxy Address Config Proxy Allocation[] - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - proxy
Group stringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read
Only boolean - Whether it is read-only. Valid values:
true,false. - trans
Split boolean - Whether to enable transaction splitting. Default value:
false. - weight
Mode string - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom).
- access_
mode str - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap_
node_ boolas_ ro_ node - Whether to treat libra nodes as regular RO nodes.
- ap_
query_ boolto_ other_ node - When libra node fails, whether to forward to other nodes.
- auto_
add_ boolro - Whether to automatically add read-only instances. Valid values:
true,false. - auto_
load_ boolbalance - Whether to enable adaptive load balancing. Default is disabled.
- connection_
pool bool - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- fail_
over bool - Whether to enable failover. Valid values:
true,false. - instance_
id str - Instance ID, such as: cdb-xxxxxxxx.
- is_
kick_ boolout - Whether to enable delay elimination. Valid values:
true,false. - max_
delay float - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min_
count float - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- mysql_
proxy_ straddress_ config_ id - ID of the resource.
- proxy_
address_ strid - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy_
allocations Sequence[MysqlProxy Address Config Proxy Allocation Args] - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - proxy_
group_ strid - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read_
only bool - Whether it is read-only. Valid values:
true,false. - trans_
split bool - Whether to enable transaction splitting. Default value:
false. - weight_
mode str - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom).
- access
Mode String - Access mode. Valid values:
nearby(nearby access),balance(load balancing). Default:nearby. - ap
Node BooleanAs Ro Node - Whether to treat libra nodes as regular RO nodes.
- ap
Query BooleanTo Other Node - When libra node fails, whether to forward to other nodes.
- auto
Add BooleanRo - Whether to automatically add read-only instances. Valid values:
true,false. - auto
Load BooleanBalance - Whether to enable adaptive load balancing. Default is disabled.
- connection
Pool Boolean - Whether to enable connection pool. Default is disabled. Note: for MySQL 8.0, the kernel minor version must be >= MySQL 8.0 20230630.
- fail
Over Boolean - Whether to enable failover. Valid values:
true,false. - instance
Id String - Instance ID, such as: cdb-xxxxxxxx.
- is
Kick BooleanOut - Whether to enable delay elimination. Valid values:
true,false. - max
Delay Number - Delay elimination threshold in milliseconds. Value range: [1, 10000].
- min
Count Number - Minimum reserved quantity. Minimum value: 0. Note: only valid when IsKickOut is true.
- mysql
Proxy StringAddress Config Id - ID of the resource.
- proxy
Address StringId - Proxy address ID, such as: proxyaddr-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- proxy
Allocations List<Property Map> - Read/write weight allocation. If WeightMode is
system, the input weight does not take effect. - proxy
Group StringId - Proxy group ID, such as: proxy-xxxxxxxx. Can be obtained through the DescribeCdbProxyInfo interface.
- read
Only Boolean - Whether it is read-only. Valid values:
true,false. - trans
Split Boolean - Whether to enable transaction splitting. Default value:
false. - weight
Mode String - Weight allocation mode. Valid values:
system(system auto-allocation),custom(custom).
Supporting Types
MysqlProxyAddressConfigProxyAllocation, MysqlProxyAddressConfigProxyAllocationArgs
- Proxy
Instances List<MysqlProxy Address Config Proxy Allocation Proxy Instance> - Proxy instance list.
- Region string
- Region, such as: ap-guangzhou.
- Zone string
- Availability zone, such as: ap-guangzhou-2.
- Proxy
Instances []MysqlProxy Address Config Proxy Allocation Proxy Instance - Proxy instance list.
- Region string
- Region, such as: ap-guangzhou.
- Zone string
- Availability zone, such as: ap-guangzhou-2.
- proxy_
instances list(object) - Proxy instance list.
- region string
- Region, such as: ap-guangzhou.
- zone string
- Availability zone, such as: ap-guangzhou-2.
- proxy
Instances List<MysqlProxy Address Config Proxy Allocation Proxy Instance> - Proxy instance list.
- region String
- Region, such as: ap-guangzhou.
- zone String
- Availability zone, such as: ap-guangzhou-2.
- proxy
Instances MysqlProxy Address Config Proxy Allocation Proxy Instance[] - Proxy instance list.
- region string
- Region, such as: ap-guangzhou.
- zone string
- Availability zone, such as: ap-guangzhou-2.
- proxy_
instances Sequence[MysqlProxy Address Config Proxy Allocation Proxy Instance] - Proxy instance list.
- region str
- Region, such as: ap-guangzhou.
- zone str
- Availability zone, such as: ap-guangzhou-2.
- proxy
Instances List<Property Map> - Proxy instance list.
- region String
- Region, such as: ap-guangzhou.
- zone String
- Availability zone, such as: ap-guangzhou-2.
MysqlProxyAddressConfigProxyAllocationProxyInstance, MysqlProxyAddressConfigProxyAllocationProxyInstanceArgs
- Instance
Id string - Instance ID.
- Weight double
- Weight value.
- Instance
Id string - Instance ID.
- Weight float64
- Weight value.
- instance_
id string - Instance ID.
- weight number
- Weight value.
- instance
Id String - Instance ID.
- weight Double
- Weight value.
- instance
Id string - Instance ID.
- weight number
- Weight value.
- instance_
id str - Instance ID.
- weight float
- Weight value.
- instance
Id String - Instance ID.
- weight Number
- Weight value.
Import
MySQL proxy address config can be imported using the instanceId#proxyGroupId#proxyAddressId, e.g.
$ pulumi import tencentcloud:index/mysqlProxyAddressConfig:MysqlProxyAddressConfig example cdb-o2t7gmjl#proxy-ov7dqp8n#proxyaddr-y8dnlfs0
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
