published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
白名单是数据库连接的安全防控手段,只有白名单内的 IP 地址才能访问数据库。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
rdsMysqlAllowListDemo:
type: bytepluscc:rdsmysql:AllowList
name: RdsMysqlAllowListDemo
properties:
userAllowLists:
- 1.2.3.4
allowListCategory: Default
allowListDesc: this is a test
allowListName: ccapi-test-2
allowListType: IPv4
projectName: default
securityGroupBindInfos:
- bind_mode: AssociateEcsIp
ip_list: null
security_group_id: sg-1a10axxxxxvepkdgqgnu
security_group_name: Default
- bind_mode: IngressDirectionIp
ip_list:
- 100.70.0.0/16
- 100.72.0.0/16
- 0.0.0.0/0
security_group_id: sg-3nqt4kwxxxxx931ebkntmrc
security_group_name: Default
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: Optional[AllowListArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AllowList(resource_name: str,
opts: Optional[ResourceOptions] = None,
allow_list_category: Optional[str] = None,
allow_list_desc: Optional[str] = None,
allow_list_name: Optional[str] = None,
allow_list_type: Optional[str] = None,
allow_lists: Optional[Sequence[str]] = None,
associated_instance_num: Optional[int] = None,
ignore_instance_status: Optional[bool] = None,
instance_id: Optional[str] = None,
modify_mode: Optional[str] = None,
project_name: Optional[str] = None,
security_group_bind_infos: Optional[Sequence[AllowListSecurityGroupBindInfoArgs]] = None,
security_group_ids: Optional[Sequence[str]] = None,
update_security_group: Optional[bool] = None,
user_allow_lists: Optional[Sequence[str]] = None)func NewAllowList(ctx *Context, name string, args *AllowListArgs, opts ...ResourceOption) (*AllowList, error)public AllowList(string name, AllowListArgs? args = null, CustomResourceOptions? opts = null)
public AllowList(String name, AllowListArgs args)
public AllowList(String name, AllowListArgs args, CustomResourceOptions options)
type: bytepluscc:rdsmysql: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 byteplusccAllowListResource = new Bytepluscc.Rdsmysql.AllowList("byteplusccAllowListResource", new()
{
AllowListCategory = "string",
AllowListDesc = "string",
AllowListName = "string",
AllowListType = "string",
AllowListValue = new[]
{
"string",
},
AssociatedInstanceNum = 0,
IgnoreInstanceStatus = false,
InstanceId = "string",
ModifyMode = "string",
ProjectName = "string",
SecurityGroupBindInfos = new[]
{
new Bytepluscc.Rdsmysql.Inputs.AllowListSecurityGroupBindInfoArgs
{
BindMode = "string",
IpLists = new[]
{
"string",
},
SecurityGroupId = "string",
SecurityGroupName = "string",
},
},
SecurityGroupIds = new[]
{
"string",
},
UpdateSecurityGroup = false,
UserAllowLists = new[]
{
"string",
},
});
example, err := rdsmysql.NewAllowList(ctx, "byteplusccAllowListResource", &rdsmysql.AllowListArgs{
AllowListCategory: pulumi.String("string"),
AllowListDesc: pulumi.String("string"),
AllowListName: pulumi.String("string"),
AllowListType: pulumi.String("string"),
AllowLists: pulumi.StringArray{
pulumi.String("string"),
},
AssociatedInstanceNum: pulumi.Int(0),
IgnoreInstanceStatus: pulumi.Bool(false),
InstanceId: pulumi.String("string"),
ModifyMode: pulumi.String("string"),
ProjectName: pulumi.String("string"),
SecurityGroupBindInfos: rdsmysql.AllowListSecurityGroupBindInfoArray{
&rdsmysql.AllowListSecurityGroupBindInfoArgs{
BindMode: pulumi.String("string"),
IpLists: pulumi.StringArray{
pulumi.String("string"),
},
SecurityGroupId: pulumi.String("string"),
SecurityGroupName: pulumi.String("string"),
},
},
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
UpdateSecurityGroup: pulumi.Bool(false),
UserAllowLists: pulumi.StringArray{
pulumi.String("string"),
},
})
var byteplusccAllowListResource = new com.byteplus.bytepluscc.rdsmysql.AllowList("byteplusccAllowListResource", com.byteplus.bytepluscc.rdsmysql.AllowListArgs.builder()
.allowListCategory("string")
.allowListDesc("string")
.allowListName("string")
.allowListType("string")
.allowLists("string")
.associatedInstanceNum(0)
.ignoreInstanceStatus(false)
.instanceId("string")
.modifyMode("string")
.projectName("string")
.securityGroupBindInfos(AllowListSecurityGroupBindInfoArgs.builder()
.bindMode("string")
.ipLists("string")
.securityGroupId("string")
.securityGroupName("string")
.build())
.securityGroupIds("string")
.updateSecurityGroup(false)
.userAllowLists("string")
.build());
bytepluscc_allow_list_resource = bytepluscc.rdsmysql.AllowList("byteplusccAllowListResource",
allow_list_category="string",
allow_list_desc="string",
allow_list_name="string",
allow_list_type="string",
allow_lists=["string"],
associated_instance_num=0,
ignore_instance_status=False,
instance_id="string",
modify_mode="string",
project_name="string",
security_group_bind_infos=[{
"bind_mode": "string",
"ip_lists": ["string"],
"security_group_id": "string",
"security_group_name": "string",
}],
security_group_ids=["string"],
update_security_group=False,
user_allow_lists=["string"])
const byteplusccAllowListResource = new bytepluscc.rdsmysql.AllowList("byteplusccAllowListResource", {
allowListCategory: "string",
allowListDesc: "string",
allowListName: "string",
allowListType: "string",
allowLists: ["string"],
associatedInstanceNum: 0,
ignoreInstanceStatus: false,
instanceId: "string",
modifyMode: "string",
projectName: "string",
securityGroupBindInfos: [{
bindMode: "string",
ipLists: ["string"],
securityGroupId: "string",
securityGroupName: "string",
}],
securityGroupIds: ["string"],
updateSecurityGroup: false,
userAllowLists: ["string"],
});
type: bytepluscc:rdsmysql:AllowList
properties:
allowListCategory: string
allowListDesc: string
allowListName: string
allowListType: string
allowLists:
- string
associatedInstanceNum: 0
ignoreInstanceStatus: false
instanceId: string
modifyMode: string
projectName: string
securityGroupBindInfos:
- bindMode: string
ipLists:
- string
securityGroupId: string
securityGroupName: string
securityGroupIds:
- string
updateSecurityGroup: false
userAllowLists:
- 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 stringCategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- Allow
List stringDesc - 白名单的备注。
- Allow
List stringName - 白名单名称。
- Allow
List stringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- Allow
List List<string>Value - 白名单内的 IP 地址列表
- Associated
Instance intNum - 白名单下绑定的实例总数。
- Ignore
Instance boolStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- Instance
Id string - 实例 ID。
- Modify
Mode string - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- Project
Name string - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- Security
Group List<Byteplus.Bind Infos Allow List Security Group Bind Info> - Security
Group List<string>Ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- Update
Security boolGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- User
Allow List<string>Lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- Allow
List stringCategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- Allow
List stringDesc - 白名单的备注。
- Allow
List stringName - 白名单名称。
- Allow
List stringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- Allow
Lists []string - 白名单内的 IP 地址列表
- Associated
Instance intNum - 白名单下绑定的实例总数。
- Ignore
Instance boolStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- Instance
Id string - 实例 ID。
- Modify
Mode string - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- Project
Name string - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- Security
Group []AllowBind Infos List Security Group Bind Info Args - Security
Group []stringIds - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- Update
Security boolGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- User
Allow []stringLists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- allow
List StringCategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- allow
List StringDesc - 白名单的备注。
- allow
List StringName - 白名单名称。
- allow
List StringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- allow
Lists List<String> - 白名单内的 IP 地址列表
- associated
Instance IntegerNum - 白名单下绑定的实例总数。
- ignore
Instance BooleanStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- instance
Id String - 实例 ID。
- modify
Mode String - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- project
Name String - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- security
Group List<AllowBind Infos List Security Group Bind Info> - security
Group List<String>Ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- update
Security BooleanGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- user
Allow List<String>Lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- allow
List stringCategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- allow
List stringDesc - 白名单的备注。
- allow
List stringName - 白名单名称。
- allow
List stringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- allow
Lists string[] - 白名单内的 IP 地址列表
- associated
Instance numberNum - 白名单下绑定的实例总数。
- ignore
Instance booleanStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- instance
Id string - 实例 ID。
- modify
Mode string - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- project
Name string - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- security
Group AllowBind Infos List Security Group Bind Info[] - security
Group string[]Ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- update
Security booleanGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- user
Allow string[]Lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- allow_
list_ strcategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- allow_
list_ strdesc - 白名单的备注。
- allow_
list_ strname - 白名单名称。
- allow_
list_ strtype - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- allow_
lists Sequence[str] - 白名单内的 IP 地址列表
- associated_
instance_ intnum - 白名单下绑定的实例总数。
- ignore_
instance_ boolstatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- instance_
id str - 实例 ID。
- modify_
mode str - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- project_
name str - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- security_
group_ Sequence[Allowbind_ infos List Security Group Bind Info Args] - security_
group_ Sequence[str]ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- update_
security_ boolgroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- user_
allow_ Sequence[str]lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- allow
List StringCategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- allow
List StringDesc - 白名单的备注。
- allow
List StringName - 白名单名称。
- allow
List StringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- allow
Lists List<String> - 白名单内的 IP 地址列表
- associated
Instance NumberNum - 白名单下绑定的实例总数。
- ignore
Instance BooleanStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- instance
Id String - 实例 ID。
- modify
Mode String - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- project
Name String - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- security
Group List<Property Map>Bind Infos - security
Group List<String>Ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- update
Security BooleanGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- user
Allow List<String>Lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
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
Instances List<Byteplus.Allow List Associated Instance> - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Lists List<string> - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- Allow
List stringId - 白名单 ID 。
- Allow
List intIp Num - 白名单内的 IP 地址(或地址段)总数。
- Associated
Instances []AllowList Associated Instance - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Lists []string - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- allow
List StringId - 白名单 ID 。
- allow
List IntegerIp Num - 白名单内的 IP 地址(或地址段)总数。
- associated
Instances List<AllowList Associated Instance> - id String
- The provider-assigned unique ID for this managed resource.
- ip
Lists List<String> - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- allow
List stringId - 白名单 ID 。
- allow
List numberIp Num - 白名单内的 IP 地址(或地址段)总数。
- associated
Instances AllowList Associated Instance[] - id string
- The provider-assigned unique ID for this managed resource.
- ip
Lists string[] - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- allow_
list_ strid - 白名单 ID 。
- allow_
list_ intip_ num - 白名单内的 IP 地址(或地址段)总数。
- associated_
instances Sequence[AllowList Associated Instance] - id str
- The provider-assigned unique ID for this managed resource.
- ip_
lists Sequence[str] - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- allow
List StringId - 白名单 ID 。
- allow
List NumberIp Num - 白名单内的 IP 地址(或地址段)总数。
- associated
Instances List<Property Map> - id String
- The provider-assigned unique ID for this managed resource.
- ip
Lists List<String> - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
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_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,
allow_lists: Optional[Sequence[str]] = None,
associated_instance_num: Optional[int] = None,
associated_instances: Optional[Sequence[AllowListAssociatedInstanceArgs]] = None,
ignore_instance_status: Optional[bool] = None,
instance_id: Optional[str] = None,
ip_lists: Optional[Sequence[str]] = None,
modify_mode: Optional[str] = None,
project_name: Optional[str] = None,
security_group_bind_infos: Optional[Sequence[AllowListSecurityGroupBindInfoArgs]] = None,
security_group_ids: Optional[Sequence[str]] = None,
update_security_group: Optional[bool] = None,
user_allow_lists: Optional[Sequence[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: bytepluscc:rdsmysql: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 - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- Allow
List stringDesc - 白名单的备注。
- Allow
List stringId - 白名单 ID 。
- Allow
List intIp Num - 白名单内的 IP 地址(或地址段)总数。
- Allow
List stringName - 白名单名称。
- Allow
List stringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- Allow
List List<string>Value - 白名单内的 IP 地址列表
- Associated
Instance intNum - 白名单下绑定的实例总数。
- Associated
Instances List<Byteplus.Allow List Associated Instance> - Ignore
Instance boolStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- Instance
Id string - 实例 ID。
- Ip
Lists List<string> - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- Modify
Mode string - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- Project
Name string - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- Security
Group List<Byteplus.Bind Infos Allow List Security Group Bind Info> - Security
Group List<string>Ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- Update
Security boolGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- User
Allow List<string>Lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- Allow
List stringCategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- Allow
List stringDesc - 白名单的备注。
- Allow
List stringId - 白名单 ID 。
- Allow
List intIp Num - 白名单内的 IP 地址(或地址段)总数。
- Allow
List stringName - 白名单名称。
- Allow
List stringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- Allow
Lists []string - 白名单内的 IP 地址列表
- Associated
Instance intNum - 白名单下绑定的实例总数。
- Associated
Instances []AllowList Associated Instance Args - Ignore
Instance boolStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- Instance
Id string - 实例 ID。
- Ip
Lists []string - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- Modify
Mode string - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- Project
Name string - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- Security
Group []AllowBind Infos List Security Group Bind Info Args - Security
Group []stringIds - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- Update
Security boolGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- User
Allow []stringLists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- allow
List StringCategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- allow
List StringDesc - 白名单的备注。
- allow
List StringId - 白名单 ID 。
- allow
List IntegerIp Num - 白名单内的 IP 地址(或地址段)总数。
- allow
List StringName - 白名单名称。
- allow
List StringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- allow
Lists List<String> - 白名单内的 IP 地址列表
- associated
Instance IntegerNum - 白名单下绑定的实例总数。
- associated
Instances List<AllowList Associated Instance> - ignore
Instance BooleanStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- instance
Id String - 实例 ID。
- ip
Lists List<String> - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- modify
Mode String - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- project
Name String - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- security
Group List<AllowBind Infos List Security Group Bind Info> - security
Group List<String>Ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- update
Security BooleanGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- user
Allow List<String>Lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- allow
List stringCategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- allow
List stringDesc - 白名单的备注。
- allow
List stringId - 白名单 ID 。
- allow
List numberIp Num - 白名单内的 IP 地址(或地址段)总数。
- allow
List stringName - 白名单名称。
- allow
List stringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- allow
Lists string[] - 白名单内的 IP 地址列表
- associated
Instance numberNum - 白名单下绑定的实例总数。
- associated
Instances AllowList Associated Instance[] - ignore
Instance booleanStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- instance
Id string - 实例 ID。
- ip
Lists string[] - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- modify
Mode string - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- project
Name string - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- security
Group AllowBind Infos List Security Group Bind Info[] - security
Group string[]Ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- update
Security booleanGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- user
Allow string[]Lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- allow_
list_ strcategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- allow_
list_ strdesc - 白名单的备注。
- allow_
list_ strid - 白名单 ID 。
- allow_
list_ intip_ num - 白名单内的 IP 地址(或地址段)总数。
- allow_
list_ strname - 白名单名称。
- allow_
list_ strtype - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- allow_
lists Sequence[str] - 白名单内的 IP 地址列表
- associated_
instance_ intnum - 白名单下绑定的实例总数。
- associated_
instances Sequence[AllowList Associated Instance Args] - ignore_
instance_ boolstatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- instance_
id str - 实例 ID。
- ip_
lists Sequence[str] - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- modify_
mode str - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- project_
name str - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- security_
group_ Sequence[Allowbind_ infos List Security Group Bind Info Args] - security_
group_ Sequence[str]ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- update_
security_ boolgroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- user_
allow_ Sequence[str]lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
- allow
List StringCategory - 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时,默认值为 Ordinary。
- allow
List StringDesc - 白名单的备注。
- allow
List StringId - 白名单 ID 。
- allow
List NumberIp Num - 白名单内的 IP 地址(或地址段)总数。
- allow
List StringName - 白名单名称。
- allow
List StringType - 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。
- allow
Lists List<String> - 白名单内的 IP 地址列表
- associated
Instance NumberNum - 白名单下绑定的实例总数。
- associated
Instances List<Property Map> - ignore
Instance BooleanStatus - 是否忽略实例状态校验。取值:true:是。false:否。默认值。
- instance
Id String - 实例 ID。
- ip
Lists List<String> - 白名单包含的 IP 地址和 IP 地址段的列表。在请求参数 WithIpList 取值为 true 时返回,在取值为 false 或不为其传值时返回为 null。
- modify
Mode String - 修改方式,取值范围如下:Cover(默认值):使用 AllowList 参数中的值覆盖原白名单。Append:在原白名单中增加 AllowList 参数中输入的 IP 地址。Delete:在原白名单中删除 AllowList 参数中输入的 IP 地址。至少需要保留一个 IP 地址。
- project
Name String - 所属的项目。说明如您调用接口使用的 AK/SK 属于某个子账号,且该子账号只拥有某个项目的权限,需要传入该请求参数。
- security
Group List<Property Map>Bind Infos - security
Group List<String>Ids - 需要关联的安全组 ID 列表。说明您可以调用 DescribeSecurityGroups 接口查询安全组信息,包括安全组 ID。单个白名单单次最多可选择添加 10 个安全组。该字段不能与 SecurityGroupBindInfos 同时使用。
- update
Security BooleanGroup - 是否更新白名单所绑定的安全组。true:更新。false:不更新。默认值。说明该字段仅在白名单已绑定了安全组时生效。可调用 DescribeAllowLists 接口查询白名单是否绑定了安全组。
- user
Allow List<String>Lists - 该名单中由用户输入的 IP 地址。AllowList 字段中的 IP 为 UserAllowList 和 SecurityGroupBindInfos 包含的 IP 的并集。
Supporting Types
AllowListAssociatedInstance, AllowListAssociatedInstanceArgs
- Instance
Id string - 已绑定当前白名单的实例 ID。
- Instance
Name string - 已绑定当前白名单的实例名称。
- Instance
Status string - 实例状态。
- Is
Latest bool - 是否已同步最新的白名单。取值:true:是。false:否。说明在修改白名单时,如实例状态未处于运行中,白名单的修改不会立即同步到实例。
- Vpc string
- 实例所属的私有网络 ID。
- Instance
Id string - 已绑定当前白名单的实例 ID。
- Instance
Name string - 已绑定当前白名单的实例名称。
- Instance
Status string - 实例状态。
- Is
Latest bool - 是否已同步最新的白名单。取值:true:是。false:否。说明在修改白名单时,如实例状态未处于运行中,白名单的修改不会立即同步到实例。
- Vpc string
- 实例所属的私有网络 ID。
- instance
Id String - 已绑定当前白名单的实例 ID。
- instance
Name String - 已绑定当前白名单的实例名称。
- instance
Status String - 实例状态。
- is
Latest Boolean - 是否已同步最新的白名单。取值:true:是。false:否。说明在修改白名单时,如实例状态未处于运行中,白名单的修改不会立即同步到实例。
- vpc String
- 实例所属的私有网络 ID。
- instance
Id string - 已绑定当前白名单的实例 ID。
- instance
Name string - 已绑定当前白名单的实例名称。
- instance
Status string - 实例状态。
- is
Latest boolean - 是否已同步最新的白名单。取值:true:是。false:否。说明在修改白名单时,如实例状态未处于运行中,白名单的修改不会立即同步到实例。
- vpc string
- 实例所属的私有网络 ID。
- instance_
id str - 已绑定当前白名单的实例 ID。
- instance_
name str - 已绑定当前白名单的实例名称。
- instance_
status str - 实例状态。
- is_
latest bool - 是否已同步最新的白名单。取值:true:是。false:否。说明在修改白名单时,如实例状态未处于运行中,白名单的修改不会立即同步到实例。
- vpc str
- 实例所属的私有网络 ID。
- instance
Id String - 已绑定当前白名单的实例 ID。
- instance
Name String - 已绑定当前白名单的实例名称。
- instance
Status String - 实例状态。
- is
Latest Boolean - 是否已同步最新的白名单。取值:true:是。false:否。说明在修改白名单时,如实例状态未处于运行中,白名单的修改不会立即同步到实例。
- vpc String
- 实例所属的私有网络 ID。
AllowListSecurityGroupBindInfo, AllowListSecurityGroupBindInfoArgs
- Bind
Mode string - 关联安全组的模式。取值:IngressDirectionIp:入方向 IP。AssociateEcsIp:关联 ECSIP。说明在 CreateAllowList 接口中,SecurityGroupBindInfoObject 的 BindMode 和 SecurityGroupId 字段为必填项。
- Ip
Lists List<string> - 安全组的 IP 地址列表。
- Security
Group stringId - 安全组 ID。
- Security
Group stringName - 安全组名称。
- Bind
Mode string - 关联安全组的模式。取值:IngressDirectionIp:入方向 IP。AssociateEcsIp:关联 ECSIP。说明在 CreateAllowList 接口中,SecurityGroupBindInfoObject 的 BindMode 和 SecurityGroupId 字段为必填项。
- Ip
Lists []string - 安全组的 IP 地址列表。
- Security
Group stringId - 安全组 ID。
- Security
Group stringName - 安全组名称。
- bind
Mode String - 关联安全组的模式。取值:IngressDirectionIp:入方向 IP。AssociateEcsIp:关联 ECSIP。说明在 CreateAllowList 接口中,SecurityGroupBindInfoObject 的 BindMode 和 SecurityGroupId 字段为必填项。
- ip
Lists List<String> - 安全组的 IP 地址列表。
- security
Group StringId - 安全组 ID。
- security
Group StringName - 安全组名称。
- bind
Mode string - 关联安全组的模式。取值:IngressDirectionIp:入方向 IP。AssociateEcsIp:关联 ECSIP。说明在 CreateAllowList 接口中,SecurityGroupBindInfoObject 的 BindMode 和 SecurityGroupId 字段为必填项。
- ip
Lists string[] - 安全组的 IP 地址列表。
- security
Group stringId - 安全组 ID。
- security
Group stringName - 安全组名称。
- bind_
mode str - 关联安全组的模式。取值:IngressDirectionIp:入方向 IP。AssociateEcsIp:关联 ECSIP。说明在 CreateAllowList 接口中,SecurityGroupBindInfoObject 的 BindMode 和 SecurityGroupId 字段为必填项。
- ip_
lists Sequence[str] - 安全组的 IP 地址列表。
- security_
group_ strid - 安全组 ID。
- security_
group_ strname - 安全组名称。
- bind
Mode String - 关联安全组的模式。取值:IngressDirectionIp:入方向 IP。AssociateEcsIp:关联 ECSIP。说明在 CreateAllowList 接口中,SecurityGroupBindInfoObject 的 BindMode 和 SecurityGroupId 字段为必填项。
- ip
Lists List<String> - 安全组的 IP 地址列表。
- security
Group StringId - 安全组 ID。
- security
Group StringName - 安全组名称。
Import
$ pulumi import bytepluscc:rdsmysql/allowList:AllowList example "allow_list_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Mar 9, 2026 by Byteplus
