1. Packages
  2. Volcengine
  3. API Docs
  4. rabbitmq
  5. Instance
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

volcengine.rabbitmq.Instance

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

    Provides a resource to manage rabbitmq instance

    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?.[0]?.id),
        vpcId: fooVpc.id,
    });
    const fooInstance = new volcengine.rabbitmq.Instance("fooInstance", {
        zoneIds: [
            fooZones.then(fooZones => fooZones.zones?.[0]?.id),
            fooZones.then(fooZones => fooZones.zones?.[1]?.id),
            fooZones.then(fooZones => fooZones.zones?.[2]?.id),
        ],
        subnetId: fooSubnet.id,
        version: "3.8.18",
        userName: "acc-test-user",
        userPassword: "93f0cb0614Aab12",
        computeSpec: "rabbitmq.n3.x2.small",
        storageSpace: 300,
        instanceName: "acc-test-rabbitmq",
        instanceDescription: "acc-test",
        chargeInfo: {
            chargeType: "PostPaid",
        },
        projectName: "default",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    });
    
    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[0].id,
        vpc_id=foo_vpc.id)
    foo_instance = volcengine.rabbitmq.Instance("fooInstance",
        zone_ids=[
            foo_zones.zones[0].id,
            foo_zones.zones[1].id,
            foo_zones.zones[2].id,
        ],
        subnet_id=foo_subnet.id,
        version="3.8.18",
        user_name="acc-test-user",
        user_password="93f0cb0614Aab12",
        compute_spec="rabbitmq.n3.x2.small",
        storage_space=300,
        instance_name="acc-test-rabbitmq",
        instance_description="acc-test",
        charge_info=volcengine.rabbitmq.InstanceChargeInfoArgs(
            charge_type="PostPaid",
        ),
        project_name="default",
        tags=[volcengine.rabbitmq.InstanceTagArgs(
            key="k1",
            value="v1",
        )])
    
    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/rabbitmq"
    	"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[0].Id),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = rabbitmq.NewInstance(ctx, "fooInstance", &rabbitmq.InstanceArgs{
    			ZoneIds: pulumi.StringArray{
    				pulumi.String(fooZones.Zones[0].Id),
    				pulumi.String(fooZones.Zones[1].Id),
    				pulumi.String(fooZones.Zones[2].Id),
    			},
    			SubnetId:            fooSubnet.ID(),
    			Version:             pulumi.String("3.8.18"),
    			UserName:            pulumi.String("acc-test-user"),
    			UserPassword:        pulumi.String("93f0cb0614Aab12"),
    			ComputeSpec:         pulumi.String("rabbitmq.n3.x2.small"),
    			StorageSpace:        pulumi.Int(300),
    			InstanceName:        pulumi.String("acc-test-rabbitmq"),
    			InstanceDescription: pulumi.String("acc-test"),
    			ChargeInfo: &rabbitmq.InstanceChargeInfoArgs{
    				ChargeType: pulumi.String("PostPaid"),
    			},
    			ProjectName: pulumi.String("default"),
    			Tags: rabbitmq.InstanceTagArray{
    				&rabbitmq.InstanceTagArgs{
    					Key:   pulumi.String("k1"),
    					Value: pulumi.String("v1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		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[0]?.Id),
            VpcId = fooVpc.Id,
        });
    
        var fooInstance = new Volcengine.Rabbitmq.Instance("fooInstance", new()
        {
            ZoneIds = new[]
            {
                fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
                fooZones.Apply(zonesResult => zonesResult.Zones[1]?.Id),
                fooZones.Apply(zonesResult => zonesResult.Zones[2]?.Id),
            },
            SubnetId = fooSubnet.Id,
            Version = "3.8.18",
            UserName = "acc-test-user",
            UserPassword = "93f0cb0614Aab12",
            ComputeSpec = "rabbitmq.n3.x2.small",
            StorageSpace = 300,
            InstanceName = "acc-test-rabbitmq",
            InstanceDescription = "acc-test",
            ChargeInfo = new Volcengine.Rabbitmq.Inputs.InstanceChargeInfoArgs
            {
                ChargeType = "PostPaid",
            },
            ProjectName = "default",
            Tags = new[]
            {
                new Volcengine.Rabbitmq.Inputs.InstanceTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        });
    
    });
    
    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.rabbitmq.Instance;
    import com.pulumi.volcengine.rabbitmq.InstanceArgs;
    import com.pulumi.volcengine.rabbitmq.inputs.InstanceChargeInfoArgs;
    import com.pulumi.volcengine.rabbitmq.inputs.InstanceTagArgs;
    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()[0].id()))
                .vpcId(fooVpc.id())
                .build());
    
            var fooInstance = new Instance("fooInstance", InstanceArgs.builder()        
                .zoneIds(            
                    fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()),
                    fooZones.applyValue(zonesResult -> zonesResult.zones()[1].id()),
                    fooZones.applyValue(zonesResult -> zonesResult.zones()[2].id()))
                .subnetId(fooSubnet.id())
                .version("3.8.18")
                .userName("acc-test-user")
                .userPassword("93f0cb0614Aab12")
                .computeSpec("rabbitmq.n3.x2.small")
                .storageSpace(300)
                .instanceName("acc-test-rabbitmq")
                .instanceDescription("acc-test")
                .chargeInfo(InstanceChargeInfoArgs.builder()
                    .chargeType("PostPaid")
                    .build())
                .projectName("default")
                .tags(InstanceTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .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[0].id}
          vpcId: ${fooVpc.id}
      fooInstance:
        type: volcengine:rabbitmq:Instance
        properties:
          zoneIds:
            - ${fooZones.zones[0].id}
            - ${fooZones.zones[1].id}
            - ${fooZones.zones[2].id}
          subnetId: ${fooSubnet.id}
          version: 3.8.18
          userName: acc-test-user
          userPassword: 93f0cb0614Aab12
          computeSpec: rabbitmq.n3.x2.small
          storageSpace: 300
          instanceName: acc-test-rabbitmq
          instanceDescription: acc-test
          chargeInfo:
            chargeType: PostPaid
          projectName: default
          tags:
            - key: k1
              value: v1
    variables:
      fooZones:
        fn::invoke:
          Function: volcengine:ecs:Zones
          Arguments: {}
    

    Create Instance Resource

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

    Constructor syntax

    new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
    @overload
    def Instance(resource_name: str,
                 args: InstanceArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Instance(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 charge_info: Optional[InstanceChargeInfoArgs] = None,
                 compute_spec: Optional[str] = None,
                 storage_space: Optional[int] = None,
                 subnet_id: Optional[str] = None,
                 user_name: Optional[str] = None,
                 user_password: Optional[str] = None,
                 version: Optional[str] = None,
                 zone_ids: Optional[Sequence[str]] = None,
                 instance_description: Optional[str] = None,
                 instance_name: Optional[str] = None,
                 project_name: Optional[str] = None,
                 tags: Optional[Sequence[InstanceTagArgs]] = None)
    func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
    public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
    public Instance(String name, InstanceArgs args)
    public Instance(String name, InstanceArgs args, CustomResourceOptions options)
    
    type: volcengine:rabbitmq:Instance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args InstanceArgs
    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 InstanceArgs
    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 InstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceArgs
    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 exampleinstanceResourceResourceFromRabbitmqinstance = new Volcengine.Rabbitmq.Instance("exampleinstanceResourceResourceFromRabbitmqinstance", new()
    {
        ChargeInfo = new Volcengine.Rabbitmq.Inputs.InstanceChargeInfoArgs
        {
            ChargeType = "string",
            AutoRenew = false,
            Period = 0,
            PeriodUnit = "string",
        },
        ComputeSpec = "string",
        StorageSpace = 0,
        SubnetId = "string",
        UserName = "string",
        UserPassword = "string",
        Version = "string",
        ZoneIds = new[]
        {
            "string",
        },
        InstanceDescription = "string",
        InstanceName = "string",
        ProjectName = "string",
        Tags = new[]
        {
            new Volcengine.Rabbitmq.Inputs.InstanceTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := rabbitmq.NewInstance(ctx, "exampleinstanceResourceResourceFromRabbitmqinstance", &rabbitmq.InstanceArgs{
    	ChargeInfo: &rabbitmq.InstanceChargeInfoArgs{
    		ChargeType: pulumi.String("string"),
    		AutoRenew:  pulumi.Bool(false),
    		Period:     pulumi.Int(0),
    		PeriodUnit: pulumi.String("string"),
    	},
    	ComputeSpec:  pulumi.String("string"),
    	StorageSpace: pulumi.Int(0),
    	SubnetId:     pulumi.String("string"),
    	UserName:     pulumi.String("string"),
    	UserPassword: pulumi.String("string"),
    	Version:      pulumi.String("string"),
    	ZoneIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	InstanceDescription: pulumi.String("string"),
    	InstanceName:        pulumi.String("string"),
    	ProjectName:         pulumi.String("string"),
    	Tags: rabbitmq.InstanceTagArray{
    		&rabbitmq.InstanceTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var exampleinstanceResourceResourceFromRabbitmqinstance = new com.pulumi.volcengine.rabbitmq.Instance("exampleinstanceResourceResourceFromRabbitmqinstance", com.pulumi.volcengine.rabbitmq.InstanceArgs.builder()
        .chargeInfo(InstanceChargeInfoArgs.builder()
            .chargeType("string")
            .autoRenew(false)
            .period(0)
            .periodUnit("string")
            .build())
        .computeSpec("string")
        .storageSpace(0)
        .subnetId("string")
        .userName("string")
        .userPassword("string")
        .version("string")
        .zoneIds("string")
        .instanceDescription("string")
        .instanceName("string")
        .projectName("string")
        .tags(InstanceTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    exampleinstance_resource_resource_from_rabbitmqinstance = volcengine.rabbitmq.Instance("exampleinstanceResourceResourceFromRabbitmqinstance",
        charge_info={
            "charge_type": "string",
            "auto_renew": False,
            "period": 0,
            "period_unit": "string",
        },
        compute_spec="string",
        storage_space=0,
        subnet_id="string",
        user_name="string",
        user_password="string",
        version="string",
        zone_ids=["string"],
        instance_description="string",
        instance_name="string",
        project_name="string",
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const exampleinstanceResourceResourceFromRabbitmqinstance = new volcengine.rabbitmq.Instance("exampleinstanceResourceResourceFromRabbitmqinstance", {
        chargeInfo: {
            chargeType: "string",
            autoRenew: false,
            period: 0,
            periodUnit: "string",
        },
        computeSpec: "string",
        storageSpace: 0,
        subnetId: "string",
        userName: "string",
        userPassword: "string",
        version: "string",
        zoneIds: ["string"],
        instanceDescription: "string",
        instanceName: "string",
        projectName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcengine:rabbitmq:Instance
    properties:
        chargeInfo:
            autoRenew: false
            chargeType: string
            period: 0
            periodUnit: string
        computeSpec: string
        instanceDescription: string
        instanceName: string
        projectName: string
        storageSpace: 0
        subnetId: string
        tags:
            - key: string
              value: string
        userName: string
        userPassword: string
        version: string
        zoneIds:
            - string
    

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

    ChargeInfo InstanceChargeInfo
    The charge information of the rocketmq instance.
    ComputeSpec string
    The compute specification of the rabbitmq instance.
    StorageSpace int
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    SubnetId string
    The subnet id of the rabbitmq instance.
    UserName string
    The administrator name of the rabbitmq instance.
    UserPassword string
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    Version string
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    ZoneIds List<string>
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    InstanceDescription string
    The description of the rabbitmq instance.
    InstanceName string
    The name of the rabbitmq instance.
    ProjectName string
    The IAM project name where the rabbitmq instance resides.
    Tags List<InstanceTag>
    Tags.
    ChargeInfo InstanceChargeInfoArgs
    The charge information of the rocketmq instance.
    ComputeSpec string
    The compute specification of the rabbitmq instance.
    StorageSpace int
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    SubnetId string
    The subnet id of the rabbitmq instance.
    UserName string
    The administrator name of the rabbitmq instance.
    UserPassword string
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    Version string
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    ZoneIds []string
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    InstanceDescription string
    The description of the rabbitmq instance.
    InstanceName string
    The name of the rabbitmq instance.
    ProjectName string
    The IAM project name where the rabbitmq instance resides.
    Tags []InstanceTagArgs
    Tags.
    chargeInfo InstanceChargeInfo
    The charge information of the rocketmq instance.
    computeSpec String
    The compute specification of the rabbitmq instance.
    storageSpace Integer
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    subnetId String
    The subnet id of the rabbitmq instance.
    userName String
    The administrator name of the rabbitmq instance.
    userPassword String
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    version String
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    zoneIds List<String>
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    instanceDescription String
    The description of the rabbitmq instance.
    instanceName String
    The name of the rabbitmq instance.
    projectName String
    The IAM project name where the rabbitmq instance resides.
    tags List<InstanceTag>
    Tags.
    chargeInfo InstanceChargeInfo
    The charge information of the rocketmq instance.
    computeSpec string
    The compute specification of the rabbitmq instance.
    storageSpace number
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    subnetId string
    The subnet id of the rabbitmq instance.
    userName string
    The administrator name of the rabbitmq instance.
    userPassword string
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    version string
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    zoneIds string[]
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    instanceDescription string
    The description of the rabbitmq instance.
    instanceName string
    The name of the rabbitmq instance.
    projectName string
    The IAM project name where the rabbitmq instance resides.
    tags InstanceTag[]
    Tags.
    charge_info InstanceChargeInfoArgs
    The charge information of the rocketmq instance.
    compute_spec str
    The compute specification of the rabbitmq instance.
    storage_space int
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    subnet_id str
    The subnet id of the rabbitmq instance.
    user_name str
    The administrator name of the rabbitmq instance.
    user_password str
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    version str
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    zone_ids Sequence[str]
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    instance_description str
    The description of the rabbitmq instance.
    instance_name str
    The name of the rabbitmq instance.
    project_name str
    The IAM project name where the rabbitmq instance resides.
    tags Sequence[InstanceTagArgs]
    Tags.
    chargeInfo Property Map
    The charge information of the rocketmq instance.
    computeSpec String
    The compute specification of the rabbitmq instance.
    storageSpace Number
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    subnetId String
    The subnet id of the rabbitmq instance.
    userName String
    The administrator name of the rabbitmq instance.
    userPassword String
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    version String
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    zoneIds List<String>
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    instanceDescription String
    The description of the rabbitmq instance.
    instanceName String
    The name of the rabbitmq instance.
    projectName String
    The IAM project name where the rabbitmq instance resides.
    tags List<Property Map>
    Tags.

    Outputs

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

    AccountId string
    The account id of the rabbitmq instance.
    ApplyPrivateDnsToPublic bool
    Whether enable the public network parsing function of the rabbitmq instance.
    ArchType string
    The type of the rabbitmq instance.
    CreateTime string
    The create time of the rabbitmq instance.
    EipId string
    The eip id of the rabbitmq instance.
    Endpoints List<InstanceEndpoint>
    The endpoint info of the rabbitmq instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    InitUserName string
    The WebUI admin user name of the rabbitmq instance.
    InstanceStatus string
    The status of the rabbitmq instance.
    RegionId string
    The region id of the rabbitmq instance.
    UsedStorageSpace int
    The used storage space of the rabbitmq instance. Unit: GiB.
    VpcId string
    The vpc id of the rabbitmq instance.
    AccountId string
    The account id of the rabbitmq instance.
    ApplyPrivateDnsToPublic bool
    Whether enable the public network parsing function of the rabbitmq instance.
    ArchType string
    The type of the rabbitmq instance.
    CreateTime string
    The create time of the rabbitmq instance.
    EipId string
    The eip id of the rabbitmq instance.
    Endpoints []InstanceEndpoint
    The endpoint info of the rabbitmq instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    InitUserName string
    The WebUI admin user name of the rabbitmq instance.
    InstanceStatus string
    The status of the rabbitmq instance.
    RegionId string
    The region id of the rabbitmq instance.
    UsedStorageSpace int
    The used storage space of the rabbitmq instance. Unit: GiB.
    VpcId string
    The vpc id of the rabbitmq instance.
    accountId String
    The account id of the rabbitmq instance.
    applyPrivateDnsToPublic Boolean
    Whether enable the public network parsing function of the rabbitmq instance.
    archType String
    The type of the rabbitmq instance.
    createTime String
    The create time of the rabbitmq instance.
    eipId String
    The eip id of the rabbitmq instance.
    endpoints List<InstanceEndpoint>
    The endpoint info of the rabbitmq instance.
    id String
    The provider-assigned unique ID for this managed resource.
    initUserName String
    The WebUI admin user name of the rabbitmq instance.
    instanceStatus String
    The status of the rabbitmq instance.
    regionId String
    The region id of the rabbitmq instance.
    usedStorageSpace Integer
    The used storage space of the rabbitmq instance. Unit: GiB.
    vpcId String
    The vpc id of the rabbitmq instance.
    accountId string
    The account id of the rabbitmq instance.
    applyPrivateDnsToPublic boolean
    Whether enable the public network parsing function of the rabbitmq instance.
    archType string
    The type of the rabbitmq instance.
    createTime string
    The create time of the rabbitmq instance.
    eipId string
    The eip id of the rabbitmq instance.
    endpoints InstanceEndpoint[]
    The endpoint info of the rabbitmq instance.
    id string
    The provider-assigned unique ID for this managed resource.
    initUserName string
    The WebUI admin user name of the rabbitmq instance.
    instanceStatus string
    The status of the rabbitmq instance.
    regionId string
    The region id of the rabbitmq instance.
    usedStorageSpace number
    The used storage space of the rabbitmq instance. Unit: GiB.
    vpcId string
    The vpc id of the rabbitmq instance.
    account_id str
    The account id of the rabbitmq instance.
    apply_private_dns_to_public bool
    Whether enable the public network parsing function of the rabbitmq instance.
    arch_type str
    The type of the rabbitmq instance.
    create_time str
    The create time of the rabbitmq instance.
    eip_id str
    The eip id of the rabbitmq instance.
    endpoints Sequence[InstanceEndpoint]
    The endpoint info of the rabbitmq instance.
    id str
    The provider-assigned unique ID for this managed resource.
    init_user_name str
    The WebUI admin user name of the rabbitmq instance.
    instance_status str
    The status of the rabbitmq instance.
    region_id str
    The region id of the rabbitmq instance.
    used_storage_space int
    The used storage space of the rabbitmq instance. Unit: GiB.
    vpc_id str
    The vpc id of the rabbitmq instance.
    accountId String
    The account id of the rabbitmq instance.
    applyPrivateDnsToPublic Boolean
    Whether enable the public network parsing function of the rabbitmq instance.
    archType String
    The type of the rabbitmq instance.
    createTime String
    The create time of the rabbitmq instance.
    eipId String
    The eip id of the rabbitmq instance.
    endpoints List<Property Map>
    The endpoint info of the rabbitmq instance.
    id String
    The provider-assigned unique ID for this managed resource.
    initUserName String
    The WebUI admin user name of the rabbitmq instance.
    instanceStatus String
    The status of the rabbitmq instance.
    regionId String
    The region id of the rabbitmq instance.
    usedStorageSpace Number
    The used storage space of the rabbitmq instance. Unit: GiB.
    vpcId String
    The vpc id of the rabbitmq instance.

    Look up Existing Instance Resource

    Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            apply_private_dns_to_public: Optional[bool] = None,
            arch_type: Optional[str] = None,
            charge_info: Optional[InstanceChargeInfoArgs] = None,
            compute_spec: Optional[str] = None,
            create_time: Optional[str] = None,
            eip_id: Optional[str] = None,
            endpoints: Optional[Sequence[InstanceEndpointArgs]] = None,
            init_user_name: Optional[str] = None,
            instance_description: Optional[str] = None,
            instance_name: Optional[str] = None,
            instance_status: Optional[str] = None,
            project_name: Optional[str] = None,
            region_id: Optional[str] = None,
            storage_space: Optional[int] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Sequence[InstanceTagArgs]] = None,
            used_storage_space: Optional[int] = None,
            user_name: Optional[str] = None,
            user_password: Optional[str] = None,
            version: Optional[str] = None,
            vpc_id: Optional[str] = None,
            zone_ids: Optional[Sequence[str]] = None) -> Instance
    func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
    public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
    public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:rabbitmq:Instance    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    The account id of the rabbitmq instance.
    ApplyPrivateDnsToPublic bool
    Whether enable the public network parsing function of the rabbitmq instance.
    ArchType string
    The type of the rabbitmq instance.
    ChargeInfo InstanceChargeInfo
    The charge information of the rocketmq instance.
    ComputeSpec string
    The compute specification of the rabbitmq instance.
    CreateTime string
    The create time of the rabbitmq instance.
    EipId string
    The eip id of the rabbitmq instance.
    Endpoints List<InstanceEndpoint>
    The endpoint info of the rabbitmq instance.
    InitUserName string
    The WebUI admin user name of the rabbitmq instance.
    InstanceDescription string
    The description of the rabbitmq instance.
    InstanceName string
    The name of the rabbitmq instance.
    InstanceStatus string
    The status of the rabbitmq instance.
    ProjectName string
    The IAM project name where the rabbitmq instance resides.
    RegionId string
    The region id of the rabbitmq instance.
    StorageSpace int
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    SubnetId string
    The subnet id of the rabbitmq instance.
    Tags List<InstanceTag>
    Tags.
    UsedStorageSpace int
    The used storage space of the rabbitmq instance. Unit: GiB.
    UserName string
    The administrator name of the rabbitmq instance.
    UserPassword string
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    Version string
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    VpcId string
    The vpc id of the rabbitmq instance.
    ZoneIds List<string>
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    AccountId string
    The account id of the rabbitmq instance.
    ApplyPrivateDnsToPublic bool
    Whether enable the public network parsing function of the rabbitmq instance.
    ArchType string
    The type of the rabbitmq instance.
    ChargeInfo InstanceChargeInfoArgs
    The charge information of the rocketmq instance.
    ComputeSpec string
    The compute specification of the rabbitmq instance.
    CreateTime string
    The create time of the rabbitmq instance.
    EipId string
    The eip id of the rabbitmq instance.
    Endpoints []InstanceEndpointArgs
    The endpoint info of the rabbitmq instance.
    InitUserName string
    The WebUI admin user name of the rabbitmq instance.
    InstanceDescription string
    The description of the rabbitmq instance.
    InstanceName string
    The name of the rabbitmq instance.
    InstanceStatus string
    The status of the rabbitmq instance.
    ProjectName string
    The IAM project name where the rabbitmq instance resides.
    RegionId string
    The region id of the rabbitmq instance.
    StorageSpace int
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    SubnetId string
    The subnet id of the rabbitmq instance.
    Tags []InstanceTagArgs
    Tags.
    UsedStorageSpace int
    The used storage space of the rabbitmq instance. Unit: GiB.
    UserName string
    The administrator name of the rabbitmq instance.
    UserPassword string
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    Version string
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    VpcId string
    The vpc id of the rabbitmq instance.
    ZoneIds []string
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    accountId String
    The account id of the rabbitmq instance.
    applyPrivateDnsToPublic Boolean
    Whether enable the public network parsing function of the rabbitmq instance.
    archType String
    The type of the rabbitmq instance.
    chargeInfo InstanceChargeInfo
    The charge information of the rocketmq instance.
    computeSpec String
    The compute specification of the rabbitmq instance.
    createTime String
    The create time of the rabbitmq instance.
    eipId String
    The eip id of the rabbitmq instance.
    endpoints List<InstanceEndpoint>
    The endpoint info of the rabbitmq instance.
    initUserName String
    The WebUI admin user name of the rabbitmq instance.
    instanceDescription String
    The description of the rabbitmq instance.
    instanceName String
    The name of the rabbitmq instance.
    instanceStatus String
    The status of the rabbitmq instance.
    projectName String
    The IAM project name where the rabbitmq instance resides.
    regionId String
    The region id of the rabbitmq instance.
    storageSpace Integer
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    subnetId String
    The subnet id of the rabbitmq instance.
    tags List<InstanceTag>
    Tags.
    usedStorageSpace Integer
    The used storage space of the rabbitmq instance. Unit: GiB.
    userName String
    The administrator name of the rabbitmq instance.
    userPassword String
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    version String
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    vpcId String
    The vpc id of the rabbitmq instance.
    zoneIds List<String>
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    accountId string
    The account id of the rabbitmq instance.
    applyPrivateDnsToPublic boolean
    Whether enable the public network parsing function of the rabbitmq instance.
    archType string
    The type of the rabbitmq instance.
    chargeInfo InstanceChargeInfo
    The charge information of the rocketmq instance.
    computeSpec string
    The compute specification of the rabbitmq instance.
    createTime string
    The create time of the rabbitmq instance.
    eipId string
    The eip id of the rabbitmq instance.
    endpoints InstanceEndpoint[]
    The endpoint info of the rabbitmq instance.
    initUserName string
    The WebUI admin user name of the rabbitmq instance.
    instanceDescription string
    The description of the rabbitmq instance.
    instanceName string
    The name of the rabbitmq instance.
    instanceStatus string
    The status of the rabbitmq instance.
    projectName string
    The IAM project name where the rabbitmq instance resides.
    regionId string
    The region id of the rabbitmq instance.
    storageSpace number
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    subnetId string
    The subnet id of the rabbitmq instance.
    tags InstanceTag[]
    Tags.
    usedStorageSpace number
    The used storage space of the rabbitmq instance. Unit: GiB.
    userName string
    The administrator name of the rabbitmq instance.
    userPassword string
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    version string
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    vpcId string
    The vpc id of the rabbitmq instance.
    zoneIds string[]
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    account_id str
    The account id of the rabbitmq instance.
    apply_private_dns_to_public bool
    Whether enable the public network parsing function of the rabbitmq instance.
    arch_type str
    The type of the rabbitmq instance.
    charge_info InstanceChargeInfoArgs
    The charge information of the rocketmq instance.
    compute_spec str
    The compute specification of the rabbitmq instance.
    create_time str
    The create time of the rabbitmq instance.
    eip_id str
    The eip id of the rabbitmq instance.
    endpoints Sequence[InstanceEndpointArgs]
    The endpoint info of the rabbitmq instance.
    init_user_name str
    The WebUI admin user name of the rabbitmq instance.
    instance_description str
    The description of the rabbitmq instance.
    instance_name str
    The name of the rabbitmq instance.
    instance_status str
    The status of the rabbitmq instance.
    project_name str
    The IAM project name where the rabbitmq instance resides.
    region_id str
    The region id of the rabbitmq instance.
    storage_space int
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    subnet_id str
    The subnet id of the rabbitmq instance.
    tags Sequence[InstanceTagArgs]
    Tags.
    used_storage_space int
    The used storage space of the rabbitmq instance. Unit: GiB.
    user_name str
    The administrator name of the rabbitmq instance.
    user_password str
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    version str
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    vpc_id str
    The vpc id of the rabbitmq instance.
    zone_ids Sequence[str]
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.
    accountId String
    The account id of the rabbitmq instance.
    applyPrivateDnsToPublic Boolean
    Whether enable the public network parsing function of the rabbitmq instance.
    archType String
    The type of the rabbitmq instance.
    chargeInfo Property Map
    The charge information of the rocketmq instance.
    computeSpec String
    The compute specification of the rabbitmq instance.
    createTime String
    The create time of the rabbitmq instance.
    eipId String
    The eip id of the rabbitmq instance.
    endpoints List<Property Map>
    The endpoint info of the rabbitmq instance.
    initUserName String
    The WebUI admin user name of the rabbitmq instance.
    instanceDescription String
    The description of the rabbitmq instance.
    instanceName String
    The name of the rabbitmq instance.
    instanceStatus String
    The status of the rabbitmq instance.
    projectName String
    The IAM project name where the rabbitmq instance resides.
    regionId String
    The region id of the rabbitmq instance.
    storageSpace Number
    The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
    subnetId String
    The subnet id of the rabbitmq instance.
    tags List<Property Map>
    Tags.
    usedStorageSpace Number
    The used storage space of the rabbitmq instance. Unit: GiB.
    userName String
    The administrator name of the rabbitmq instance.
    userPassword String
    The administrator password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    version String
    The version of the rabbitmq instance. Valid values: 3.8.18, 3.12.
    vpcId String
    The vpc id of the rabbitmq instance.
    zoneIds List<String>
    The zone id of the rabbitmq instance. Support specifying multiple availability zones.

    Supporting Types

    InstanceChargeInfo, InstanceChargeInfoArgs

    ChargeType string
    The charge type of the rabbitmq instance. Valid values: PostPaid, PrePaid.
    AutoRenew bool
    Whether to automatically renew in prepaid scenarios. Default is false.
    Period int
    Purchase duration in prepaid scenarios. When PeriodUnit is specified as Month, the value range is 1-9. When PeriodUnit is specified as Year, the value range is 1-3. Default is 1.
    PeriodUnit string
    The purchase cycle in the prepaid scenario. Valid values: Month, Year. Default is Month.
    ChargeType string
    The charge type of the rabbitmq instance. Valid values: PostPaid, PrePaid.
    AutoRenew bool
    Whether to automatically renew in prepaid scenarios. Default is false.
    Period int
    Purchase duration in prepaid scenarios. When PeriodUnit is specified as Month, the value range is 1-9. When PeriodUnit is specified as Year, the value range is 1-3. Default is 1.
    PeriodUnit string
    The purchase cycle in the prepaid scenario. Valid values: Month, Year. Default is Month.
    chargeType String
    The charge type of the rabbitmq instance. Valid values: PostPaid, PrePaid.
    autoRenew Boolean
    Whether to automatically renew in prepaid scenarios. Default is false.
    period Integer
    Purchase duration in prepaid scenarios. When PeriodUnit is specified as Month, the value range is 1-9. When PeriodUnit is specified as Year, the value range is 1-3. Default is 1.
    periodUnit String
    The purchase cycle in the prepaid scenario. Valid values: Month, Year. Default is Month.
    chargeType string
    The charge type of the rabbitmq instance. Valid values: PostPaid, PrePaid.
    autoRenew boolean
    Whether to automatically renew in prepaid scenarios. Default is false.
    period number
    Purchase duration in prepaid scenarios. When PeriodUnit is specified as Month, the value range is 1-9. When PeriodUnit is specified as Year, the value range is 1-3. Default is 1.
    periodUnit string
    The purchase cycle in the prepaid scenario. Valid values: Month, Year. Default is Month.
    charge_type str
    The charge type of the rabbitmq instance. Valid values: PostPaid, PrePaid.
    auto_renew bool
    Whether to automatically renew in prepaid scenarios. Default is false.
    period int
    Purchase duration in prepaid scenarios. When PeriodUnit is specified as Month, the value range is 1-9. When PeriodUnit is specified as Year, the value range is 1-3. Default is 1.
    period_unit str
    The purchase cycle in the prepaid scenario. Valid values: Month, Year. Default is Month.
    chargeType String
    The charge type of the rabbitmq instance. Valid values: PostPaid, PrePaid.
    autoRenew Boolean
    Whether to automatically renew in prepaid scenarios. Default is false.
    period Number
    Purchase duration in prepaid scenarios. When PeriodUnit is specified as Month, the value range is 1-9. When PeriodUnit is specified as Year, the value range is 1-3. Default is 1.
    periodUnit String
    The purchase cycle in the prepaid scenario. Valid values: Month, Year. Default is Month.

    InstanceEndpoint, InstanceEndpointArgs

    EndpointType string
    The endpoint type of the rabbitmq instance.
    InternalEndpoint string
    The internal endpoint of the rabbitmq instance.
    NetworkType string
    The network type of the rabbitmq instance.
    PublicEndpoint string
    The public endpoint of the rabbitmq instance.
    EndpointType string
    The endpoint type of the rabbitmq instance.
    InternalEndpoint string
    The internal endpoint of the rabbitmq instance.
    NetworkType string
    The network type of the rabbitmq instance.
    PublicEndpoint string
    The public endpoint of the rabbitmq instance.
    endpointType String
    The endpoint type of the rabbitmq instance.
    internalEndpoint String
    The internal endpoint of the rabbitmq instance.
    networkType String
    The network type of the rabbitmq instance.
    publicEndpoint String
    The public endpoint of the rabbitmq instance.
    endpointType string
    The endpoint type of the rabbitmq instance.
    internalEndpoint string
    The internal endpoint of the rabbitmq instance.
    networkType string
    The network type of the rabbitmq instance.
    publicEndpoint string
    The public endpoint of the rabbitmq instance.
    endpoint_type str
    The endpoint type of the rabbitmq instance.
    internal_endpoint str
    The internal endpoint of the rabbitmq instance.
    network_type str
    The network type of the rabbitmq instance.
    public_endpoint str
    The public endpoint of the rabbitmq instance.
    endpointType String
    The endpoint type of the rabbitmq instance.
    internalEndpoint String
    The internal endpoint of the rabbitmq instance.
    networkType String
    The network type of the rabbitmq instance.
    publicEndpoint String
    The public endpoint of the rabbitmq instance.

    InstanceTag, InstanceTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Import

    RabbitmqInstance can be imported using the id, e.g.

    $ pulumi import volcengine:rabbitmq/instance:Instance default resource_id
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine