1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. rds
  5. DbNode
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.rds.DbNode

Explore with Pulumi AI

Provide RDS cluster instance to increase node resources, see What is RDS DB Node.

NOTE: Available since v1.202.0.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const _default = alicloud.rds.getZones({
    engine: "MySQL",
    engineVersion: "8.0",
    instanceChargeType: "PostPaid",
    category: "cluster",
    dbInstanceStorageType: "cloud_essd",
});
const defaultGetInstanceClasses = _default.then(_default => alicloud.rds.getInstanceClasses({
    zoneId: _default.ids?.[0],
    engine: "MySQL",
    engineVersion: "8.0",
    category: "cluster",
    dbInstanceStorageType: "cloud_essd",
    instanceChargeType: "PostPaid",
}));
const defaultNetwork = new alicloud.vpc.Network("default", {
    vpcName: name,
    cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
    vpcId: defaultNetwork.id,
    cidrBlock: "172.16.0.0/24",
    zoneId: _default.then(_default => _default.ids?.[0]),
    vswitchName: name,
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
    name: name,
    vpcId: defaultNetwork.id,
});
const defaultInstance = new alicloud.rds.Instance("default", {
    engine: "MySQL",
    engineVersion: "8.0",
    instanceType: defaultGetInstanceClasses.then(defaultGetInstanceClasses => defaultGetInstanceClasses.instanceClasses?.[0]?.instanceClass),
    instanceStorage: defaultGetInstanceClasses.then(defaultGetInstanceClasses => defaultGetInstanceClasses.instanceClasses?.[0]?.storageRange?.min),
    instanceChargeType: "Postpaid",
    instanceName: name,
    vswitchId: defaultSwitch.id,
    monitoringPeriod: 60,
    dbInstanceStorageType: "cloud_essd",
    securityGroupIds: [defaultSecurityGroup.id],
    zoneId: _default.then(_default => _default.ids?.[0]),
    zoneIdSlaveA: _default.then(_default => _default.ids?.[0]),
});
const defaultDbNode = new alicloud.rds.DbNode("default", {
    dbInstanceId: defaultInstance.id,
    classCode: defaultInstance.instanceType,
    zoneId: defaultSwitch.zoneId,
});
Copy
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-example"
default = alicloud.rds.get_zones(engine="MySQL",
    engine_version="8.0",
    instance_charge_type="PostPaid",
    category="cluster",
    db_instance_storage_type="cloud_essd")
default_get_instance_classes = alicloud.rds.get_instance_classes(zone_id=default.ids[0],
    engine="MySQL",
    engine_version="8.0",
    category="cluster",
    db_instance_storage_type="cloud_essd",
    instance_charge_type="PostPaid")
default_network = alicloud.vpc.Network("default",
    vpc_name=name,
    cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("default",
    vpc_id=default_network.id,
    cidr_block="172.16.0.0/24",
    zone_id=default.ids[0],
    vswitch_name=name)
default_security_group = alicloud.ecs.SecurityGroup("default",
    name=name,
    vpc_id=default_network.id)
default_instance = alicloud.rds.Instance("default",
    engine="MySQL",
    engine_version="8.0",
    instance_type=default_get_instance_classes.instance_classes[0].instance_class,
    instance_storage=default_get_instance_classes.instance_classes[0].storage_range.min,
    instance_charge_type="Postpaid",
    instance_name=name,
    vswitch_id=default_switch.id,
    monitoring_period=60,
    db_instance_storage_type="cloud_essd",
    security_group_ids=[default_security_group.id],
    zone_id=default.ids[0],
    zone_id_slave_a=default.ids[0])
default_db_node = alicloud.rds.DbNode("default",
    db_instance_id=default_instance.id,
    class_code=default_instance.instance_type,
    zone_id=default_switch.zone_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := rds.GetZones(ctx, &rds.GetZonesArgs{
			Engine:                pulumi.StringRef("MySQL"),
			EngineVersion:         pulumi.StringRef("8.0"),
			InstanceChargeType:    pulumi.StringRef("PostPaid"),
			Category:              pulumi.StringRef("cluster"),
			DbInstanceStorageType: pulumi.StringRef("cloud_essd"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetInstanceClasses, err := rds.GetInstanceClasses(ctx, &rds.GetInstanceClassesArgs{
			ZoneId:                pulumi.StringRef(_default.Ids[0]),
			Engine:                pulumi.StringRef("MySQL"),
			EngineVersion:         pulumi.StringRef("8.0"),
			Category:              pulumi.StringRef("cluster"),
			DbInstanceStorageType: pulumi.StringRef("cloud_essd"),
			InstanceChargeType:    pulumi.StringRef("PostPaid"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			VpcId:       defaultNetwork.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/24"),
			ZoneId:      pulumi.String(_default.Ids[0]),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
			Name:  pulumi.String(name),
			VpcId: defaultNetwork.ID(),
		})
		if err != nil {
			return err
		}
		defaultInstance, err := rds.NewInstance(ctx, "default", &rds.InstanceArgs{
			Engine:                pulumi.String("MySQL"),
			EngineVersion:         pulumi.String("8.0"),
			InstanceType:          pulumi.String(defaultGetInstanceClasses.InstanceClasses[0].InstanceClass),
			InstanceStorage:       pulumi.String(defaultGetInstanceClasses.InstanceClasses[0].StorageRange.Min),
			InstanceChargeType:    pulumi.String("Postpaid"),
			InstanceName:          pulumi.String(name),
			VswitchId:             defaultSwitch.ID(),
			MonitoringPeriod:      pulumi.Int(60),
			DbInstanceStorageType: pulumi.String("cloud_essd"),
			SecurityGroupIds: pulumi.StringArray{
				defaultSecurityGroup.ID(),
			},
			ZoneId:       pulumi.String(_default.Ids[0]),
			ZoneIdSlaveA: pulumi.String(_default.Ids[0]),
		})
		if err != nil {
			return err
		}
		_, err = rds.NewDbNode(ctx, "default", &rds.DbNodeArgs{
			DbInstanceId: defaultInstance.ID(),
			ClassCode:    defaultInstance.InstanceType,
			ZoneId:       defaultSwitch.ZoneId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "tf-example";
    var @default = AliCloud.Rds.GetZones.Invoke(new()
    {
        Engine = "MySQL",
        EngineVersion = "8.0",
        InstanceChargeType = "PostPaid",
        Category = "cluster",
        DbInstanceStorageType = "cloud_essd",
    });

    var defaultGetInstanceClasses = AliCloud.Rds.GetInstanceClasses.Invoke(new()
    {
        ZoneId = @default.Apply(getZonesResult => getZonesResult.Ids[0]),
        Engine = "MySQL",
        EngineVersion = "8.0",
        Category = "cluster",
        DbInstanceStorageType = "cloud_essd",
        InstanceChargeType = "PostPaid",
    });

    var defaultNetwork = new AliCloud.Vpc.Network("default", new()
    {
        VpcName = name,
        CidrBlock = "172.16.0.0/16",
    });

    var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
    {
        VpcId = defaultNetwork.Id,
        CidrBlock = "172.16.0.0/24",
        ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Ids[0])),
        VswitchName = name,
    });

    var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
    {
        Name = name,
        VpcId = defaultNetwork.Id,
    });

    var defaultInstance = new AliCloud.Rds.Instance("default", new()
    {
        Engine = "MySQL",
        EngineVersion = "8.0",
        InstanceType = defaultGetInstanceClasses.Apply(getInstanceClassesResult => getInstanceClassesResult.InstanceClasses[0]?.InstanceClass),
        InstanceStorage = defaultGetInstanceClasses.Apply(getInstanceClassesResult => getInstanceClassesResult.InstanceClasses[0]?.StorageRange?.Min),
        InstanceChargeType = "Postpaid",
        InstanceName = name,
        VswitchId = defaultSwitch.Id,
        MonitoringPeriod = 60,
        DbInstanceStorageType = "cloud_essd",
        SecurityGroupIds = new[]
        {
            defaultSecurityGroup.Id,
        },
        ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Ids[0])),
        ZoneIdSlaveA = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Ids[0])),
    });

    var defaultDbNode = new AliCloud.Rds.DbNode("default", new()
    {
        DbInstanceId = defaultInstance.Id,
        ClassCode = defaultInstance.InstanceType,
        ZoneId = defaultSwitch.ZoneId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rds.RdsFunctions;
import com.pulumi.alicloud.rds.inputs.GetZonesArgs;
import com.pulumi.alicloud.rds.inputs.GetInstanceClassesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.rds.Instance;
import com.pulumi.alicloud.rds.InstanceArgs;
import com.pulumi.alicloud.rds.DbNode;
import com.pulumi.alicloud.rds.DbNodeArgs;
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 config = ctx.config();
        final var name = config.get("name").orElse("tf-example");
        final var default = RdsFunctions.getZones(GetZonesArgs.builder()
            .engine("MySQL")
            .engineVersion("8.0")
            .instanceChargeType("PostPaid")
            .category("cluster")
            .dbInstanceStorageType("cloud_essd")
            .build());

        final var defaultGetInstanceClasses = RdsFunctions.getInstanceClasses(GetInstanceClassesArgs.builder()
            .zoneId(default_.ids()[0])
            .engine("MySQL")
            .engineVersion("8.0")
            .category("cluster")
            .dbInstanceStorageType("cloud_essd")
            .instanceChargeType("PostPaid")
            .build());

        var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
            .vpcName(name)
            .cidrBlock("172.16.0.0/16")
            .build());

        var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
            .vpcId(defaultNetwork.id())
            .cidrBlock("172.16.0.0/24")
            .zoneId(default_.ids()[0])
            .vswitchName(name)
            .build());

        var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
            .name(name)
            .vpcId(defaultNetwork.id())
            .build());

        var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
            .engine("MySQL")
            .engineVersion("8.0")
            .instanceType(defaultGetInstanceClasses.applyValue(getInstanceClassesResult -> getInstanceClassesResult.instanceClasses()[0].instanceClass()))
            .instanceStorage(defaultGetInstanceClasses.applyValue(getInstanceClassesResult -> getInstanceClassesResult.instanceClasses()[0].storageRange().min()))
            .instanceChargeType("Postpaid")
            .instanceName(name)
            .vswitchId(defaultSwitch.id())
            .monitoringPeriod("60")
            .dbInstanceStorageType("cloud_essd")
            .securityGroupIds(defaultSecurityGroup.id())
            .zoneId(default_.ids()[0])
            .zoneIdSlaveA(default_.ids()[0])
            .build());

        var defaultDbNode = new DbNode("defaultDbNode", DbNodeArgs.builder()
            .dbInstanceId(defaultInstance.id())
            .classCode(defaultInstance.instanceType())
            .zoneId(defaultSwitch.zoneId())
            .build());

    }
}
Copy
configuration:
  name:
    type: string
    default: tf-example
resources:
  defaultNetwork:
    type: alicloud:vpc:Network
    name: default
    properties:
      vpcName: ${name}
      cidrBlock: 172.16.0.0/16
  defaultSwitch:
    type: alicloud:vpc:Switch
    name: default
    properties:
      vpcId: ${defaultNetwork.id}
      cidrBlock: 172.16.0.0/24
      zoneId: ${default.ids[0]}
      vswitchName: ${name}
  defaultSecurityGroup:
    type: alicloud:ecs:SecurityGroup
    name: default
    properties:
      name: ${name}
      vpcId: ${defaultNetwork.id}
  defaultInstance:
    type: alicloud:rds:Instance
    name: default
    properties:
      engine: MySQL
      engineVersion: '8.0'
      instanceType: ${defaultGetInstanceClasses.instanceClasses[0].instanceClass}
      instanceStorage: ${defaultGetInstanceClasses.instanceClasses[0].storageRange.min}
      instanceChargeType: Postpaid
      instanceName: ${name}
      vswitchId: ${defaultSwitch.id}
      monitoringPeriod: '60'
      dbInstanceStorageType: cloud_essd
      securityGroupIds:
        - ${defaultSecurityGroup.id}
      zoneId: ${default.ids[0]}
      zoneIdSlaveA: ${default.ids[0]}
  defaultDbNode:
    type: alicloud:rds:DbNode
    name: default
    properties:
      dbInstanceId: ${defaultInstance.id}
      classCode: ${defaultInstance.instanceType}
      zoneId: ${defaultSwitch.zoneId}
variables:
  default:
    fn::invoke:
      function: alicloud:rds:getZones
      arguments:
        engine: MySQL
        engineVersion: '8.0'
        instanceChargeType: PostPaid
        category: cluster
        dbInstanceStorageType: cloud_essd
  defaultGetInstanceClasses:
    fn::invoke:
      function: alicloud:rds:getInstanceClasses
      arguments:
        zoneId: ${default.ids[0]}
        engine: MySQL
        engineVersion: '8.0'
        category: cluster
        dbInstanceStorageType: cloud_essd
        instanceChargeType: PostPaid
Copy

Create DbNode Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DbNode(name: string, args: DbNodeArgs, opts?: CustomResourceOptions);
@overload
def DbNode(resource_name: str,
           args: DbNodeArgs,
           opts: Optional[ResourceOptions] = None)

@overload
def DbNode(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           class_code: Optional[str] = None,
           db_instance_id: Optional[str] = None,
           zone_id: Optional[str] = None)
func NewDbNode(ctx *Context, name string, args DbNodeArgs, opts ...ResourceOption) (*DbNode, error)
public DbNode(string name, DbNodeArgs args, CustomResourceOptions? opts = null)
public DbNode(String name, DbNodeArgs args)
public DbNode(String name, DbNodeArgs args, CustomResourceOptions options)
type: alicloud:rds:DbNode
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DbNodeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DbNodeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DbNodeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DbNodeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DbNodeArgs
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 dbNodeResource = new AliCloud.Rds.DbNode("dbNodeResource", new()
{
    ClassCode = "string",
    DbInstanceId = "string",
    ZoneId = "string",
});
Copy
example, err := rds.NewDbNode(ctx, "dbNodeResource", &rds.DbNodeArgs{
	ClassCode:    pulumi.String("string"),
	DbInstanceId: pulumi.String("string"),
	ZoneId:       pulumi.String("string"),
})
Copy
var dbNodeResource = new DbNode("dbNodeResource", DbNodeArgs.builder()
    .classCode("string")
    .dbInstanceId("string")
    .zoneId("string")
    .build());
Copy
db_node_resource = alicloud.rds.DbNode("dbNodeResource",
    class_code="string",
    db_instance_id="string",
    zone_id="string")
Copy
const dbNodeResource = new alicloud.rds.DbNode("dbNodeResource", {
    classCode: "string",
    dbInstanceId: "string",
    zoneId: "string",
});
Copy
type: alicloud:rds:DbNode
properties:
    classCode: string
    dbInstanceId: string
    zoneId: string
Copy

DbNode 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 DbNode resource accepts the following input properties:

ClassCode
This property is required.
Changes to this property will trigger replacement.
string
The specification information of the node.
DbInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The Id of instance that can run database.
ZoneId
This property is required.
Changes to this property will trigger replacement.
string
The zone ID of the node.
ClassCode
This property is required.
Changes to this property will trigger replacement.
string
The specification information of the node.
DbInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The Id of instance that can run database.
ZoneId
This property is required.
Changes to this property will trigger replacement.
string
The zone ID of the node.
classCode
This property is required.
Changes to this property will trigger replacement.
String
The specification information of the node.
dbInstanceId
This property is required.
Changes to this property will trigger replacement.
String
The Id of instance that can run database.
zoneId
This property is required.
Changes to this property will trigger replacement.
String
The zone ID of the node.
classCode
This property is required.
Changes to this property will trigger replacement.
string
The specification information of the node.
dbInstanceId
This property is required.
Changes to this property will trigger replacement.
string
The Id of instance that can run database.
zoneId
This property is required.
Changes to this property will trigger replacement.
string
The zone ID of the node.
class_code
This property is required.
Changes to this property will trigger replacement.
str
The specification information of the node.
db_instance_id
This property is required.
Changes to this property will trigger replacement.
str
The Id of instance that can run database.
zone_id
This property is required.
Changes to this property will trigger replacement.
str
The zone ID of the node.
classCode
This property is required.
Changes to this property will trigger replacement.
String
The specification information of the node.
dbInstanceId
This property is required.
Changes to this property will trigger replacement.
String
The Id of instance that can run database.
zoneId
This property is required.
Changes to this property will trigger replacement.
String
The zone ID of the node.

