Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.vedb_mysql.Endpoints
Explore with Pulumi AI
Use this data source to query detailed information of vedb mysql endpoints
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-vpc",
cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.0.0/24",
zoneId: fooZones.then(fooZones => fooZones.zones?.[2]?.id),
vpcId: fooVpc.id,
});
const fooInstance = new volcengine.vedb_mysql.Instance("fooInstance", {
chargeType: "PostPaid",
storageChargeType: "PostPaid",
dbEngineVersion: "MySQL_8_0",
dbMinorVersion: "3.0",
nodeNumber: 2,
nodeSpec: "vedb.mysql.x4.large",
subnetId: fooSubnet.id,
instanceName: "tf-test",
projectName: "testA",
tags: [
{
key: "tftest",
value: "tftest",
},
{
key: "tftest2",
value: "tftest2",
},
],
});
const fooInstances = volcengine.vedb_mysql.InstancesOutput({
instanceId: fooInstance.id,
});
const fooEndpoint = new volcengine.vedb_mysql.Endpoint("fooEndpoint", {
endpointType: "Custom",
instanceId: fooInstance.id,
nodeIds: [
fooInstances.apply(fooInstances => fooInstances.instances?.[0]?.nodes?.[0]?.nodeId),
fooInstances.apply(fooInstances => fooInstances.instances?.[0]?.nodes?.[1]?.nodeId),
],
readWriteMode: "ReadWrite",
endpointName: "tf-test",
description: "tf test",
masterAcceptReadRequests: true,
distributedTransaction: true,
consistLevel: "Session",
consistTimeout: 100000,
consistTimeoutAction: "ReadMaster",
});
const fooEndpoints = volcengine.vedb_mysql.EndpointsOutput({
endpointId: fooEndpoint.endpointId,
instanceId: fooInstance.id,
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id=foo_zones.zones[2].id,
vpc_id=foo_vpc.id)
foo_instance = volcengine.vedb_mysql.Instance("fooInstance",
charge_type="PostPaid",
storage_charge_type="PostPaid",
db_engine_version="MySQL_8_0",
db_minor_version="3.0",
node_number=2,
node_spec="vedb.mysql.x4.large",
subnet_id=foo_subnet.id,
instance_name="tf-test",
project_name="testA",
tags=[
volcengine.vedb_mysql.InstanceTagArgs(
key="tftest",
value="tftest",
),
volcengine.vedb_mysql.InstanceTagArgs(
key="tftest2",
value="tftest2",
),
])
foo_instances = volcengine.vedb_mysql.instances_output(instance_id=foo_instance.id)
foo_endpoint = volcengine.vedb_mysql.Endpoint("fooEndpoint",
endpoint_type="Custom",
instance_id=foo_instance.id,
node_ids=[
foo_instances.instances[0].nodes[0].node_id,
foo_instances.instances[0].nodes[1].node_id,
],
read_write_mode="ReadWrite",
endpoint_name="tf-test",
description="tf test",
master_accept_read_requests=True,
distributed_transaction=True,
consist_level="Session",
consist_timeout=100000,
consist_timeout_action="ReadMaster")
foo_endpoints = volcengine.vedb_mysql.endpoints_output(endpoint_id=foo_endpoint.endpoint_id,
instance_id=foo_instance.id)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vedb_mysql"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooZones, err := ecs.Zones(ctx, nil, nil)
if err != nil {
return err
}
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(fooZones.Zones[2].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooInstance, err := vedb_mysql.NewInstance(ctx, "fooInstance", &vedb_mysql.InstanceArgs{
ChargeType: pulumi.String("PostPaid"),
StorageChargeType: pulumi.String("PostPaid"),
DbEngineVersion: pulumi.String("MySQL_8_0"),
DbMinorVersion: pulumi.String("3.0"),
NodeNumber: pulumi.Int(2),
NodeSpec: pulumi.String("vedb.mysql.x4.large"),
SubnetId: fooSubnet.ID(),
InstanceName: pulumi.String("tf-test"),
ProjectName: pulumi.String("testA"),
Tags: vedb_mysql.InstanceTagArray{
&vedb_mysql.InstanceTagArgs{
Key: pulumi.String("tftest"),
Value: pulumi.String("tftest"),
},
&vedb_mysql.InstanceTagArgs{
Key: pulumi.String("tftest2"),
Value: pulumi.String("tftest2"),
},
},
})
if err != nil {
return err
}
fooInstances := vedb_mysql.InstancesOutput(ctx, vedb_mysql.InstancesOutputArgs{
InstanceId: fooInstance.ID(),
}, nil)
fooEndpoint, err := vedb_mysql.NewEndpoint(ctx, "fooEndpoint", &vedb_mysql.EndpointArgs{
EndpointType: pulumi.String("Custom"),
InstanceId: fooInstance.ID(),
NodeIds: pulumi.StringArray{
fooInstances.ApplyT(func(fooInstances vedb_mysql.InstancesResult) (*string, error) {
return &fooInstances.Instances[0].Nodes[0].NodeId, nil
}).(pulumi.StringPtrOutput),
fooInstances.ApplyT(func(fooInstances vedb_mysql.InstancesResult) (*string, error) {
return &fooInstances.Instances[0].Nodes[1].NodeId, nil
}).(pulumi.StringPtrOutput),
},
ReadWriteMode: pulumi.String("ReadWrite"),
EndpointName: pulumi.String("tf-test"),
Description: pulumi.String("tf test"),
MasterAcceptReadRequests: pulumi.Bool(true),
DistributedTransaction: pulumi.Bool(true),
ConsistLevel: pulumi.String("Session"),
ConsistTimeout: pulumi.Int(100000),
ConsistTimeoutAction: pulumi.String("ReadMaster"),
})
if err != nil {
return err
}
_ = vedb_mysql.EndpointsOutput(ctx, vedb_mysql.EndpointsOutputArgs{
EndpointId: fooEndpoint.EndpointId,
InstanceId: fooInstance.ID(),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooZones = Volcengine.Ecs.Zones.Invoke();
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
});
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[2]?.Id),
VpcId = fooVpc.Id,
});
var fooInstance = new Volcengine.Vedb_mysql.Instance("fooInstance", new()
{
ChargeType = "PostPaid",
StorageChargeType = "PostPaid",
DbEngineVersion = "MySQL_8_0",
DbMinorVersion = "3.0",
NodeNumber = 2,
NodeSpec = "vedb.mysql.x4.large",
SubnetId = fooSubnet.Id,
InstanceName = "tf-test",
ProjectName = "testA",
Tags = new[]
{
new Volcengine.Vedb_mysql.Inputs.InstanceTagArgs
{
Key = "tftest",
Value = "tftest",
},
new Volcengine.Vedb_mysql.Inputs.InstanceTagArgs
{
Key = "tftest2",
Value = "tftest2",
},
},
});
var fooInstances = Volcengine.Vedb_mysql.Instances.Invoke(new()
{
InstanceId = fooInstance.Id,
});
var fooEndpoint = new Volcengine.Vedb_mysql.Endpoint("fooEndpoint", new()
{
EndpointType = "Custom",
InstanceId = fooInstance.Id,
NodeIds = new[]
{
fooInstances.Apply(instancesResult => instancesResult.Instances[0]?.Nodes[0]?.NodeId),
fooInstances.Apply(instancesResult => instancesResult.Instances[0]?.Nodes[1]?.NodeId),
},
ReadWriteMode = "ReadWrite",
EndpointName = "tf-test",
Description = "tf test",
MasterAcceptReadRequests = true,
DistributedTransaction = true,
ConsistLevel = "Session",
ConsistTimeout = 100000,
ConsistTimeoutAction = "ReadMaster",
});
var fooEndpoints = Volcengine.Vedb_mysql.Endpoints.Invoke(new()
{
EndpointId = fooEndpoint.EndpointId,
InstanceId = fooInstance.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.vedb_mysql.Instance;
import com.pulumi.volcengine.vedb_mysql.InstanceArgs;
import com.pulumi.volcengine.vedb_mysql.inputs.InstanceTagArgs;
import com.pulumi.volcengine.vedb_mysql.Vedb_mysqlFunctions;
import com.pulumi.volcengine.vedb_mysql.inputs.InstancesArgs;
import com.pulumi.volcengine.vedb_mysql.Endpoint;
import com.pulumi.volcengine.vedb_mysql.EndpointArgs;
import com.pulumi.volcengine.vedb_mysql.inputs.EndpointsArgs;
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 fooZones = EcsFunctions.Zones();
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[2].id()))
.vpcId(fooVpc.id())
.build());
var fooInstance = new Instance("fooInstance", InstanceArgs.builder()
.chargeType("PostPaid")
.storageChargeType("PostPaid")
.dbEngineVersion("MySQL_8_0")
.dbMinorVersion("3.0")
.nodeNumber(2)
.nodeSpec("vedb.mysql.x4.large")
.subnetId(fooSubnet.id())
.instanceName("tf-test")
.projectName("testA")
.tags(
InstanceTagArgs.builder()
.key("tftest")
.value("tftest")
.build(),
InstanceTagArgs.builder()
.key("tftest2")
.value("tftest2")
.build())
.build());
final var fooInstances = Vedb_mysqlFunctions.Instances(InstancesArgs.builder()
.instanceId(fooInstance.id())
.build());
var fooEndpoint = new Endpoint("fooEndpoint", EndpointArgs.builder()
.endpointType("Custom")
.instanceId(fooInstance.id())
.nodeIds(
fooInstances.applyValue(instancesResult -> instancesResult).applyValue(fooInstances -> fooInstances.applyValue(instancesResult -> instancesResult.instances()[0].nodes()[0].nodeId())),
fooInstances.applyValue(instancesResult -> instancesResult).applyValue(fooInstances -> fooInstances.applyValue(instancesResult -> instancesResult.instances()[0].nodes()[1].nodeId())))
.readWriteMode("ReadWrite")
.endpointName("tf-test")
.description("tf test")
.masterAcceptReadRequests(true)
.distributedTransaction(true)
.consistLevel("Session")
.consistTimeout(100000)
.consistTimeoutAction("ReadMaster")
.build());
final var fooEndpoints = Vedb_mysqlFunctions.Endpoints(EndpointsArgs.builder()
.endpointId(fooEndpoint.endpointId())
.instanceId(fooInstance.id())
.build());
}
}
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: ${fooZones.zones[2].id}
vpcId: ${fooVpc.id}
fooInstance:
type: volcengine:vedb_mysql:Instance
properties:
chargeType: PostPaid
storageChargeType: PostPaid
dbEngineVersion: MySQL_8_0
dbMinorVersion: '3.0'
nodeNumber: 2
nodeSpec: vedb.mysql.x4.large
subnetId: ${fooSubnet.id}
instanceName: tf-test
projectName: testA
tags:
- key: tftest
value: tftest
- key: tftest2
value: tftest2
fooEndpoint:
type: volcengine:vedb_mysql:Endpoint
properties:
endpointType: Custom
instanceId: ${fooInstance.id}
nodeIds:
- ${fooInstances.instances[0].nodes[0].nodeId}
- ${fooInstances.instances[0].nodes[1].nodeId}
readWriteMode: ReadWrite
endpointName: tf-test
description: tf test
masterAcceptReadRequests: true
distributedTransaction: true
consistLevel: Session
consistTimeout: 100000
consistTimeoutAction: ReadMaster
variables:
fooZones:
fn::invoke:
Function: volcengine:ecs:Zones
Arguments: {}
fooInstances:
fn::invoke:
Function: volcengine:vedb_mysql:Instances
Arguments:
instanceId: ${fooInstance.id}
fooEndpoints:
fn::invoke:
Function: volcengine:vedb_mysql:Endpoints
Arguments:
endpointId: ${fooEndpoint.endpointId}
instanceId: ${fooInstance.id}
Using Endpoints
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 endpoints(args: EndpointsArgs, opts?: InvokeOptions): Promise<EndpointsResult>
function endpointsOutput(args: EndpointsOutputArgs, opts?: InvokeOptions): Output<EndpointsResult>
def endpoints(endpoint_id: Optional[str] = None,
instance_id: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> EndpointsResult
def endpoints_output(endpoint_id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[EndpointsResult]
func Endpoints(ctx *Context, args *EndpointsArgs, opts ...InvokeOption) (*EndpointsResult, error)
func EndpointsOutput(ctx *Context, args *EndpointsOutputArgs, opts ...InvokeOption) EndpointsResultOutput
public static class Endpoints
{
public static Task<EndpointsResult> InvokeAsync(EndpointsArgs args, InvokeOptions? opts = null)
public static Output<EndpointsResult> Invoke(EndpointsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<EndpointsResult> endpoints(EndpointsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:vedb_mysql:Endpoints
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The id of the instance.
- Endpoint
Id string - The id of the endpoint.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Instance
Id string - The id of the instance.
- Endpoint
Id string - The id of the endpoint.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- instance
Id String - The id of the instance.
- endpoint
Id String - The id of the endpoint.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- instance
Id string - The id of the instance.
- endpoint
Id string - The id of the endpoint.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- instance_
id str - The id of the instance.
- endpoint_
id str - The id of the endpoint.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- instance
Id String - The id of the instance.
- endpoint
Id String - The id of the endpoint.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
Endpoints Result
The following output properties are available:
- Endpoints
List<Endpoints
Endpoint> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Total
Count int - The total count of query.
- Endpoint
Id string - The id of the endpoint.
- Name
Regex string - Output
File string
- Endpoints
[]Endpoints
Endpoint - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Total
Count int - The total count of query.
- Endpoint
Id string - The id of the endpoint.
- Name
Regex string - Output
File string
- endpoints
List<Endpoints
Endpoint> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - total
Count Integer - The total count of query.
- endpoint
Id String - The id of the endpoint.
- name
Regex String - output
File String
- endpoints
Endpoints
Endpoint[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - total
Count number - The total count of query.
- endpoint
Id string - The id of the endpoint.
- name
Regex string - output
File string
- endpoints
Sequence[Endpoints
Endpoint] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - total_
count int - The total count of query.
- endpoint_
id str - The id of the endpoint.
- name_
regex str - output_
file str
- endpoints List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - total
Count Number - The total count of query.
- endpoint
Id String - The id of the endpoint.
- name
Regex String - output
File String
Supporting Types
EndpointsEndpoint
- Addresses
List<Endpoints
Endpoint Address> - The address information.
- Auto
Add boolNew Nodes - Set whether newly created read-only nodes will automatically join this connection endpoint. Values: true: Automatically join. false: Do not automatically join (default).
- Consist
Level string - Consistency level. For detailed introduction of consistency level, please refer to consistency level. Value range: Eventual: eventual consistency. Session: session consistency. Global: global consistency. Description When the value of ReadWriteMode is ReadWrite, the selectable consistency levels are Eventual, Session (default), and Global. When the value of ReadWriteMode is ReadOnly, the consistency level is Eventual by default and cannot be changed.
- Consist
Timeout int - When there is a large delay, the timeout period for read-only nodes to synchronize the latest data, in us. The value range is from 1us to 100000000us, and the default value is 10000us. Explanation This parameter takes effect only when the value of ConsistLevel is Global or Session.
- Consist
Timeout stringAction - Timeout policy after data synchronization timeout of read-only nodes supports the following two policies: ReturnError: Return SQL error (wait replication complete timeout, please retry). ReadMaster: Send a request to the master node (default). Description This parameter takes effect only when the value of ConsistLevel is Global or Session.
- Description string
- Description information for connecting endpoint. The length cannot exceed 200 characters.
- Distributed
Transaction bool - Set whether to enable transaction splitting. For detailed introduction to transaction splitting, please refer to transaction splitting. Value range: true: Enabled (default). false: Disabled. Description Only when the value of ReadWriteMode is ReadWrite, is enabling transaction splitting supported.
- Endpoint
Id string - The id of the endpoint.
- Endpoint
Name string - Connect the endpoint name. The setting rules are as follows: It cannot start with a number or a hyphen (-). It can only contain Chinese characters, letters, numbers, underscores (_), and hyphens (-). The length is 1 to 64 characters.
- Endpoint
Type string - Connect terminal type. The value is fixed as Custom, indicating a custom terminal.
- Id string
- The id of the endpoint.
- Master
Accept boolRead Requests - The master node accepts read requests. Value range: true: (default) After enabling the master node to accept read functions, non-transactional read requests will be sent to the master node or read-only nodes in a load-balanced mode according to the number of active requests. false: After disabling the master node from accepting read requests, at this time, the master node only accepts transactional read requests, and non-transactional read requests will not be sent to the master node. Description Only when the value of ReadWriteMode is ReadWrite, enabling the master node to accept reads is supported.
- Node
Ids List<string> - Connect the node IDs associated with the endpoint.The filling rules are as follows: When the value of ReadWriteMode is ReadWrite, at least two nodes must be passed in, and the master node must be passed in. When the value of ReadWriteMode is ReadOnly, one or more read-only nodes can be passed in.
- Read
Write stringMode - Endpoint read-write mode. Values: ReadWrite: Read and write terminal. ReadOnly: Read-only terminal (default).
- Addresses
[]Endpoints
Endpoint Address - The address information.
- Auto
Add boolNew Nodes - Set whether newly created read-only nodes will automatically join this connection endpoint. Values: true: Automatically join. false: Do not automatically join (default).
- Consist
Level string - Consistency level. For detailed introduction of consistency level, please refer to consistency level. Value range: Eventual: eventual consistency. Session: session consistency. Global: global consistency. Description When the value of ReadWriteMode is ReadWrite, the selectable consistency levels are Eventual, Session (default), and Global. When the value of ReadWriteMode is ReadOnly, the consistency level is Eventual by default and cannot be changed.
- Consist
Timeout int - When there is a large delay, the timeout period for read-only nodes to synchronize the latest data, in us. The value range is from 1us to 100000000us, and the default value is 10000us. Explanation This parameter takes effect only when the value of ConsistLevel is Global or Session.
- Consist
Timeout stringAction - Timeout policy after data synchronization timeout of read-only nodes supports the following two policies: ReturnError: Return SQL error (wait replication complete timeout, please retry). ReadMaster: Send a request to the master node (default). Description This parameter takes effect only when the value of ConsistLevel is Global or Session.
- Description string
- Description information for connecting endpoint. The length cannot exceed 200 characters.
- Distributed
Transaction bool - Set whether to enable transaction splitting. For detailed introduction to transaction splitting, please refer to transaction splitting. Value range: true: Enabled (default). false: Disabled. Description Only when the value of ReadWriteMode is ReadWrite, is enabling transaction splitting supported.
- Endpoint
Id string - The id of the endpoint.
- Endpoint
Name string - Connect the endpoint name. The setting rules are as follows: It cannot start with a number or a hyphen (-). It can only contain Chinese characters, letters, numbers, underscores (_), and hyphens (-). The length is 1 to 64 characters.
- Endpoint
Type string - Connect terminal type. The value is fixed as Custom, indicating a custom terminal.
- Id string
- The id of the endpoint.
- Master
Accept boolRead Requests - The master node accepts read requests. Value range: true: (default) After enabling the master node to accept read functions, non-transactional read requests will be sent to the master node or read-only nodes in a load-balanced mode according to the number of active requests. false: After disabling the master node from accepting read requests, at this time, the master node only accepts transactional read requests, and non-transactional read requests will not be sent to the master node. Description Only when the value of ReadWriteMode is ReadWrite, enabling the master node to accept reads is supported.
- Node
Ids []string - Connect the node IDs associated with the endpoint.The filling rules are as follows: When the value of ReadWriteMode is ReadWrite, at least two nodes must be passed in, and the master node must be passed in. When the value of ReadWriteMode is ReadOnly, one or more read-only nodes can be passed in.
- Read
Write stringMode - Endpoint read-write mode. Values: ReadWrite: Read and write terminal. ReadOnly: Read-only terminal (default).
- addresses
List<Endpoints
Endpoint Address> - The address information.
- auto
Add BooleanNew Nodes - Set whether newly created read-only nodes will automatically join this connection endpoint. Values: true: Automatically join. false: Do not automatically join (default).
- consist
Level String - Consistency level. For detailed introduction of consistency level, please refer to consistency level. Value range: Eventual: eventual consistency. Session: session consistency. Global: global consistency. Description When the value of ReadWriteMode is ReadWrite, the selectable consistency levels are Eventual, Session (default), and Global. When the value of ReadWriteMode is ReadOnly, the consistency level is Eventual by default and cannot be changed.
- consist
Timeout Integer - When there is a large delay, the timeout period for read-only nodes to synchronize the latest data, in us. The value range is from 1us to 100000000us, and the default value is 10000us. Explanation This parameter takes effect only when the value of ConsistLevel is Global or Session.
- consist
Timeout StringAction - Timeout policy after data synchronization timeout of read-only nodes supports the following two policies: ReturnError: Return SQL error (wait replication complete timeout, please retry). ReadMaster: Send a request to the master node (default). Description This parameter takes effect only when the value of ConsistLevel is Global or Session.
- description String
- Description information for connecting endpoint. The length cannot exceed 200 characters.
- distributed
Transaction Boolean - Set whether to enable transaction splitting. For detailed introduction to transaction splitting, please refer to transaction splitting. Value range: true: Enabled (default). false: Disabled. Description Only when the value of ReadWriteMode is ReadWrite, is enabling transaction splitting supported.
- endpoint
Id String - The id of the endpoint.
- endpoint
Name String - Connect the endpoint name. The setting rules are as follows: It cannot start with a number or a hyphen (-). It can only contain Chinese characters, letters, numbers, underscores (_), and hyphens (-). The length is 1 to 64 characters.
- endpoint
Type String - Connect terminal type. The value is fixed as Custom, indicating a custom terminal.
- id String
- The id of the endpoint.
- master
Accept BooleanRead Requests - The master node accepts read requests. Value range: true: (default) After enabling the master node to accept read functions, non-transactional read requests will be sent to the master node or read-only nodes in a load-balanced mode according to the number of active requests. false: After disabling the master node from accepting read requests, at this time, the master node only accepts transactional read requests, and non-transactional read requests will not be sent to the master node. Description Only when the value of ReadWriteMode is ReadWrite, enabling the master node to accept reads is supported.
- node
Ids List<String> - Connect the node IDs associated with the endpoint.The filling rules are as follows: When the value of ReadWriteMode is ReadWrite, at least two nodes must be passed in, and the master node must be passed in. When the value of ReadWriteMode is ReadOnly, one or more read-only nodes can be passed in.
- read
Write StringMode - Endpoint read-write mode. Values: ReadWrite: Read and write terminal. ReadOnly: Read-only terminal (default).
- addresses
Endpoints
Endpoint Address[] - The address information.
- auto
Add booleanNew Nodes - Set whether newly created read-only nodes will automatically join this connection endpoint. Values: true: Automatically join. false: Do not automatically join (default).
- consist
Level string - Consistency level. For detailed introduction of consistency level, please refer to consistency level. Value range: Eventual: eventual consistency. Session: session consistency. Global: global consistency. Description When the value of ReadWriteMode is ReadWrite, the selectable consistency levels are Eventual, Session (default), and Global. When the value of ReadWriteMode is ReadOnly, the consistency level is Eventual by default and cannot be changed.
- consist
Timeout number - When there is a large delay, the timeout period for read-only nodes to synchronize the latest data, in us. The value range is from 1us to 100000000us, and the default value is 10000us. Explanation This parameter takes effect only when the value of ConsistLevel is Global or Session.
- consist
Timeout stringAction - Timeout policy after data synchronization timeout of read-only nodes supports the following two policies: ReturnError: Return SQL error (wait replication complete timeout, please retry). ReadMaster: Send a request to the master node (default). Description This parameter takes effect only when the value of ConsistLevel is Global or Session.
- description string
- Description information for connecting endpoint. The length cannot exceed 200 characters.
- distributed
Transaction boolean - Set whether to enable transaction splitting. For detailed introduction to transaction splitting, please refer to transaction splitting. Value range: true: Enabled (default). false: Disabled. Description Only when the value of ReadWriteMode is ReadWrite, is enabling transaction splitting supported.
- endpoint
Id string - The id of the endpoint.
- endpoint
Name string - Connect the endpoint name. The setting rules are as follows: It cannot start with a number or a hyphen (-). It can only contain Chinese characters, letters, numbers, underscores (_), and hyphens (-). The length is 1 to 64 characters.
- endpoint
Type string - Connect terminal type. The value is fixed as Custom, indicating a custom terminal.
- id string
- The id of the endpoint.
- master
Accept booleanRead Requests - The master node accepts read requests. Value range: true: (default) After enabling the master node to accept read functions, non-transactional read requests will be sent to the master node or read-only nodes in a load-balanced mode according to the number of active requests. false: After disabling the master node from accepting read requests, at this time, the master node only accepts transactional read requests, and non-transactional read requests will not be sent to the master node. Description Only when the value of ReadWriteMode is ReadWrite, enabling the master node to accept reads is supported.
- node
Ids string[] - Connect the node IDs associated with the endpoint.The filling rules are as follows: When the value of ReadWriteMode is ReadWrite, at least two nodes must be passed in, and the master node must be passed in. When the value of ReadWriteMode is ReadOnly, one or more read-only nodes can be passed in.
- read
Write stringMode - Endpoint read-write mode. Values: ReadWrite: Read and write terminal. ReadOnly: Read-only terminal (default).
- addresses
Sequence[Endpoints
Endpoint Address] - The address information.
- auto_
add_ boolnew_ nodes - Set whether newly created read-only nodes will automatically join this connection endpoint. Values: true: Automatically join. false: Do not automatically join (default).
- consist_
level str - Consistency level. For detailed introduction of consistency level, please refer to consistency level. Value range: Eventual: eventual consistency. Session: session consistency. Global: global consistency. Description When the value of ReadWriteMode is ReadWrite, the selectable consistency levels are Eventual, Session (default), and Global. When the value of ReadWriteMode is ReadOnly, the consistency level is Eventual by default and cannot be changed.
- consist_
timeout int - When there is a large delay, the timeout period for read-only nodes to synchronize the latest data, in us. The value range is from 1us to 100000000us, and the default value is 10000us. Explanation This parameter takes effect only when the value of ConsistLevel is Global or Session.
- consist_
timeout_ straction - Timeout policy after data synchronization timeout of read-only nodes supports the following two policies: ReturnError: Return SQL error (wait replication complete timeout, please retry). ReadMaster: Send a request to the master node (default). Description This parameter takes effect only when the value of ConsistLevel is Global or Session.
- description str
- Description information for connecting endpoint. The length cannot exceed 200 characters.
- distributed_
transaction bool - Set whether to enable transaction splitting. For detailed introduction to transaction splitting, please refer to transaction splitting. Value range: true: Enabled (default). false: Disabled. Description Only when the value of ReadWriteMode is ReadWrite, is enabling transaction splitting supported.
- endpoint_
id str - The id of the endpoint.
- endpoint_
name str - Connect the endpoint name. The setting rules are as follows: It cannot start with a number or a hyphen (-). It can only contain Chinese characters, letters, numbers, underscores (_), and hyphens (-). The length is 1 to 64 characters.
- endpoint_
type str - Connect terminal type. The value is fixed as Custom, indicating a custom terminal.
- id str
- The id of the endpoint.
- master_
accept_ boolread_ requests - The master node accepts read requests. Value range: true: (default) After enabling the master node to accept read functions, non-transactional read requests will be sent to the master node or read-only nodes in a load-balanced mode according to the number of active requests. false: After disabling the master node from accepting read requests, at this time, the master node only accepts transactional read requests, and non-transactional read requests will not be sent to the master node. Description Only when the value of ReadWriteMode is ReadWrite, enabling the master node to accept reads is supported.
- node_
ids Sequence[str] - Connect the node IDs associated with the endpoint.The filling rules are as follows: When the value of ReadWriteMode is ReadWrite, at least two nodes must be passed in, and the master node must be passed in. When the value of ReadWriteMode is ReadOnly, one or more read-only nodes can be passed in.
- read_
write_ strmode - Endpoint read-write mode. Values: ReadWrite: Read and write terminal. ReadOnly: Read-only terminal (default).
- addresses List<Property Map>
- The address information.
- auto
Add BooleanNew Nodes - Set whether newly created read-only nodes will automatically join this connection endpoint. Values: true: Automatically join. false: Do not automatically join (default).
- consist
Level String - Consistency level. For detailed introduction of consistency level, please refer to consistency level. Value range: Eventual: eventual consistency. Session: session consistency. Global: global consistency. Description When the value of ReadWriteMode is ReadWrite, the selectable consistency levels are Eventual, Session (default), and Global. When the value of ReadWriteMode is ReadOnly, the consistency level is Eventual by default and cannot be changed.
- consist
Timeout Number - When there is a large delay, the timeout period for read-only nodes to synchronize the latest data, in us. The value range is from 1us to 100000000us, and the default value is 10000us. Explanation This parameter takes effect only when the value of ConsistLevel is Global or Session.
- consist
Timeout StringAction - Timeout policy after data synchronization timeout of read-only nodes supports the following two policies: ReturnError: Return SQL error (wait replication complete timeout, please retry). ReadMaster: Send a request to the master node (default). Description This parameter takes effect only when the value of ConsistLevel is Global or Session.
- description String
- Description information for connecting endpoint. The length cannot exceed 200 characters.
- distributed
Transaction Boolean - Set whether to enable transaction splitting. For detailed introduction to transaction splitting, please refer to transaction splitting. Value range: true: Enabled (default). false: Disabled. Description Only when the value of ReadWriteMode is ReadWrite, is enabling transaction splitting supported.
- endpoint
Id String - The id of the endpoint.
- endpoint
Name String - Connect the endpoint name. The setting rules are as follows: It cannot start with a number or a hyphen (-). It can only contain Chinese characters, letters, numbers, underscores (_), and hyphens (-). The length is 1 to 64 characters.
- endpoint
Type String - Connect terminal type. The value is fixed as Custom, indicating a custom terminal.
- id String
- The id of the endpoint.
- master
Accept BooleanRead Requests - The master node accepts read requests. Value range: true: (default) After enabling the master node to accept read functions, non-transactional read requests will be sent to the master node or read-only nodes in a load-balanced mode according to the number of active requests. false: After disabling the master node from accepting read requests, at this time, the master node only accepts transactional read requests, and non-transactional read requests will not be sent to the master node. Description Only when the value of ReadWriteMode is ReadWrite, enabling the master node to accept reads is supported.
- node
Ids List<String> - Connect the node IDs associated with the endpoint.The filling rules are as follows: When the value of ReadWriteMode is ReadWrite, at least two nodes must be passed in, and the master node must be passed in. When the value of ReadWriteMode is ReadOnly, one or more read-only nodes can be passed in.
- read
Write StringMode - Endpoint read-write mode. Values: ReadWrite: Read and write terminal. ReadOnly: Read-only terminal (default).
EndpointsEndpointAddress
- Dns
Visibility bool - Parsing method. Currently, the return value can only be false (Volcengine private network parsing).
- Domain string
- Instance intranet access domain name.
- Eip
Id string - The EIP id.
- Ip
Address string - IP address.
- Network
Type string - Network type: Private: Private network VPC. Public: Public network access.
- Port string
- Instance intranet access port.
- Subnet
Id string - Subnet ID. The subnet must belong to the selected availability zone. Description A subnet is an IP address block within a private network. All cloud resources in a private network must be deployed within a subnet. The subnet assigns private IP addresses to cloud resources.
- Dns
Visibility bool - Parsing method. Currently, the return value can only be false (Volcengine private network parsing).
- Domain string
- Instance intranet access domain name.
- Eip
Id string - The EIP id.
- Ip
Address string - IP address.
- Network
Type string - Network type: Private: Private network VPC. Public: Public network access.
- Port string
- Instance intranet access port.
- Subnet
Id string - Subnet ID. The subnet must belong to the selected availability zone. Description A subnet is an IP address block within a private network. All cloud resources in a private network must be deployed within a subnet. The subnet assigns private IP addresses to cloud resources.
- dns
Visibility Boolean - Parsing method. Currently, the return value can only be false (Volcengine private network parsing).
- domain String
- Instance intranet access domain name.
- eip
Id String - The EIP id.
- ip
Address String - IP address.
- network
Type String - Network type: Private: Private network VPC. Public: Public network access.
- port String
- Instance intranet access port.
- subnet
Id String - Subnet ID. The subnet must belong to the selected availability zone. Description A subnet is an IP address block within a private network. All cloud resources in a private network must be deployed within a subnet. The subnet assigns private IP addresses to cloud resources.
- dns
Visibility boolean - Parsing method. Currently, the return value can only be false (Volcengine private network parsing).
- domain string
- Instance intranet access domain name.
- eip
Id string - The EIP id.
- ip
Address string - IP address.
- network
Type string - Network type: Private: Private network VPC. Public: Public network access.
- port string
- Instance intranet access port.
- subnet
Id string - Subnet ID. The subnet must belong to the selected availability zone. Description A subnet is an IP address block within a private network. All cloud resources in a private network must be deployed within a subnet. The subnet assigns private IP addresses to cloud resources.
- dns_
visibility bool - Parsing method. Currently, the return value can only be false (Volcengine private network parsing).
- domain str
- Instance intranet access domain name.
- eip_
id str - The EIP id.
- ip_
address str - IP address.
- network_
type str - Network type: Private: Private network VPC. Public: Public network access.
- port str
- Instance intranet access port.
- subnet_
id str - Subnet ID. The subnet must belong to the selected availability zone. Description A subnet is an IP address block within a private network. All cloud resources in a private network must be deployed within a subnet. The subnet assigns private IP addresses to cloud resources.
- dns
Visibility Boolean - Parsing method. Currently, the return value can only be false (Volcengine private network parsing).
- domain String
- Instance intranet access domain name.
- eip
Id String - The EIP id.
- ip
Address String - IP address.
- network
Type String - Network type: Private: Private network VPC. Public: Public network access.
- port String
- Instance intranet access port.
- subnet
Id String - Subnet ID. The subnet must belong to the selected availability zone. Description A subnet is an IP address block within a private network. All cloud resources in a private network must be deployed within a subnet. The subnet assigns private IP addresses to cloud resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.