volcengine.rabbitmq.Instance
Explore with Pulumi AI
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:
- Charge
Info InstanceCharge Info - The charge information of the rocketmq instance.
- Compute
Spec string - 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 string - The subnet id of the rabbitmq instance.
- User
Name string - The administrator name of the rabbitmq instance.
- User
Password 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
. - Zone
Ids List<string> - The zone id of the rabbitmq instance. Support specifying multiple availability zones.
- Instance
Description string - The description of the rabbitmq instance.
- Instance
Name string - The name of the rabbitmq instance.
- Project
Name string - The IAM project name where the rabbitmq instance resides.
- List<Instance
Tag> - Tags.
- Charge
Info InstanceCharge Info Args - The charge information of the rocketmq instance.
- Compute
Spec string - 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 string - The subnet id of the rabbitmq instance.
- User
Name string - The administrator name of the rabbitmq instance.
- User
Password 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
. - Zone
Ids []string - The zone id of the rabbitmq instance. Support specifying multiple availability zones.
- Instance
Description string - The description of the rabbitmq instance.
- Instance
Name string - The name of the rabbitmq instance.
- Project
Name string - The IAM project name where the rabbitmq instance resides.
- []Instance
Tag Args - Tags.
- charge
Info InstanceCharge Info - The charge information of the rocketmq instance.
- compute
Spec String - The compute specification of the rabbitmq instance.
- storage
Space Integer - The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
- subnet
Id String - The subnet id of the rabbitmq instance.
- user
Name String - The administrator name of the rabbitmq instance.
- user
Password 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
. - zone
Ids List<String> - The zone id of the rabbitmq instance. Support specifying multiple availability zones.
- instance
Description String - The description of the rabbitmq instance.
- instance
Name String - The name of the rabbitmq instance.
- project
Name String - The IAM project name where the rabbitmq instance resides.
- List<Instance
Tag> - Tags.
- charge
Info InstanceCharge Info - The charge information of the rocketmq instance.
- compute
Spec string - The compute specification of the rabbitmq instance.
- storage
Space number - The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
- subnet
Id string - The subnet id of the rabbitmq instance.
- user
Name string - The administrator name of the rabbitmq instance.
- user
Password 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
. - zone
Ids string[] - The zone id of the rabbitmq instance. Support specifying multiple availability zones.
- instance
Description string - The description of the rabbitmq instance.
- instance
Name string - The name of the rabbitmq instance.
- project
Name string - The IAM project name where the rabbitmq instance resides.
- Instance
Tag[] - Tags.
- charge_
info InstanceCharge Info Args - 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.
- Sequence[Instance
Tag Args] - Tags.
- charge
Info Property Map - The charge information of the rocketmq instance.
- compute
Spec String - The compute specification of the rabbitmq instance.
- storage
Space Number - The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
- subnet
Id String - The subnet id of the rabbitmq instance.
- user
Name String - The administrator name of the rabbitmq instance.
- user
Password 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
. - zone
Ids List<String> - The zone id of the rabbitmq instance. Support specifying multiple availability zones.
- instance
Description String - The description of the rabbitmq instance.
- instance
Name String - The name of the rabbitmq instance.
- project
Name String - The IAM project name where the rabbitmq instance resides.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Account
Id string - The account id of the rabbitmq instance.
- Apply
Private boolDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- Arch
Type string - The type of the rabbitmq instance.
- Create
Time string - The create time of the rabbitmq instance.
- Eip
Id string - The eip id of the rabbitmq instance.
- Endpoints
List<Instance
Endpoint> - The endpoint info of the rabbitmq instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Init
User stringName - The WebUI admin user name of the rabbitmq instance.
- Instance
Status string - The status of the rabbitmq instance.
- Region
Id string - The region id of the rabbitmq instance.
- Used
Storage intSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- Vpc
Id string - The vpc id of the rabbitmq instance.
- Account
Id string - The account id of the rabbitmq instance.
- Apply
Private boolDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- Arch
Type string - The type of the rabbitmq instance.
- Create
Time string - The create time of the rabbitmq instance.
- Eip
Id string - The eip id of the rabbitmq instance.
- Endpoints
[]Instance
Endpoint - The endpoint info of the rabbitmq instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Init
User stringName - The WebUI admin user name of the rabbitmq instance.
- Instance
Status string - The status of the rabbitmq instance.
- Region
Id string - The region id of the rabbitmq instance.
- Used
Storage intSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- Vpc
Id string - The vpc id of the rabbitmq instance.
- account
Id String - The account id of the rabbitmq instance.
- apply
Private BooleanDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- arch
Type String - The type of the rabbitmq instance.
- create
Time String - The create time of the rabbitmq instance.
- eip
Id String - The eip id of the rabbitmq instance.
- endpoints
List<Instance
Endpoint> - The endpoint info of the rabbitmq instance.
- id String
- The provider-assigned unique ID for this managed resource.
- init
User StringName - The WebUI admin user name of the rabbitmq instance.
- instance
Status String - The status of the rabbitmq instance.
- region
Id String - The region id of the rabbitmq instance.
- used
Storage IntegerSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- vpc
Id String - The vpc id of the rabbitmq instance.
- account
Id string - The account id of the rabbitmq instance.
- apply
Private booleanDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- arch
Type string - The type of the rabbitmq instance.
- create
Time string - The create time of the rabbitmq instance.
- eip
Id string - The eip id of the rabbitmq instance.
- endpoints
Instance
Endpoint[] - The endpoint info of the rabbitmq instance.
- id string
- The provider-assigned unique ID for this managed resource.
- init
User stringName - The WebUI admin user name of the rabbitmq instance.
- instance
Status string - The status of the rabbitmq instance.
- region
Id string - The region id of the rabbitmq instance.
- used
Storage numberSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- vpc
Id string - The vpc id of the rabbitmq instance.
- account_
id str - The account id of the rabbitmq instance.
- apply_
private_ booldns_ to_ public - 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[Instance
Endpoint] - The endpoint info of the rabbitmq instance.
- id str
- The provider-assigned unique ID for this managed resource.
- init_
user_ strname - 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_ intspace - The used storage space of the rabbitmq instance. Unit: GiB.
- vpc_
id str - The vpc id of the rabbitmq instance.
- account
Id String - The account id of the rabbitmq instance.
- apply
Private BooleanDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- arch
Type String - The type of the rabbitmq instance.
- create
Time String - The create time of the rabbitmq instance.
- eip
Id 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.
- init
User StringName - The WebUI admin user name of the rabbitmq instance.
- instance
Status String - The status of the rabbitmq instance.
- region
Id String - The region id of the rabbitmq instance.
- used
Storage NumberSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- vpc
Id 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.
- Account
Id string - The account id of the rabbitmq instance.
- Apply
Private boolDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- Arch
Type string - The type of the rabbitmq instance.
- Charge
Info InstanceCharge Info - The charge information of the rocketmq instance.
- Compute
Spec string - The compute specification of the rabbitmq instance.
- Create
Time string - The create time of the rabbitmq instance.
- Eip
Id string - The eip id of the rabbitmq instance.
- Endpoints
List<Instance
Endpoint> - The endpoint info of the rabbitmq instance.
- Init
User stringName - The WebUI admin user name of the rabbitmq instance.
- Instance
Description string - The description of the rabbitmq instance.
- Instance
Name string - The name of the rabbitmq instance.
- Instance
Status string - The status of the rabbitmq instance.
- Project
Name string - The IAM project name where the rabbitmq instance resides.
- Region
Id string - 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 string - The subnet id of the rabbitmq instance.
- List<Instance
Tag> - Tags.
- Used
Storage intSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- User
Name string - The administrator name of the rabbitmq instance.
- User
Password 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
. - Vpc
Id string - The vpc id of the rabbitmq instance.
- Zone
Ids List<string> - The zone id of the rabbitmq instance. Support specifying multiple availability zones.
- Account
Id string - The account id of the rabbitmq instance.
- Apply
Private boolDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- Arch
Type string - The type of the rabbitmq instance.
- Charge
Info InstanceCharge Info Args - The charge information of the rocketmq instance.
- Compute
Spec string - The compute specification of the rabbitmq instance.
- Create
Time string - The create time of the rabbitmq instance.
- Eip
Id string - The eip id of the rabbitmq instance.
- Endpoints
[]Instance
Endpoint Args - The endpoint info of the rabbitmq instance.
- Init
User stringName - The WebUI admin user name of the rabbitmq instance.
- Instance
Description string - The description of the rabbitmq instance.
- Instance
Name string - The name of the rabbitmq instance.
- Instance
Status string - The status of the rabbitmq instance.
- Project
Name string - The IAM project name where the rabbitmq instance resides.
- Region
Id string - 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 string - The subnet id of the rabbitmq instance.
- []Instance
Tag Args - Tags.
- Used
Storage intSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- User
Name string - The administrator name of the rabbitmq instance.
- User
Password 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
. - Vpc
Id string - The vpc id of the rabbitmq instance.
- Zone
Ids []string - The zone id of the rabbitmq instance. Support specifying multiple availability zones.
- account
Id String - The account id of the rabbitmq instance.
- apply
Private BooleanDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- arch
Type String - The type of the rabbitmq instance.
- charge
Info InstanceCharge Info - The charge information of the rocketmq instance.
- compute
Spec String - The compute specification of the rabbitmq instance.
- create
Time String - The create time of the rabbitmq instance.
- eip
Id String - The eip id of the rabbitmq instance.
- endpoints
List<Instance
Endpoint> - The endpoint info of the rabbitmq instance.
- init
User StringName - The WebUI admin user name of the rabbitmq instance.
- instance
Description String - The description of the rabbitmq instance.
- instance
Name String - The name of the rabbitmq instance.
- instance
Status String - The status of the rabbitmq instance.
- project
Name String - The IAM project name where the rabbitmq instance resides.
- region
Id String - The region id of the rabbitmq instance.
- storage
Space Integer - The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
- subnet
Id String - The subnet id of the rabbitmq instance.
- List<Instance
Tag> - Tags.
- used
Storage IntegerSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- user
Name String - The administrator name of the rabbitmq instance.
- user
Password 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
. - vpc
Id String - The vpc id of the rabbitmq instance.
- zone
Ids List<String> - The zone id of the rabbitmq instance. Support specifying multiple availability zones.
- account
Id string - The account id of the rabbitmq instance.
- apply
Private booleanDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- arch
Type string - The type of the rabbitmq instance.
- charge
Info InstanceCharge Info - The charge information of the rocketmq instance.
- compute
Spec string - The compute specification of the rabbitmq instance.
- create
Time string - The create time of the rabbitmq instance.
- eip
Id string - The eip id of the rabbitmq instance.
- endpoints
Instance
Endpoint[] - The endpoint info of the rabbitmq instance.
- init
User stringName - The WebUI admin user name of the rabbitmq instance.
- instance
Description string - The description of the rabbitmq instance.
- instance
Name string - The name of the rabbitmq instance.
- instance
Status string - The status of the rabbitmq instance.
- project
Name string - The IAM project name where the rabbitmq instance resides.
- region
Id string - The region id of the rabbitmq instance.
- storage
Space number - The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
- subnet
Id string - The subnet id of the rabbitmq instance.
- Instance
Tag[] - Tags.
- used
Storage numberSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- user
Name string - The administrator name of the rabbitmq instance.
- user
Password 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
. - vpc
Id string - The vpc id of the rabbitmq instance.
- zone
Ids 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_ booldns_ to_ public - Whether enable the public network parsing function of the rabbitmq instance.
- arch_
type str - The type of the rabbitmq instance.
- charge_
info InstanceCharge Info Args - 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[Instance
Endpoint Args] - The endpoint info of the rabbitmq instance.
- init_
user_ strname - 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.
- Sequence[Instance
Tag Args] - Tags.
- used_
storage_ intspace - 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.
- account
Id String - The account id of the rabbitmq instance.
- apply
Private BooleanDns To Public - Whether enable the public network parsing function of the rabbitmq instance.
- arch
Type String - The type of the rabbitmq instance.
- charge
Info Property Map - The charge information of the rocketmq instance.
- compute
Spec String - The compute specification of the rabbitmq instance.
- create
Time String - The create time of the rabbitmq instance.
- eip
Id String - The eip id of the rabbitmq instance.
- endpoints List<Property Map>
- The endpoint info of the rabbitmq instance.
- init
User StringName - The WebUI admin user name of the rabbitmq instance.
- instance
Description String - The description of the rabbitmq instance.
- instance
Name String - The name of the rabbitmq instance.
- instance
Status String - The status of the rabbitmq instance.
- project
Name String - The IAM project name where the rabbitmq instance resides.
- region
Id String - The region id of the rabbitmq instance.
- storage
Space Number - The storage space of the rabbitmq instance. Unit: GiB. The valid value must be specified as a multiple of 100.
- subnet
Id String - The subnet id of the rabbitmq instance.
- List<Property Map>
- Tags.
- used
Storage NumberSpace - The used storage space of the rabbitmq instance. Unit: GiB.
- user
Name String - The administrator name of the rabbitmq instance.
- user
Password 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
. - vpc
Id String - The vpc id of the rabbitmq instance.
- zone
Ids List<String> - The zone id of the rabbitmq instance. Support specifying multiple availability zones.
Supporting Types
InstanceChargeInfo, InstanceChargeInfoArgs
- Charge
Type string - 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 asYear
, the value range is 1-3. Default is 1. - Period
Unit string - The purchase cycle in the prepaid scenario. Valid values:
Month
,Year
. Default isMonth
.
- Charge
Type string - 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 asYear
, the value range is 1-3. Default is 1. - Period
Unit string - The purchase cycle in the prepaid scenario. Valid values:
Month
,Year
. Default isMonth
.
- charge
Type String - The charge type of the rabbitmq instance. Valid values:
PostPaid
,PrePaid
. - auto
Renew 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 asYear
, the value range is 1-3. Default is 1. - period
Unit String - The purchase cycle in the prepaid scenario. Valid values:
Month
,Year
. Default isMonth
.
- charge
Type string - The charge type of the rabbitmq instance. Valid values:
PostPaid
,PrePaid
. - auto
Renew 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 asYear
, the value range is 1-3. Default is 1. - period
Unit string - The purchase cycle in the prepaid scenario. Valid values:
Month
,Year
. Default isMonth
.
- 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 asYear
, the value range is 1-3. Default is 1. - period_
unit str - The purchase cycle in the prepaid scenario. Valid values:
Month
,Year
. Default isMonth
.
- charge
Type String - The charge type of the rabbitmq instance. Valid values:
PostPaid
,PrePaid
. - auto
Renew 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 asYear
, the value range is 1-3. Default is 1. - period
Unit String - The purchase cycle in the prepaid scenario. Valid values:
Month
,Year
. Default isMonth
.
InstanceEndpoint, InstanceEndpointArgs
- Endpoint
Type string - The endpoint type of the rabbitmq instance.
- Internal
Endpoint string - The internal endpoint of the rabbitmq instance.
- Network
Type string - The network type of the rabbitmq instance.
- Public
Endpoint string - The public endpoint of the rabbitmq instance.
- Endpoint
Type string - The endpoint type of the rabbitmq instance.
- Internal
Endpoint string - The internal endpoint of the rabbitmq instance.
- Network
Type string - The network type of the rabbitmq instance.
- Public
Endpoint string - The public endpoint of the rabbitmq instance.
- endpoint
Type String - The endpoint type of the rabbitmq instance.
- internal
Endpoint String - The internal endpoint of the rabbitmq instance.
- network
Type String - The network type of the rabbitmq instance.
- public
Endpoint String - The public endpoint of the rabbitmq instance.
- endpoint
Type string - The endpoint type of the rabbitmq instance.
- internal
Endpoint string - The internal endpoint of the rabbitmq instance.
- network
Type string - The network type of the rabbitmq instance.
- public
Endpoint 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.
- endpoint
Type String - The endpoint type of the rabbitmq instance.
- internal
Endpoint String - The internal endpoint of the rabbitmq instance.
- network
Type String - The network type of the rabbitmq instance.
- public
Endpoint String - The public endpoint of the rabbitmq instance.
InstanceTag, InstanceTagArgs
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.