Outputs

All input properties are implicitly available as output properties. Additionally, the DbNode resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
NodeId string
The ID of the node.
NodeRegionId string
The region ID of the node.
NodeRole string
The role of node.
Id string
The provider-assigned unique ID for this managed resource.
NodeId string
The ID of the node.
NodeRegionId string
The region ID of the node.
NodeRole string
The role of node.
id String
The provider-assigned unique ID for this managed resource.
nodeId String
The ID of the node.
nodeRegionId String
The region ID of the node.
nodeRole String
The role of node.
id string
The provider-assigned unique ID for this managed resource.
nodeId string
The ID of the node.
nodeRegionId string
The region ID of the node.
nodeRole string
The role of node.
id str
The provider-assigned unique ID for this managed resource.
node_id str
The ID of the node.
node_region_id str
The region ID of the node.
node_role str
The role of node.
id String
The provider-assigned unique ID for this managed resource.
nodeId String
The ID of the node.
nodeRegionId String
The region ID of the node.
nodeRole String
The role of node.

Look up Existing DbNode Resource

Get an existing DbNode 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?: DbNodeState, opts?: CustomResourceOptions): DbNode
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        class_code: Optional[str] = None,
        db_instance_id: Optional[str] = None,
        node_id: Optional[str] = None,
        node_region_id: Optional[str] = None,
        node_role: Optional[str] = None,
        zone_id: Optional[str] = None) -> DbNode
func GetDbNode(ctx *Context, name string, id IDInput, state *DbNodeState, opts ...ResourceOption) (*DbNode, error)
public static DbNode Get(string name, Input<string> id, DbNodeState? state, CustomResourceOptions? opts = null)
public static DbNode get(String name, Output<String> id, DbNodeState state, CustomResourceOptions options)
resources:  _:    type: alicloud:rds:DbNode    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
ClassCode Changes to this property will trigger replacement. string
The specification information of the node.
DbInstanceId Changes to this property will trigger replacement. string
The Id of instance that can run database.
NodeId string
The ID of the node.
NodeRegionId string
The region ID of the node.
NodeRole string
The role of node.
ZoneId Changes to this property will trigger replacement. string
The zone ID of the node.
ClassCode Changes to this property will trigger replacement. string
The specification information of the node.
DbInstanceId Changes to this property will trigger replacement. string
The Id of instance that can run database.
NodeId string
The ID of the node.
NodeRegionId string
The region ID of the node.
NodeRole string
The role of node.
ZoneId Changes to this property will trigger replacement. string
The zone ID of the node.
classCode Changes to this property will trigger replacement. String
The specification information of the node.
dbInstanceId Changes to this property will trigger replacement. String
The Id of instance that can run database.
nodeId String
The ID of the node.
nodeRegionId String
The region ID of the node.
nodeRole String
The role of node.
zoneId Changes to this property will trigger replacement. String
The zone ID of the node.
classCode Changes to this property will trigger replacement. string
The specification information of the node.
dbInstanceId Changes to this property will trigger replacement. string
The Id of instance that can run database.
nodeId string
The ID of the node.
nodeRegionId string
The region ID of the node.
nodeRole string
The role of node.
zoneId Changes to this property will trigger replacement. string
The zone ID of the node.
class_code Changes to this property will trigger replacement. str
The specification information of the node.
db_instance_id Changes to this property will trigger replacement. str
The Id of instance that can run database.
node_id str
The ID of the node.
node_region_id str
The region ID of the node.
node_role str
The role of node.
zone_id Changes to this property will trigger replacement. str
The zone ID of the node.
classCode Changes to this property will trigger replacement. String
The specification information of the node.
dbInstanceId Changes to this property will trigger replacement. String
The Id of instance that can run database.
nodeId String
The ID of the node.
nodeRegionId String
The region ID of the node.
nodeRole String
The role of node.
zoneId Changes to this property will trigger replacement. String
The zone ID of the node.

Import

RDS MySQL database cluster node agent function can be imported using id, e.g.

$ pulumi import alicloud:rds/dbNode:DbNode example <db_instance_id>:<node_id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.