published on Monday, Mar 9, 2026 by Volcengine
published on Monday, Mar 9, 2026 by Volcengine
连接终端是位于数据库和应用程序之间的网络代理服务,用于代理应用程序访问数据库时的所有请求,具有高可用、高性能、可运维、简单易用等特点,支持读写分离和负载均衡等高级功能。云数据库 PostgreSQL 版提供了默认终端和自定义只读终端两种类型。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const rdsPostgresqlDbEndpointDemo = new volcenginecc.rdspostgresql.DbEndpoint("RdsPostgresqlDbEndpointDemo", {
endpointName: "ccapi-test-1",
endpointType: "Custom",
instanceId: "postgres-9dxxxxxd",
nodes: "Primary",
readWriteMode: "ReadWrite",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
rds_postgresql_db_endpoint_demo = volcenginecc.rdspostgresql.DbEndpoint("RdsPostgresqlDbEndpointDemo",
endpoint_name="ccapi-test-1",
endpoint_type="Custom",
instance_id="postgres-9dxxxxxd",
nodes="Primary",
read_write_mode="ReadWrite")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/rdspostgresql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rdspostgresql.NewDbEndpoint(ctx, "RdsPostgresqlDbEndpointDemo", &rdspostgresql.DbEndpointArgs{
EndpointName: pulumi.String("ccapi-test-1"),
EndpointType: pulumi.String("Custom"),
InstanceId: pulumi.String("postgres-9dxxxxxd"),
Nodes: pulumi.String("Primary"),
ReadWriteMode: pulumi.String("ReadWrite"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var rdsPostgresqlDbEndpointDemo = new Volcenginecc.Rdspostgresql.DbEndpoint("RdsPostgresqlDbEndpointDemo", new()
{
EndpointName = "ccapi-test-1",
EndpointType = "Custom",
InstanceId = "postgres-9dxxxxxd",
Nodes = "Primary",
ReadWriteMode = "ReadWrite",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.rdspostgresql.DbEndpoint;
import com.volcengine.volcenginecc.rdspostgresql.DbEndpointArgs;
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 rdsPostgresqlDbEndpointDemo = new DbEndpoint("rdsPostgresqlDbEndpointDemo", DbEndpointArgs.builder()
.endpointName("ccapi-test-1")
.endpointType("Custom")
.instanceId("postgres-9dxxxxxd")
.nodes("Primary")
.readWriteMode("ReadWrite")
.build());
}
}
resources:
rdsPostgresqlDbEndpointDemo:
type: volcenginecc:rdspostgresql:DbEndpoint
name: RdsPostgresqlDbEndpointDemo
properties:
endpointName: ccapi-test-1
endpointType: Custom
instanceId: postgres-9dxxxxxd
nodes: Primary
readWriteMode: ReadWrite
Create DbEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbEndpoint(name: string, args?: DbEndpointArgs, opts?: CustomResourceOptions);@overload
def DbEndpoint(resource_name: str,
args: Optional[DbEndpointArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DbEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
addresses: Optional[Sequence[DbEndpointAddressArgs]] = None,
enable_read_write_splitting: Optional[str] = None,
endpoint_name: Optional[str] = None,
endpoint_type: Optional[str] = None,
instance_id: Optional[str] = None,
nodes: Optional[str] = None,
read_only_node_distribution_type: Optional[str] = None,
read_only_node_max_delay_time: Optional[int] = None,
read_only_node_weights: Optional[Sequence[DbEndpointReadOnlyNodeWeightArgs]] = None,
read_write_mode: Optional[str] = None,
read_write_proxy_connection: Optional[int] = None,
write_node_halt_writing: Optional[bool] = None)func NewDbEndpoint(ctx *Context, name string, args *DbEndpointArgs, opts ...ResourceOption) (*DbEndpoint, error)public DbEndpoint(string name, DbEndpointArgs? args = null, CustomResourceOptions? opts = null)
public DbEndpoint(String name, DbEndpointArgs args)
public DbEndpoint(String name, DbEndpointArgs args, CustomResourceOptions options)
type: volcenginecc:rdspostgresql:DbEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DbEndpointArgs
- 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 DbEndpointArgs
- 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 DbEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbEndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dbEndpointResource = new Volcenginecc.Rdspostgresql.DbEndpoint("dbEndpointResource", new()
{
Addresses = new[]
{
new Volcenginecc.Rdspostgresql.Inputs.DbEndpointAddressArgs
{
DnsVisibility = false,
DomainPrefix = "string",
Port = "string",
},
},
EnableReadWriteSplitting = "string",
EndpointName = "string",
EndpointType = "string",
InstanceId = "string",
Nodes = "string",
ReadOnlyNodeDistributionType = "string",
ReadOnlyNodeMaxDelayTime = 0,
ReadOnlyNodeWeights = new[]
{
new Volcenginecc.Rdspostgresql.Inputs.DbEndpointReadOnlyNodeWeightArgs
{
NodeId = "string",
NodeType = "string",
Weight = 0,
},
},
ReadWriteMode = "string",
ReadWriteProxyConnection = 0,
WriteNodeHaltWriting = false,
});
example, err := rdspostgresql.NewDbEndpoint(ctx, "dbEndpointResource", &rdspostgresql.DbEndpointArgs{
Addresses: rdspostgresql.DbEndpointAddressArray{
&rdspostgresql.DbEndpointAddressArgs{
DnsVisibility: pulumi.Bool(false),
DomainPrefix: pulumi.String("string"),
Port: pulumi.String("string"),
},
},
EnableReadWriteSplitting: pulumi.String("string"),
EndpointName: pulumi.String("string"),
EndpointType: pulumi.String("string"),
InstanceId: pulumi.String("string"),
Nodes: pulumi.String("string"),
ReadOnlyNodeDistributionType: pulumi.String("string"),
ReadOnlyNodeMaxDelayTime: pulumi.Int(0),
ReadOnlyNodeWeights: rdspostgresql.DbEndpointReadOnlyNodeWeightArray{
&rdspostgresql.DbEndpointReadOnlyNodeWeightArgs{
NodeId: pulumi.String("string"),
NodeType: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
ReadWriteMode: pulumi.String("string"),
ReadWriteProxyConnection: pulumi.Int(0),
WriteNodeHaltWriting: pulumi.Bool(false),
})
var dbEndpointResource = new DbEndpoint("dbEndpointResource", DbEndpointArgs.builder()
.addresses(DbEndpointAddressArgs.builder()
.dnsVisibility(false)
.domainPrefix("string")
.port("string")
.build())
.enableReadWriteSplitting("string")
.endpointName("string")
.endpointType("string")
.instanceId("string")
.nodes("string")
.readOnlyNodeDistributionType("string")
.readOnlyNodeMaxDelayTime(0)
.readOnlyNodeWeights(DbEndpointReadOnlyNodeWeightArgs.builder()
.nodeId("string")
.nodeType("string")
.weight(0)
.build())
.readWriteMode("string")
.readWriteProxyConnection(0)
.writeNodeHaltWriting(false)
.build());
db_endpoint_resource = volcenginecc.rdspostgresql.DbEndpoint("dbEndpointResource",
addresses=[{
"dns_visibility": False,
"domain_prefix": "string",
"port": "string",
}],
enable_read_write_splitting="string",
endpoint_name="string",
endpoint_type="string",
instance_id="string",
nodes="string",
read_only_node_distribution_type="string",
read_only_node_max_delay_time=0,
read_only_node_weights=[{
"node_id": "string",
"node_type": "string",
"weight": 0,
}],
read_write_mode="string",
read_write_proxy_connection=0,
write_node_halt_writing=False)
const dbEndpointResource = new volcenginecc.rdspostgresql.DbEndpoint("dbEndpointResource", {
addresses: [{
dnsVisibility: false,
domainPrefix: "string",
port: "string",
}],
enableReadWriteSplitting: "string",
endpointName: "string",
endpointType: "string",
instanceId: "string",
nodes: "string",
readOnlyNodeDistributionType: "string",
readOnlyNodeMaxDelayTime: 0,
readOnlyNodeWeights: [{
nodeId: "string",
nodeType: "string",
weight: 0,
}],
readWriteMode: "string",
readWriteProxyConnection: 0,
writeNodeHaltWriting: false,
});
type: volcenginecc:rdspostgresql:DbEndpoint
properties:
addresses:
- dnsVisibility: false
domainPrefix: string
port: string
enableReadWriteSplitting: string
endpointName: string
endpointType: string
instanceId: string
nodes: string
readOnlyNodeDistributionType: string
readOnlyNodeMaxDelayTime: 0
readOnlyNodeWeights:
- nodeId: string
nodeType: string
weight: 0
readWriteMode: string
readWriteProxyConnection: 0
writeNodeHaltWriting: false
DbEndpoint 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 DbEndpoint resource accepts the following input properties:
- Addresses
List<Volcengine.
Db Endpoint Address> - Enable
Read stringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- Endpoint
Name string - 实例连接终端名称。
- Endpoint
Type string - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- Instance
Id string - 实例 ID。
- Nodes string
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- Read
Only stringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- Read
Only intNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- Read
Only List<Volcengine.Node Weights Db Endpoint Read Only Node Weight> - Read
Write stringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- Read
Write intProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- Write
Node boolHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- Addresses
[]Db
Endpoint Address Args - Enable
Read stringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- Endpoint
Name string - 实例连接终端名称。
- Endpoint
Type string - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- Instance
Id string - 实例 ID。
- Nodes string
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- Read
Only stringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- Read
Only intNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- Read
Only []DbNode Weights Endpoint Read Only Node Weight Args - Read
Write stringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- Read
Write intProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- Write
Node boolHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- addresses
List<Db
Endpoint Address> - enable
Read StringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- endpoint
Name String - 实例连接终端名称。
- endpoint
Type String - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- instance
Id String - 实例 ID。
- nodes String
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- read
Only StringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- read
Only IntegerNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- read
Only List<DbNode Weights Endpoint Read Only Node Weight> - read
Write StringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- read
Write IntegerProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- write
Node BooleanHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- addresses
Db
Endpoint Address[] - enable
Read stringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- endpoint
Name string - 实例连接终端名称。
- endpoint
Type string - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- instance
Id string - 实例 ID。
- nodes string
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- read
Only stringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- read
Only numberNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- read
Only DbNode Weights Endpoint Read Only Node Weight[] - read
Write stringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- read
Write numberProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- write
Node booleanHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- addresses
Sequence[Db
Endpoint Address Args] - enable_
read_ strwrite_ splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- endpoint_
name str - 实例连接终端名称。
- endpoint_
type str - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- instance_
id str - 实例 ID。
- nodes str
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- read_
only_ strnode_ distribution_ type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- read_
only_ intnode_ max_ delay_ time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- read_
only_ Sequence[Dbnode_ weights Endpoint Read Only Node Weight Args] - read_
write_ strmode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- read_
write_ intproxy_ connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- write_
node_ boolhalt_ writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- addresses List<Property Map>
- enable
Read StringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- endpoint
Name String - 实例连接终端名称。
- endpoint
Type String - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- instance
Id String - 实例 ID。
- nodes String
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- read
Only StringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- read
Only NumberNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- read
Only List<Property Map>Node Weights - read
Write StringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- read
Write NumberProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- write
Node BooleanHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
Outputs
All input properties are implicitly available as output properties. Additionally, the DbEndpoint resource produces the following output properties:
- Auto
Add stringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- Description string
- 地址描述。
- Enable
Read stringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- Endpoint
Id string - 实例连接终端 ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Auto
Add stringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- Description string
- 地址描述。
- Enable
Read stringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- Endpoint
Id string - 实例连接终端 ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- auto
Add StringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- description String
- 地址描述。
- enable
Read StringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- endpoint
Id String - 实例连接终端 ID。
- id String
- The provider-assigned unique ID for this managed resource.
- auto
Add stringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- description string
- 地址描述。
- enable
Read stringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- endpoint
Id string - 实例连接终端 ID。
- id string
- The provider-assigned unique ID for this managed resource.
- auto_
add_ strnew_ nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- description str
- 地址描述。
- enable_
read_ stronly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- endpoint_
id str - 实例连接终端 ID。
- id str
- The provider-assigned unique ID for this managed resource.
- auto
Add StringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- description String
- 地址描述。
- enable
Read StringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- endpoint
Id String - 实例连接终端 ID。
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DbEndpoint Resource
Get an existing DbEndpoint 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?: DbEndpointState, opts?: CustomResourceOptions): DbEndpoint@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
addresses: Optional[Sequence[DbEndpointAddressArgs]] = None,
auto_add_new_nodes: Optional[str] = None,
description: Optional[str] = None,
enable_read_only: Optional[str] = None,
enable_read_write_splitting: Optional[str] = None,
endpoint_id: Optional[str] = None,
endpoint_name: Optional[str] = None,
endpoint_type: Optional[str] = None,
instance_id: Optional[str] = None,
nodes: Optional[str] = None,
read_only_node_distribution_type: Optional[str] = None,
read_only_node_max_delay_time: Optional[int] = None,
read_only_node_weights: Optional[Sequence[DbEndpointReadOnlyNodeWeightArgs]] = None,
read_write_mode: Optional[str] = None,
read_write_proxy_connection: Optional[int] = None,
write_node_halt_writing: Optional[bool] = None) -> DbEndpointfunc GetDbEndpoint(ctx *Context, name string, id IDInput, state *DbEndpointState, opts ...ResourceOption) (*DbEndpoint, error)public static DbEndpoint Get(string name, Input<string> id, DbEndpointState? state, CustomResourceOptions? opts = null)public static DbEndpoint get(String name, Output<String> id, DbEndpointState state, CustomResourceOptions options)resources: _: type: volcenginecc:rdspostgresql:DbEndpoint get: 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.
- Addresses
List<Volcengine.
Db Endpoint Address> - Auto
Add stringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- Description string
- 地址描述。
- Enable
Read stringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- Enable
Read stringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- Endpoint
Id string - 实例连接终端 ID。
- Endpoint
Name string - 实例连接终端名称。
- Endpoint
Type string - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- Instance
Id string - 实例 ID。
- Nodes string
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- Read
Only stringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- Read
Only intNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- Read
Only List<Volcengine.Node Weights Db Endpoint Read Only Node Weight> - Read
Write stringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- Read
Write intProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- Write
Node boolHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- Addresses
[]Db
Endpoint Address Args - Auto
Add stringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- Description string
- 地址描述。
- Enable
Read stringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- Enable
Read stringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- Endpoint
Id string - 实例连接终端 ID。
- Endpoint
Name string - 实例连接终端名称。
- Endpoint
Type string - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- Instance
Id string - 实例 ID。
- Nodes string
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- Read
Only stringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- Read
Only intNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- Read
Only []DbNode Weights Endpoint Read Only Node Weight Args - Read
Write stringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- Read
Write intProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- Write
Node boolHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- addresses
List<Db
Endpoint Address> - auto
Add StringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- description String
- 地址描述。
- enable
Read StringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- enable
Read StringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- endpoint
Id String - 实例连接终端 ID。
- endpoint
Name String - 实例连接终端名称。
- endpoint
Type String - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- instance
Id String - 实例 ID。
- nodes String
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- read
Only StringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- read
Only IntegerNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- read
Only List<DbNode Weights Endpoint Read Only Node Weight> - read
Write StringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- read
Write IntegerProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- write
Node BooleanHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- addresses
Db
Endpoint Address[] - auto
Add stringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- description string
- 地址描述。
- enable
Read stringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- enable
Read stringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- endpoint
Id string - 实例连接终端 ID。
- endpoint
Name string - 实例连接终端名称。
- endpoint
Type string - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- instance
Id string - 实例 ID。
- nodes string
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- read
Only stringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- read
Only numberNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- read
Only DbNode Weights Endpoint Read Only Node Weight[] - read
Write stringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- read
Write numberProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- write
Node booleanHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- addresses
Sequence[Db
Endpoint Address Args] - auto_
add_ strnew_ nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- description str
- 地址描述。
- enable_
read_ stronly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- enable_
read_ strwrite_ splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- endpoint_
id str - 实例连接终端 ID。
- endpoint_
name str - 实例连接终端名称。
- endpoint_
type str - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- instance_
id str - 实例 ID。
- nodes str
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- read_
only_ strnode_ distribution_ type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- read_
only_ intnode_ max_ delay_ time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- read_
only_ Sequence[Dbnode_ weights Endpoint Read Only Node Weight Args] - read_
write_ strmode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- read_
write_ intproxy_ connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- write_
node_ boolhalt_ writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
- addresses List<Property Map>
- auto
Add StringNew Nodes - 当终端类型为读写终端或只读终端时,支持设置新节点是否自动加入。取值:Enable:自动加入。Disable:不自动加入(默认)。
- description String
- 地址描述。
- enable
Read StringOnly - 是否已开启全局只读。Enable:开启。Disable:未开启。
- enable
Read StringWrite Splitting - 是否已开启读写分离,取值:Enable:开启。Disable:未开启。
- endpoint
Id String - 实例连接终端 ID。
- endpoint
Name String - 实例连接终端名称。
- endpoint
Type String - 终端类型:Cluster:默认终端(默认创建)。Custom:自定义终端。
- instance
Id String - 实例 ID。
- nodes String
- 连接终端配置的节点列表。说明当 EndpointType 为 Custom 时必选。主节点无需传节点 ID,传入 Primary 字符串即可。
- read
Only StringNode Distribution Type - 只读权重分配模式。取值:Default:标准权重分配(默认值)。Custom:自定义权重分配。
- read
Only NumberNode Max Delay Time - 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点,单位:秒。取值:0~3600。默认值:30。说明支持对开通了读写分离的默认终端设置此参数。
- read
Only List<Property Map>Node Weights - read
Write StringMode - 读写模式:ReadWrite:读写。ReadOnly:只读。
- read
Write NumberProxy Connection - 终端开启读写分离后,为终端设置的代理连接数。代理连接数的取值下限为 20。代理连接数的取值上限取决于实例主节点的规格,不同规格支持的代理连接数上限不同,详细信息请参见产品规格。
- write
Node BooleanHalt Writing - 终端是否将写请求发送给写节点(目前仅主节点为写节点)。取值:true:是。默认值。false:否。
Supporting Types
DbEndpointAddress, DbEndpointAddressArgs
- Dns
Visibility bool - 是否开启公网解析。取值为:false:默认值,私网解析。true:私网以及公网解析。
- Domain
Prefix string - 新的访问地址前缀。访问地址前缀应满足以下规则:由小写字母、数字和中划线(-)组成。至少包含 8 个字符,总长度(含后缀)不得超过 63 个字符。以小写字母开头,以小写字母或数字结尾。
- Port string
- 端口号。
- Dns
Visibility bool - 是否开启公网解析。取值为:false:默认值,私网解析。true:私网以及公网解析。
- Domain
Prefix string - 新的访问地址前缀。访问地址前缀应满足以下规则:由小写字母、数字和中划线(-)组成。至少包含 8 个字符,总长度(含后缀)不得超过 63 个字符。以小写字母开头,以小写字母或数字结尾。
- Port string
- 端口号。
- dns
Visibility Boolean - 是否开启公网解析。取值为:false:默认值,私网解析。true:私网以及公网解析。
- domain
Prefix String - 新的访问地址前缀。访问地址前缀应满足以下规则:由小写字母、数字和中划线(-)组成。至少包含 8 个字符,总长度(含后缀)不得超过 63 个字符。以小写字母开头,以小写字母或数字结尾。
- port String
- 端口号。
- dns
Visibility boolean - 是否开启公网解析。取值为:false:默认值,私网解析。true:私网以及公网解析。
- domain
Prefix string - 新的访问地址前缀。访问地址前缀应满足以下规则:由小写字母、数字和中划线(-)组成。至少包含 8 个字符,总长度(含后缀)不得超过 63 个字符。以小写字母开头,以小写字母或数字结尾。
- port string
- 端口号。
- dns_
visibility bool - 是否开启公网解析。取值为:false:默认值,私网解析。true:私网以及公网解析。
- domain_
prefix str - 新的访问地址前缀。访问地址前缀应满足以下规则:由小写字母、数字和中划线(-)组成。至少包含 8 个字符,总长度(含后缀)不得超过 63 个字符。以小写字母开头,以小写字母或数字结尾。
- port str
- 端口号。
- dns
Visibility Boolean - 是否开启公网解析。取值为:false:默认值,私网解析。true:私网以及公网解析。
- domain
Prefix String - 新的访问地址前缀。访问地址前缀应满足以下规则:由小写字母、数字和中划线(-)组成。至少包含 8 个字符,总长度(含后缀)不得超过 63 个字符。以小写字母开头,以小写字母或数字结尾。
- port String
- 端口号。
DbEndpointReadOnlyNodeWeight, DbEndpointReadOnlyNodeWeightArgs
Import
$ pulumi import volcenginecc:rdspostgresql/dbEndpoint:DbEndpoint example "instance_id|endpoint_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Monday, Mar 9, 2026 by Volcengine
