published on Monday, Mar 9, 2026 by Volcengine
published on Monday, Mar 9, 2026 by Volcengine
RocketMQ访问白名单。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const rocketMQAllowListDemo = new volcenginecc.rocketmq.AllowList("RocketMQAllowListDemo", {
allowListType: "IPv4",
allowList: "192.xxx.0.0/24",
allowListName: "ccapi-test",
allowListDesc: "this is a description",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
rocket_mq_allow_list_demo = volcenginecc.rocketmq.AllowList("RocketMQAllowListDemo",
allow_list_type="IPv4",
allow_list="192.xxx.0.0/24",
allow_list_name="ccapi-test",
allow_list_desc="this is a description")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/rocketmq"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rocketmq.NewAllowList(ctx, "RocketMQAllowListDemo", &rocketmq.AllowListArgs{
AllowListType: pulumi.String("IPv4"),
AllowList: pulumi.String("192.xxx.0.0/24"),
AllowListName: pulumi.String("ccapi-test"),
AllowListDesc: pulumi.String("this is a description"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var rocketMQAllowListDemo = new Volcenginecc.Rocketmq.AllowList("RocketMQAllowListDemo", new()
{
AllowListType = "IPv4",
AllowListValue = "192.xxx.0.0/24",
AllowListName = "ccapi-test",
AllowListDesc = "this is a description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.rocketmq.AllowList;
import com.volcengine.volcenginecc.rocketmq.AllowListArgs;
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) {
var rocketMQAllowListDemo = new AllowList("rocketMQAllowListDemo", AllowListArgs.builder()
.allowListType("IPv4")
.allowList("192.xxx.0.0/24")
.allowListName("ccapi-test")
.allowListDesc("this is a description")
.build());
}
}
resources:
rocketMQAllowListDemo:
type: volcenginecc:rocketmq:AllowList
name: RocketMQAllowListDemo
properties:
allowListType: IPv4
allowList: 192.xxx.0.0/24
allowListName: ccapi-test
allowListDesc: this is a description
Create AllowList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AllowList(name: string, args: AllowListArgs, opts?: CustomResourceOptions);@overload
def AllowList(resource_name: str,
args: AllowListArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AllowList(resource_name: str,
opts: Optional[ResourceOptions] = None,
allow_list_name: Optional[str] = None,
allow_list: Optional[str] = None,
allow_list_category: Optional[str] = None,
allow_list_desc: Optional[str] = None,
allow_list_type: Optional[str] = None,
apply_db_instance_num: Optional[int] = None,
associated_instances: Optional[Sequence[AllowListAssociatedInstanceArgs]] = None,
instance_id: Optional[str] = None)func NewAllowList(ctx *Context, name string, args AllowListArgs, opts ...ResourceOption) (*AllowList, error)public AllowList(string name, AllowListArgs args, CustomResourceOptions? opts = null)
public AllowList(String name, AllowListArgs args)
public AllowList(String name, AllowListArgs args, CustomResourceOptions options)
type: volcenginecc:rocketmq:AllowList
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 AllowListArgs
- 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 AllowListArgs
- 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 AllowListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AllowListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AllowListArgs
- 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 exampleallowListResourceResourceFromRocketmqallowList = new Volcenginecc.Rocketmq.AllowList("exampleallowListResourceResourceFromRocketmqallowList", new()
{
AllowListName = "string",
AllowListValue = "string",
AllowListCategory = "string",
AllowListDesc = "string",
AllowListType = "string",
ApplyDbInstanceNum = 0,
AssociatedInstances = new[]
{
new Volcenginecc.Rocketmq.Inputs.AllowListAssociatedInstanceArgs
{
InstanceId = "string",
},
},
InstanceId = "string",
});
example, err := rocketmq.NewAllowList(ctx, "exampleallowListResourceResourceFromRocketmqallowList", &rocketmq.AllowListArgs{
AllowListName: pulumi.String("string"),
AllowList: pulumi.String("string"),
AllowListCategory: pulumi.String("string"),
AllowListDesc: pulumi.String("string"),
AllowListType: pulumi.String("string"),
ApplyDbInstanceNum: pulumi.Int(0),
AssociatedInstances: rocketmq.AllowListAssociatedInstanceArray{
&rocketmq.AllowListAssociatedInstanceArgs{
InstanceId: pulumi.String("string"),
},
},
InstanceId: pulumi.String("string"),
})
var exampleallowListResourceResourceFromRocketmqallowList = new com.volcengine.volcenginecc.rocketmq.AllowList("exampleallowListResourceResourceFromRocketmqallowList", com.volcengine.volcenginecc.rocketmq.AllowListArgs.builder()
.allowListName("string")
.allowList("string")
.allowListCategory("string")
.allowListDesc("string")
.allowListType("string")
.applyDbInstanceNum(0)
.associatedInstances(AllowListAssociatedInstanceArgs.builder()
.instanceId("string")
.build())
.instanceId("string")
.build());
exampleallow_list_resource_resource_from_rocketmqallow_list = volcenginecc.rocketmq.AllowList("exampleallowListResourceResourceFromRocketmqallowList",
allow_list_name="string",
allow_list="string",
allow_list_category="string",
allow_list_desc="string",
allow_list_type="string",
apply_db_instance_num=0,
associated_instances=[{
"instance_id": "string",
}],
instance_id="string")
const exampleallowListResourceResourceFromRocketmqallowList = new volcenginecc.rocketmq.AllowList("exampleallowListResourceResourceFromRocketmqallowList", {
allowListName: "string",
allowList: "string",
allowListCategory: "string",
allowListDesc: "string",
allowListType: "string",
applyDbInstanceNum: 0,
associatedInstances: [{
instanceId: "string",
}],
instanceId: "string",
});
type: volcenginecc:rocketmq:AllowList
properties:
allowList: string
allowListCategory: string
allowListDesc: string
allowListName: string
allowListType: string
applyDbInstanceNum: 0
associatedInstances:
- instanceId: string
instanceId: string
AllowList 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 AllowList resource accepts the following input properties:
- Allow
List stringName - 白名单名称。
- Allow
List stringCategory - 白名单分类。
- Allow
List stringDesc - 白名单描述。
- Allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- Allow
List stringValue - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- Apply
Db intInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- Associated
Instances List<Volcengine.Allow List Associated Instance> - Instance
Id string - 实例ID。
- Allow
List stringName - 白名单名称。
- Allow
List string - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- Allow
List stringCategory - 白名单分类。
- Allow
List stringDesc - 白名单描述。
- Allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- Apply
Db intInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- Associated
Instances []AllowList Associated Instance Args - Instance
Id string - 实例ID。
- allow
List StringName - 白名单名称。
- allow
List String - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List StringCategory - 白名单分类。
- allow
List StringDesc - 白名单描述。
- allow
List StringType - 白名单内的IP地址类型,当前仅支持IPv4。
- apply
Db IntegerInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- associated
Instances List<AllowList Associated Instance> - instance
Id String - 实例ID。
- allow
List stringName - 白名单名称。
- allow
List string - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List stringCategory - 白名单分类。
- allow
List stringDesc - 白名单描述。
- allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- apply
Db numberInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- associated
Instances AllowList Associated Instance[] - instance
Id string - 实例ID。
- allow_
list_ strname - 白名单名称。
- allow_
list str - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow_
list_ strcategory - 白名单分类。
- allow_
list_ strdesc - 白名单描述。
- allow_
list_ strtype - 白名单内的IP地址类型,当前仅支持IPv4。
- apply_
db_ intinstance_ num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- associated_
instances Sequence[AllowList Associated Instance Args] - instance_
id str - 实例ID。
- allow
List StringName - 白名单名称。
- allow
List String - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List StringCategory - 白名单分类。
- allow
List StringDesc - 白名单描述。
- allow
List StringType - 白名单内的IP地址类型,当前仅支持IPv4。
- apply
Db NumberInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- associated
Instances List<Property Map> - instance
Id String - 实例ID。
Outputs
All input properties are implicitly available as output properties. Additionally, the AllowList resource produces the following output properties:
- Allow
List stringId - 白名单的id。
- Allow
List intIp Num - 白名单内的 IP 地址(或地址段)总数。
- Associated
Instance intNum - 白名单下绑定的实例总数
- Id string
- The provider-assigned unique ID for this managed resource.
- Allow
List stringId - 白名单的id。
- Allow
List intIp Num - 白名单内的 IP 地址(或地址段)总数。
- Associated
Instance intNum - 白名单下绑定的实例总数
- Id string
- The provider-assigned unique ID for this managed resource.
- allow
List StringId - 白名单的id。
- allow
List IntegerIp Num - 白名单内的 IP 地址(或地址段)总数。
- associated
Instance IntegerNum - 白名单下绑定的实例总数
- id String
- The provider-assigned unique ID for this managed resource.
- allow
List stringId - 白名单的id。
- allow
List numberIp Num - 白名单内的 IP 地址(或地址段)总数。
- associated
Instance numberNum - 白名单下绑定的实例总数
- id string
- The provider-assigned unique ID for this managed resource.
- allow_
list_ strid - 白名单的id。
- allow_
list_ intip_ num - 白名单内的 IP 地址(或地址段)总数。
- associated_
instance_ intnum - 白名单下绑定的实例总数
- id str
- The provider-assigned unique ID for this managed resource.
- allow
List StringId - 白名单的id。
- allow
List NumberIp Num - 白名单内的 IP 地址(或地址段)总数。
- associated
Instance NumberNum - 白名单下绑定的实例总数
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AllowList Resource
Get an existing AllowList 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?: AllowListState, opts?: CustomResourceOptions): AllowList@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_list: Optional[str] = None,
allow_list_category: Optional[str] = None,
allow_list_desc: Optional[str] = None,
allow_list_id: Optional[str] = None,
allow_list_ip_num: Optional[int] = None,
allow_list_name: Optional[str] = None,
allow_list_type: Optional[str] = None,
apply_db_instance_num: Optional[int] = None,
associated_instance_num: Optional[int] = None,
associated_instances: Optional[Sequence[AllowListAssociatedInstanceArgs]] = None,
instance_id: Optional[str] = None) -> AllowListfunc GetAllowList(ctx *Context, name string, id IDInput, state *AllowListState, opts ...ResourceOption) (*AllowList, error)public static AllowList Get(string name, Input<string> id, AllowListState? state, CustomResourceOptions? opts = null)public static AllowList get(String name, Output<String> id, AllowListState state, CustomResourceOptions options)resources: _: type: volcenginecc:rocketmq:AllowList 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.
- Allow
List stringCategory - 白名单分类。
- Allow
List stringDesc - 白名单描述。
- Allow
List stringId - 白名单的id。
- Allow
List intIp Num - 白名单内的 IP 地址(或地址段)总数。
- Allow
List stringName - 白名单名称。
- Allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- Allow
List stringValue - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- Apply
Db intInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- Associated
Instance intNum - 白名单下绑定的实例总数
- Associated
Instances List<Volcengine.Allow List Associated Instance> - Instance
Id string - 实例ID。
- Allow
List string - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- Allow
List stringCategory - 白名单分类。
- Allow
List stringDesc - 白名单描述。
- Allow
List stringId - 白名单的id。
- Allow
List intIp Num - 白名单内的 IP 地址(或地址段)总数。
- Allow
List stringName - 白名单名称。
- Allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- Apply
Db intInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- Associated
Instance intNum - 白名单下绑定的实例总数
- Associated
Instances []AllowList Associated Instance Args - Instance
Id string - 实例ID。
- allow
List String - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List StringCategory - 白名单分类。
- allow
List StringDesc - 白名单描述。
- allow
List StringId - 白名单的id。
- allow
List IntegerIp Num - 白名单内的 IP 地址(或地址段)总数。
- allow
List StringName - 白名单名称。
- allow
List StringType - 白名单内的IP地址类型,当前仅支持IPv4。
- apply
Db IntegerInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- associated
Instance IntegerNum - 白名单下绑定的实例总数
- associated
Instances List<AllowList Associated Instance> - instance
Id String - 实例ID。
- allow
List string - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List stringCategory - 白名单分类。
- allow
List stringDesc - 白名单描述。
- allow
List stringId - 白名单的id。
- allow
List numberIp Num - 白名单内的 IP 地址(或地址段)总数。
- allow
List stringName - 白名单名称。
- allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- apply
Db numberInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- associated
Instance numberNum - 白名单下绑定的实例总数
- associated
Instances AllowList Associated Instance[] - instance
Id string - 实例ID。
- allow_
list str - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow_
list_ strcategory - 白名单分类。
- allow_
list_ strdesc - 白名单描述。
- allow_
list_ strid - 白名单的id。
- allow_
list_ intip_ num - 白名单内的 IP 地址(或地址段)总数。
- allow_
list_ strname - 白名单名称。
- allow_
list_ strtype - 白名单内的IP地址类型,当前仅支持IPv4。
- apply_
db_ intinstance_ num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- associated_
instance_ intnum - 白名单下绑定的实例总数
- associated_
instances Sequence[AllowList Associated Instance Args] - instance_
id str - 实例ID。
- allow
List String - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List StringCategory - 白名单分类。
- allow
List StringDesc - 白名单描述。
- allow
List StringId - 白名单的id。
- allow
List NumberIp Num - 白名单内的 IP 地址(或地址段)总数。
- allow
List StringName - 白名单名称。
- allow
List StringType - 白名单内的IP地址类型,当前仅支持IPv4。
- apply
Db NumberInstance Num - 已应用实例数量,即当前该白名单所绑定的实例数。主要目的是确认本次修改的影响范围,避免误操作引发故障。
- associated
Instance NumberNum - 白名单下绑定的实例总数
- associated
Instances List<Property Map> - instance
Id String - 实例ID。
Supporting Types
AllowListAssociatedInstance, AllowListAssociatedInstanceArgs
- Instance
Id string - 实例ID。
- Instance
Id string - 实例ID。
- instance
Id String - 实例ID。
- instance
Id string - 实例ID。
- instance_
id str - 实例ID。
- instance
Id String - 实例ID。
Import
$ pulumi import volcenginecc:rocketmq/allowList:AllowList example "allow_list_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Monday, Mar 9, 2026 by Volcengine
