published on Monday, Jul 20, 2026 by Byteplus
published on Monday, Jul 20, 2026 by Byteplus
Read-only node resources for RDS MySQL instances (NodeType=ReadOnly). Create, delete, or modify specifications using CreateDBNodes/DeleteDBNodes/ModifyDBNodeSpec; retrieve node details using DescribeDBInstanceHAConfig + DescribeReadOnlyNodeDelay; modify replication delay configuration using ModifyReadOnlyNodeDelayReplicationTime
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const example = new bytepluscc.rdsmysql.InstanceReadonlyNode("Example", {
instanceId: "mysql-41xxxxx4db8",
nodeSpec: "rds.mysql.d1.n.1c1g",
zoneId: "cn-beijing-a",
updateEndpointIds: ["mysql-41xxxxx4db8-cluster"],
delayReplicationTime: 300,
});
import pulumi
import pulumi_bytepluscc as bytepluscc
example = bytepluscc.rdsmysql.InstanceReadonlyNode("Example",
instance_id="mysql-41xxxxx4db8",
node_spec="rds.mysql.d1.n.1c1g",
zone_id="cn-beijing-a",
update_endpoint_ids=["mysql-41xxxxx4db8-cluster"],
delay_replication_time=300)
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/rdsmysql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rdsmysql.NewInstanceReadonlyNode(ctx, "Example", &rdsmysql.InstanceReadonlyNodeArgs{
InstanceId: pulumi.String("mysql-41xxxxx4db8"),
NodeSpec: pulumi.String("rds.mysql.d1.n.1c1g"),
ZoneId: pulumi.String("cn-beijing-a"),
UpdateEndpointIds: pulumi.StringArray{
pulumi.String("mysql-41xxxxx4db8-cluster"),
},
DelayReplicationTime: pulumi.Int(300),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var example = new Bytepluscc.Rdsmysql.InstanceReadonlyNode("Example", new()
{
InstanceId = "mysql-41xxxxx4db8",
NodeSpec = "rds.mysql.d1.n.1c1g",
ZoneId = "cn-beijing-a",
UpdateEndpointIds = new[]
{
"mysql-41xxxxx4db8-cluster",
},
DelayReplicationTime = 300,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.rdsmysql.InstanceReadonlyNode;
import com.byteplus.bytepluscc.rdsmysql.InstanceReadonlyNodeArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 InstanceReadonlyNode("example", InstanceReadonlyNodeArgs.builder()
.instanceId("mysql-41xxxxx4db8")
.nodeSpec("rds.mysql.d1.n.1c1g")
.zoneId("cn-beijing-a")
.updateEndpointIds("mysql-41xxxxx4db8-cluster")
.delayReplicationTime(300)
.build());
}
}
resources:
example:
type: bytepluscc:rdsmysql:InstanceReadonlyNode
name: Example
properties:
instanceId: mysql-41xxxxx4db8
nodeSpec: rds.mysql.d1.n.1c1g
zoneId: cn-beijing-a
updateEndpointIds:
- mysql-41xxxxx4db8-cluster
delayReplicationTime: 300
pulumi {
required_providers {
bytepluscc = {
source = "pulumi/bytepluscc"
}
}
}
resource "bytepluscc_rdsmysql_instancereadonlynode" "Example" {
instance_id = "mysql-41xxxxx4db8"
node_spec = "rds.mysql.d1.n.1c1g"
zone_id = "cn-beijing-a"
update_endpoint_ids = ["mysql-41xxxxx4db8-cluster"]
delay_replication_time = 300
}
Create InstanceReadonlyNode Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceReadonlyNode(name: string, args: InstanceReadonlyNodeArgs, opts?: CustomResourceOptions);@overload
def InstanceReadonlyNode(resource_name: str,
args: InstanceReadonlyNodeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceReadonlyNode(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
node_spec: Optional[str] = None,
delay_replication_time: Optional[int] = None,
update_endpoint_ids: Optional[Sequence[str]] = None,
zone_id: Optional[str] = None)func NewInstanceReadonlyNode(ctx *Context, name string, args InstanceReadonlyNodeArgs, opts ...ResourceOption) (*InstanceReadonlyNode, error)public InstanceReadonlyNode(string name, InstanceReadonlyNodeArgs args, CustomResourceOptions? opts = null)
public InstanceReadonlyNode(String name, InstanceReadonlyNodeArgs args)
public InstanceReadonlyNode(String name, InstanceReadonlyNodeArgs args, CustomResourceOptions options)
type: bytepluscc:rdsmysql:InstanceReadonlyNode
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "bytepluscc_rdsmysql_instancereadonlynode" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args InstanceReadonlyNodeArgs
- 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 InstanceReadonlyNodeArgs
- 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 InstanceReadonlyNodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceReadonlyNodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceReadonlyNodeArgs
- 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 instanceReadonlyNodeResource = new Bytepluscc.Rdsmysql.InstanceReadonlyNode("instanceReadonlyNodeResource", new()
{
InstanceId = "string",
NodeSpec = "string",
DelayReplicationTime = 0,
UpdateEndpointIds = new[]
{
"string",
},
ZoneId = "string",
});
example, err := rdsmysql.NewInstanceReadonlyNode(ctx, "instanceReadonlyNodeResource", &rdsmysql.InstanceReadonlyNodeArgs{
InstanceId: pulumi.String("string"),
NodeSpec: pulumi.String("string"),
DelayReplicationTime: pulumi.Int(0),
UpdateEndpointIds: pulumi.StringArray{
pulumi.String("string"),
},
ZoneId: pulumi.String("string"),
})
resource "bytepluscc_rdsmysql_instancereadonlynode" "instanceReadonlyNodeResource" {
instance_id = "string"
node_spec = "string"
delay_replication_time = 0
update_endpoint_ids = ["string"]
zone_id = "string"
}
var instanceReadonlyNodeResource = new InstanceReadonlyNode("instanceReadonlyNodeResource", InstanceReadonlyNodeArgs.builder()
.instanceId("string")
.nodeSpec("string")
.delayReplicationTime(0)
.updateEndpointIds("string")
.zoneId("string")
.build());
instance_readonly_node_resource = bytepluscc.rdsmysql.InstanceReadonlyNode("instanceReadonlyNodeResource",
instance_id="string",
node_spec="string",
delay_replication_time=0,
update_endpoint_ids=["string"],
zone_id="string")
const instanceReadonlyNodeResource = new bytepluscc.rdsmysql.InstanceReadonlyNode("instanceReadonlyNodeResource", {
instanceId: "string",
nodeSpec: "string",
delayReplicationTime: 0,
updateEndpointIds: ["string"],
zoneId: "string",
});
type: bytepluscc:rdsmysql:InstanceReadonlyNode
properties:
delayReplicationTime: 0
instanceId: string
nodeSpec: string
updateEndpointIds:
- string
zoneId: string
InstanceReadonlyNode 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 InstanceReadonlyNode resource accepts the following input properties:
- Instance
Id string - RDS MySQL instance ID
- Node
Spec string - Node specification
- Delay
Replication intTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- Update
Endpoint List<string>Ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- Zone
Id string - Node availability zone ID
- Instance
Id string - RDS MySQL instance ID
- Node
Spec string - Node specification
- Delay
Replication intTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- Update
Endpoint []stringIds - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- Zone
Id string - Node availability zone ID
- instance_
id string - RDS MySQL instance ID
- node_
spec string - Node specification
- delay_
replication_ numbertime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- update_
endpoint_ list(string)ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- zone_
id string - Node availability zone ID
- instance
Id String - RDS MySQL instance ID
- node
Spec String - Node specification
- delay
Replication IntegerTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- update
Endpoint List<String>Ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- zone
Id String - Node availability zone ID
- instance
Id string - RDS MySQL instance ID
- node
Spec string - Node specification
- delay
Replication numberTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- update
Endpoint string[]Ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- zone
Id string - Node availability zone ID
- instance_
id str - RDS MySQL instance ID
- node_
spec str - Node specification
- delay_
replication_ inttime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- update_
endpoint_ Sequence[str]ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- zone_
id str - Node availability zone ID
- instance
Id String - RDS MySQL instance ID
- node
Spec String - Node specification
- delay
Replication NumberTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- update
Endpoint List<String>Ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- zone
Id String - Node availability zone ID
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceReadonlyNode resource produces the following output properties:
- Create
Time string - Node creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory int
- Node memory size in GiB
- Node
Id string - Read-only node ID
- Node
Status string - Node status
- Node
Type string - Node type, fixed as ReadOnly
- Region
Id string - Node region ID
- Sync
Delay int - Read-only node synchronization delay in seconds
- Update
Time string - Node update time
- Vcpu int
- Node vCPU count
- Create
Time string - Node creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Memory int
- Node memory size in GiB
- Node
Id string - Read-only node ID
- Node
Status string - Node status
- Node
Type string - Node type, fixed as ReadOnly
- Region
Id string - Node region ID
- Sync
Delay int - Read-only node synchronization delay in seconds
- Update
Time string - Node update time
- Vcpu int
- Node vCPU count
- create_
time string - Node creation time
- id string
- The provider-assigned unique ID for this managed resource.
- memory number
- Node memory size in GiB
- node_
id string - Read-only node ID
- node_
status string - Node status
- node_
type string - Node type, fixed as ReadOnly
- region_
id string - Node region ID
- sync_
delay number - Read-only node synchronization delay in seconds
- update_
time string - Node update time
- vcpu number
- Node vCPU count
- create
Time String - Node creation time
- id String
- The provider-assigned unique ID for this managed resource.
- memory Integer
- Node memory size in GiB
- node
Id String - Read-only node ID
- node
Status String - Node status
- node
Type String - Node type, fixed as ReadOnly
- region
Id String - Node region ID
- sync
Delay Integer - Read-only node synchronization delay in seconds
- update
Time String - Node update time
- vcpu Integer
- Node vCPU count
- create
Time string - Node creation time
- id string
- The provider-assigned unique ID for this managed resource.
- memory number
- Node memory size in GiB
- node
Id string - Read-only node ID
- node
Status string - Node status
- node
Type string - Node type, fixed as ReadOnly
- region
Id string - Node region ID
- sync
Delay number - Read-only node synchronization delay in seconds
- update
Time string - Node update time
- vcpu number
- Node vCPU count
- create_
time str - Node creation time
- id str
- The provider-assigned unique ID for this managed resource.
- memory int
- Node memory size in GiB
- node_
id str - Read-only node ID
- node_
status str - Node status
- node_
type str - Node type, fixed as ReadOnly
- region_
id str - Node region ID
- sync_
delay int - Read-only node synchronization delay in seconds
- update_
time str - Node update time
- vcpu int
- Node vCPU count
- create
Time String - Node creation time
- id String
- The provider-assigned unique ID for this managed resource.
- memory Number
- Node memory size in GiB
- node
Id String - Read-only node ID
- node
Status String - Node status
- node
Type String - Node type, fixed as ReadOnly
- region
Id String - Node region ID
- sync
Delay Number - Read-only node synchronization delay in seconds
- update
Time String - Node update time
- vcpu Number
- Node vCPU count
Look up Existing InstanceReadonlyNode Resource
Get an existing InstanceReadonlyNode 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?: InstanceReadonlyNodeState, opts?: CustomResourceOptions): InstanceReadonlyNode@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
delay_replication_time: Optional[int] = None,
instance_id: Optional[str] = None,
memory: Optional[int] = None,
node_id: Optional[str] = None,
node_spec: Optional[str] = None,
node_status: Optional[str] = None,
node_type: Optional[str] = None,
region_id: Optional[str] = None,
sync_delay: Optional[int] = None,
update_endpoint_ids: Optional[Sequence[str]] = None,
update_time: Optional[str] = None,
vcpu: Optional[int] = None,
zone_id: Optional[str] = None) -> InstanceReadonlyNodefunc GetInstanceReadonlyNode(ctx *Context, name string, id IDInput, state *InstanceReadonlyNodeState, opts ...ResourceOption) (*InstanceReadonlyNode, error)public static InstanceReadonlyNode Get(string name, Input<string> id, InstanceReadonlyNodeState? state, CustomResourceOptions? opts = null)public static InstanceReadonlyNode get(String name, Output<String> id, InstanceReadonlyNodeState state, CustomResourceOptions options)resources: _: type: bytepluscc:rdsmysql:InstanceReadonlyNode get: id: ${id}import {
to = bytepluscc_rdsmysql_instancereadonlynode.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.
- Create
Time string - Node creation time
- Delay
Replication intTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- Instance
Id string - RDS MySQL instance ID
- Memory int
- Node memory size in GiB
- Node
Id string - Read-only node ID
- Node
Spec string - Node specification
- Node
Status string - Node status
- Node
Type string - Node type, fixed as ReadOnly
- Region
Id string - Node region ID
- Sync
Delay int - Read-only node synchronization delay in seconds
- Update
Endpoint List<string>Ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- Update
Time string - Node update time
- Vcpu int
- Node vCPU count
- Zone
Id string - Node availability zone ID
- Create
Time string - Node creation time
- Delay
Replication intTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- Instance
Id string - RDS MySQL instance ID
- Memory int
- Node memory size in GiB
- Node
Id string - Read-only node ID
- Node
Spec string - Node specification
- Node
Status string - Node status
- Node
Type string - Node type, fixed as ReadOnly
- Region
Id string - Node region ID
- Sync
Delay int - Read-only node synchronization delay in seconds
- Update
Endpoint []stringIds - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- Update
Time string - Node update time
- Vcpu int
- Node vCPU count
- Zone
Id string - Node availability zone ID
- create_
time string - Node creation time
- delay_
replication_ numbertime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- instance_
id string - RDS MySQL instance ID
- memory number
- Node memory size in GiB
- node_
id string - Read-only node ID
- node_
spec string - Node specification
- node_
status string - Node status
- node_
type string - Node type, fixed as ReadOnly
- region_
id string - Node region ID
- sync_
delay number - Read-only node synchronization delay in seconds
- update_
endpoint_ list(string)ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- update_
time string - Node update time
- vcpu number
- Node vCPU count
- zone_
id string - Node availability zone ID
- create
Time String - Node creation time
- delay
Replication IntegerTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- instance
Id String - RDS MySQL instance ID
- memory Integer
- Node memory size in GiB
- node
Id String - Read-only node ID
- node
Spec String - Node specification
- node
Status String - Node status
- node
Type String - Node type, fixed as ReadOnly
- region
Id String - Node region ID
- sync
Delay Integer - Read-only node synchronization delay in seconds
- update
Endpoint List<String>Ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- update
Time String - Node update time
- vcpu Integer
- Node vCPU count
- zone
Id String - Node availability zone ID
- create
Time string - Node creation time
- delay
Replication numberTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- instance
Id string - RDS MySQL instance ID
- memory number
- Node memory size in GiB
- node
Id string - Read-only node ID
- node
Spec string - Node specification
- node
Status string - Node status
- node
Type string - Node type, fixed as ReadOnly
- region
Id string - Node region ID
- sync
Delay number - Read-only node synchronization delay in seconds
- update
Endpoint string[]Ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- update
Time string - Node update time
- vcpu number
- Node vCPU count
- zone
Id string - Node availability zone ID
- create_
time str - Node creation time
- delay_
replication_ inttime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- instance_
id str - RDS MySQL instance ID
- memory int
- Node memory size in GiB
- node_
id str - Read-only node ID
- node_
spec str - Node specification
- node_
status str - Node status
- node_
type str - Node type, fixed as ReadOnly
- region_
id str - Node region ID
- sync_
delay int - Read-only node synchronization delay in seconds
- update_
endpoint_ Sequence[str]ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- update_
time str - Node update time
- vcpu int
- Node vCPU count
- zone_
id str - Node availability zone ID
- create
Time String - Node creation time
- delay
Replication NumberTime - Read-only node replication delay in seconds. Can be modified using ModifyReadOnlyNodeDelayReplicationTime
- instance
Id String - RDS MySQL instance ID
- memory Number
- Node memory size in GiB
- node
Id String - Read-only node ID
- node
Spec String - Node specification
- node
Status String - Node status
- node
Type String - Node type, fixed as ReadOnly
- region
Id String - Node region ID
- sync
Delay Number - Read-only node synchronization delay in seconds
- update
Endpoint List<String>Ids - List of connection endpoint IDs to be synchronously updated when applying replication delay changes (optional, write-only, passed through to ModifyReadOnlyNodeDelayReplicationTime during Update)
- update
Time String - Node update time
- vcpu Number
- Node vCPU count
- zone
Id String - Node availability zone ID
Import
$ pulumi import bytepluscc:rdsmysql/instanceReadonlyNode:InstanceReadonlyNode example "instance_id|node_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Jul 20, 2026 by Byteplus