published on Thursday, Mar 26, 2026 by Byteplus
published on Thursday, Mar 26, 2026 by Byteplus
API请求参数 - 创建RDS SQL Server白名单(CreateAllowList)。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
rDSMsSQLAllowlistDemo:
type: bytepluscc:rdsmssql:AllowList
name: RDSMsSQLAllowlistDemo
properties:
projectName: default
allowListName: ccapi-test-all
allowListDesc: ccapi-test
allowListType: IPv4
allowListCategory: Ordinary
allowList: 192.168.0.0/24,192.168.0.1,192.168.0.2
userAllowList: 192.168.0.0/24,192.168.0.1,192.168.0.2
associatedInstances:
- instance_id: mssql-9b195******
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,
associated_instance_num: Optional[int] = None,
associated_instances: Optional[Sequence[AllowListAssociatedInstanceArgs]] = None,
instance_id: Optional[str] = None,
project_name: Optional[str] = None,
user_allow_list: 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: bytepluscc:rdsmssql: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 exampleallowListResourceResourceFromRdsmssqlallowList = new Bytepluscc.Rdsmssql.AllowList("exampleallowListResourceResourceFromRdsmssqlallowList", new()
{
AllowListName = "string",
AllowListValue = "string",
AllowListCategory = "string",
AllowListDesc = "string",
AllowListType = "string",
AssociatedInstanceNum = 0,
AssociatedInstances = new[]
{
new Bytepluscc.Rdsmssql.Inputs.AllowListAssociatedInstanceArgs
{
InstanceId = "string",
},
},
InstanceId = "string",
ProjectName = "string",
UserAllowList = "string",
});
example, err := rdsmssql.NewAllowList(ctx, "exampleallowListResourceResourceFromRdsmssqlallowList", &rdsmssql.AllowListArgs{
AllowListName: pulumi.String("string"),
AllowList: pulumi.String("string"),
AllowListCategory: pulumi.String("string"),
AllowListDesc: pulumi.String("string"),
AllowListType: pulumi.String("string"),
AssociatedInstanceNum: pulumi.Int(0),
AssociatedInstances: rdsmssql.AllowListAssociatedInstanceArray{
&rdsmssql.AllowListAssociatedInstanceArgs{
InstanceId: pulumi.String("string"),
},
},
InstanceId: pulumi.String("string"),
ProjectName: pulumi.String("string"),
UserAllowList: pulumi.String("string"),
})
var exampleallowListResourceResourceFromRdsmssqlallowList = new com.byteplus.bytepluscc.rdsmssql.AllowList("exampleallowListResourceResourceFromRdsmssqlallowList", com.byteplus.bytepluscc.rdsmssql.AllowListArgs.builder()
.allowListName("string")
.allowList("string")
.allowListCategory("string")
.allowListDesc("string")
.allowListType("string")
.associatedInstanceNum(0)
.associatedInstances(AllowListAssociatedInstanceArgs.builder()
.instanceId("string")
.build())
.instanceId("string")
.projectName("string")
.userAllowList("string")
.build());
exampleallow_list_resource_resource_from_rdsmssqlallow_list = bytepluscc.rdsmssql.AllowList("exampleallowListResourceResourceFromRdsmssqlallowList",
allow_list_name="string",
allow_list="string",
allow_list_category="string",
allow_list_desc="string",
allow_list_type="string",
associated_instance_num=0,
associated_instances=[{
"instance_id": "string",
}],
instance_id="string",
project_name="string",
user_allow_list="string")
const exampleallowListResourceResourceFromRdsmssqlallowList = new bytepluscc.rdsmssql.AllowList("exampleallowListResourceResourceFromRdsmssqlallowList", {
allowListName: "string",
allowList: "string",
allowListCategory: "string",
allowListDesc: "string",
allowListType: "string",
associatedInstanceNum: 0,
associatedInstances: [{
instanceId: "string",
}],
instanceId: "string",
projectName: "string",
userAllowList: "string",
});
type: bytepluscc:rdsmssql:AllowList
properties:
allowList: string
allowListCategory: string
allowListDesc: string
allowListName: string
allowListType: string
associatedInstanceNum: 0
associatedInstances:
- instanceId: string
instanceId: string
projectName: string
userAllowList: 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 地址请以英文逗号(,)隔开,不可重复。
- Associated
Instance intNum - 绑定的实例数量。解绑实例的白名单时必传。
- Associated
Instances List<Byteplus.Allow List Associated Instance> - Instance
Id string - 实例ID。
- Project
Name string - 项目名称。
- User
Allow stringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- Allow
List stringName - 白名单名称。
- Allow
List string - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- Allow
List stringCategory - 白名单分类。
- Allow
List stringDesc - 白名单描述。
- Allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- Associated
Instance intNum - 绑定的实例数量。解绑实例的白名单时必传。
- Associated
Instances []AllowList Associated Instance Args - Instance
Id string - 实例ID。
- Project
Name string - 项目名称。
- User
Allow stringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- allow
List StringName - 白名单名称。
- allow
List String - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List StringCategory - 白名单分类。
- allow
List StringDesc - 白名单描述。
- allow
List StringType - 白名单内的IP地址类型,当前仅支持IPv4。
- associated
Instance IntegerNum - 绑定的实例数量。解绑实例的白名单时必传。
- associated
Instances List<AllowList Associated Instance> - instance
Id String - 实例ID。
- project
Name String - 项目名称。
- user
Allow StringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- allow
List stringName - 白名单名称。
- allow
List string - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List stringCategory - 白名单分类。
- allow
List stringDesc - 白名单描述。
- allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- associated
Instance numberNum - 绑定的实例数量。解绑实例的白名单时必传。
- associated
Instances AllowList Associated Instance[] - instance
Id string - 实例ID。
- project
Name string - 项目名称。
- user
Allow stringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- allow_
list_ strname - 白名单名称。
- allow_
list str - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow_
list_ strcategory - 白名单分类。
- allow_
list_ strdesc - 白名单描述。
- allow_
list_ strtype - 白名单内的IP地址类型,当前仅支持IPv4。
- associated_
instance_ intnum - 绑定的实例数量。解绑实例的白名单时必传。
- associated_
instances Sequence[AllowList Associated Instance Args] - instance_
id str - 实例ID。
- project_
name str - 项目名称。
- user_
allow_ strlist - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- allow
List StringName - 白名单名称。
- allow
List String - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List StringCategory - 白名单分类。
- allow
List StringDesc - 白名单描述。
- allow
List StringType - 白名单内的IP地址类型,当前仅支持IPv4。
- associated
Instance NumberNum - 绑定的实例数量。解绑实例的白名单时必传。
- associated
Instances List<Property Map> - instance
Id String - 实例ID。
- project
Name String - 项目名称。
- user
Allow StringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
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 - AllowListIP数量。
- Id string
- The provider-assigned unique ID for this managed resource.
- Allow
List stringId - 白名单的id。
- Allow
List intIp Num - AllowListIP数量。
- Id string
- The provider-assigned unique ID for this managed resource.
- allow
List StringId - 白名单的id。
- allow
List IntegerIp Num - AllowListIP数量。
- id String
- The provider-assigned unique ID for this managed resource.
- allow
List stringId - 白名单的id。
- allow
List numberIp Num - AllowListIP数量。
- id string
- The provider-assigned unique ID for this managed resource.
- allow_
list_ strid - 白名单的id。
- allow_
list_ intip_ num - AllowListIP数量。
- id str
- The provider-assigned unique ID for this managed resource.
- allow
List StringId - 白名单的id。
- allow
List NumberIp Num - AllowListIP数量。
- 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,
associated_instance_num: Optional[int] = None,
associated_instances: Optional[Sequence[AllowListAssociatedInstanceArgs]] = None,
instance_id: Optional[str] = None,
project_name: Optional[str] = None,
user_allow_list: 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: bytepluscc:rdsmssql: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 - AllowListIP数量。
- Allow
List stringName - 白名单名称。
- Allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- Allow
List stringValue - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- Associated
Instance intNum - 绑定的实例数量。解绑实例的白名单时必传。
- Associated
Instances List<Byteplus.Allow List Associated Instance> - Instance
Id string - 实例ID。
- Project
Name string - 项目名称。
- User
Allow stringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- Allow
List string - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- Allow
List stringCategory - 白名单分类。
- Allow
List stringDesc - 白名单描述。
- Allow
List stringId - 白名单的id。
- Allow
List intIp Num - AllowListIP数量。
- Allow
List stringName - 白名单名称。
- Allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- Associated
Instance intNum - 绑定的实例数量。解绑实例的白名单时必传。
- Associated
Instances []AllowList Associated Instance Args - Instance
Id string - 实例ID。
- Project
Name string - 项目名称。
- User
Allow stringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- allow
List String - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List StringCategory - 白名单分类。
- allow
List StringDesc - 白名单描述。
- allow
List StringId - 白名单的id。
- allow
List IntegerIp Num - AllowListIP数量。
- allow
List StringName - 白名单名称。
- allow
List StringType - 白名单内的IP地址类型,当前仅支持IPv4。
- associated
Instance IntegerNum - 绑定的实例数量。解绑实例的白名单时必传。
- associated
Instances List<AllowList Associated Instance> - instance
Id String - 实例ID。
- project
Name String - 项目名称。
- user
Allow StringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- allow
List string - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List stringCategory - 白名单分类。
- allow
List stringDesc - 白名单描述。
- allow
List stringId - 白名单的id。
- allow
List numberIp Num - AllowListIP数量。
- allow
List stringName - 白名单名称。
- allow
List stringType - 白名单内的IP地址类型,当前仅支持IPv4。
- associated
Instance numberNum - 绑定的实例数量。解绑实例的白名单时必传。
- associated
Instances AllowList Associated Instance[] - instance
Id string - 实例ID。
- project
Name string - 项目名称。
- user
Allow stringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- allow_
list str - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow_
list_ strcategory - 白名单分类。
- allow_
list_ strdesc - 白名单描述。
- allow_
list_ strid - 白名单的id。
- allow_
list_ intip_ num - AllowListIP数量。
- allow_
list_ strname - 白名单名称。
- allow_
list_ strtype - 白名单内的IP地址类型,当前仅支持IPv4。
- associated_
instance_ intnum - 绑定的实例数量。解绑实例的白名单时必传。
- associated_
instances Sequence[AllowList Associated Instance Args] - instance_
id str - 实例ID。
- project_
name str - 项目名称。
- user_
allow_ strlist - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
- allow
List String - IP 白名单,多个 IP 地址请以英文逗号(,)隔开,不可重复。
- allow
List StringCategory - 白名单分类。
- allow
List StringDesc - 白名单描述。
- allow
List StringId - 白名单的id。
- allow
List NumberIp Num - AllowListIP数量。
- allow
List StringName - 白名单名称。
- allow
List StringType - 白名单内的IP地址类型,当前仅支持IPv4。
- associated
Instance NumberNum - 绑定的实例数量。解绑实例的白名单时必传。
- associated
Instances List<Property Map> - instance
Id String - 实例ID。
- project
Name String - 项目名称。
- user
Allow StringList - 安全组之外的、需要加入白名单的IP地址,可输入IP地址或CIDR格式的IP地址段。如果该字段与AllowList同时指定,以AllowList为准。
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 bytepluscc:rdsmssql/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 Thursday, Mar 26, 2026 by Byteplus
