published on Monday, Jun 15, 2026 by Volcengine
published on Monday, Jun 15, 2026 by Volcengine
IP allowlist configuration
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const iAMAllowedIpAddressDemo = new volcenginecc.iam.AllowedIpAddress("IAMAllowedIpAddressDemo", {
userId: "2109xxxxx",
ipLists: [
{
ip: "192.168.1.100",
description: "test1",
},
{
ip: "192.168.2.100",
description: "test2",
},
{
ip: "192.168.3.100",
description: "test3",
},
],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
i_am_allowed_ip_address_demo = volcenginecc.iam.AllowedIpAddress("IAMAllowedIpAddressDemo",
user_id="2109xxxxx",
ip_lists=[
{
"ip": "192.168.1.100",
"description": "test1",
},
{
"ip": "192.168.2.100",
"description": "test2",
},
{
"ip": "192.168.3.100",
"description": "test3",
},
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/iam"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iam.NewAllowedIpAddress(ctx, "IAMAllowedIpAddressDemo", &iam.AllowedIpAddressArgs{
UserId: pulumi.String("2109xxxxx"),
IpLists: iam.AllowedIpAddressIpListArray{
&iam.AllowedIpAddressIpListArgs{
Ip: pulumi.String("192.168.1.100"),
Description: pulumi.String("test1"),
},
&iam.AllowedIpAddressIpListArgs{
Ip: pulumi.String("192.168.2.100"),
Description: pulumi.String("test2"),
},
&iam.AllowedIpAddressIpListArgs{
Ip: pulumi.String("192.168.3.100"),
Description: pulumi.String("test3"),
},
},
})
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 iAMAllowedIpAddressDemo = new Volcenginecc.Iam.AllowedIpAddress("IAMAllowedIpAddressDemo", new()
{
UserId = "2109xxxxx",
IpLists = new[]
{
new Volcenginecc.Iam.Inputs.AllowedIpAddressIpListArgs
{
Ip = "192.168.1.100",
Description = "test1",
},
new Volcenginecc.Iam.Inputs.AllowedIpAddressIpListArgs
{
Ip = "192.168.2.100",
Description = "test2",
},
new Volcenginecc.Iam.Inputs.AllowedIpAddressIpListArgs
{
Ip = "192.168.3.100",
Description = "test3",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.iam.AllowedIpAddress;
import com.volcengine.volcenginecc.iam.AllowedIpAddressArgs;
import com.pulumi.volcenginecc.iam.inputs.AllowedIpAddressIpListArgs;
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 iAMAllowedIpAddressDemo = new AllowedIpAddress("iAMAllowedIpAddressDemo", AllowedIpAddressArgs.builder()
.userId("2109xxxxx")
.ipLists(
AllowedIpAddressIpListArgs.builder()
.ip("192.168.1.100")
.description("test1")
.build(),
AllowedIpAddressIpListArgs.builder()
.ip("192.168.2.100")
.description("test2")
.build(),
AllowedIpAddressIpListArgs.builder()
.ip("192.168.3.100")
.description("test3")
.build())
.build());
}
}
resources:
iAMAllowedIpAddressDemo:
type: volcenginecc:iam:AllowedIpAddress
name: IAMAllowedIpAddressDemo
properties:
userId: 2109xxxxx
ipLists:
- ip: 192.168.1.100
description: test1
- ip: 192.168.2.100
description: test2
- ip: 192.168.3.100
description: test3
Example coming soon!
Create AllowedIpAddress Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AllowedIpAddress(name: string, args: AllowedIpAddressArgs, opts?: CustomResourceOptions);@overload
def AllowedIpAddress(resource_name: str,
args: AllowedIpAddressArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AllowedIpAddress(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_lists: Optional[Sequence[AllowedIpAddressIpListArgs]] = None,
user_id: Optional[str] = None,
quota: Optional[int] = None)func NewAllowedIpAddress(ctx *Context, name string, args AllowedIpAddressArgs, opts ...ResourceOption) (*AllowedIpAddress, error)public AllowedIpAddress(string name, AllowedIpAddressArgs args, CustomResourceOptions? opts = null)
public AllowedIpAddress(String name, AllowedIpAddressArgs args)
public AllowedIpAddress(String name, AllowedIpAddressArgs args, CustomResourceOptions options)
type: volcenginecc:iam:AllowedIpAddress
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcenginecc_iam_allowedipaddress" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AllowedIpAddressArgs
- 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 AllowedIpAddressArgs
- 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 AllowedIpAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AllowedIpAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AllowedIpAddressArgs
- 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 allowedIpAddressResource = new Volcenginecc.Iam.AllowedIpAddress("allowedIpAddressResource", new()
{
IpLists = new[]
{
new Volcenginecc.Iam.Inputs.AllowedIpAddressIpListArgs
{
Description = "string",
Ip = "string",
},
},
UserId = "string",
Quota = 0,
});
example, err := iam.NewAllowedIpAddress(ctx, "allowedIpAddressResource", &iam.AllowedIpAddressArgs{
IpLists: iam.AllowedIpAddressIpListArray{
&iam.AllowedIpAddressIpListArgs{
Description: pulumi.String("string"),
Ip: pulumi.String("string"),
},
},
UserId: pulumi.String("string"),
Quota: pulumi.Int(0),
})
resource "volcenginecc_iam_allowedipaddress" "allowedIpAddressResource" {
ip_lists {
description = "string"
ip = "string"
}
user_id = "string"
quota = 0
}
var allowedIpAddressResource = new AllowedIpAddress("allowedIpAddressResource", AllowedIpAddressArgs.builder()
.ipLists(AllowedIpAddressIpListArgs.builder()
.description("string")
.ip("string")
.build())
.userId("string")
.quota(0)
.build());
allowed_ip_address_resource = volcenginecc.iam.AllowedIpAddress("allowedIpAddressResource",
ip_lists=[{
"description": "string",
"ip": "string",
}],
user_id="string",
quota=0)
const allowedIpAddressResource = new volcenginecc.iam.AllowedIpAddress("allowedIpAddressResource", {
ipLists: [{
description: "string",
ip: "string",
}],
userId: "string",
quota: 0,
});
type: volcenginecc:iam:AllowedIpAddress
properties:
ipLists:
- description: string
ip: string
quota: 0
userId: string
AllowedIpAddress 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 AllowedIpAddress resource accepts the following input properties:
- Ip
Lists List<Volcengine.Allowed Ip Address Ip List> - User
Id string - Sub-user ID
- Quota int
- IP allowlist quota for current identity
- Ip
Lists []AllowedIp Address Ip List Args - User
Id string - Sub-user ID
- Quota int
- IP allowlist quota for current identity
- ip_
lists list(object) - user_
id string - Sub-user ID
- quota number
- IP allowlist quota for current identity
- ip
Lists List<AllowedIp Address Ip List> - user
Id String - Sub-user ID
- quota Integer
- IP allowlist quota for current identity
- ip
Lists AllowedIp Address Ip List[] - user
Id string - Sub-user ID
- quota number
- IP allowlist quota for current identity
- ip_
lists Sequence[AllowedIp Address Ip List Args] - user_
id str - Sub-user ID
- quota int
- IP allowlist quota for current identity
- ip
Lists List<Property Map> - user
Id String - Sub-user ID
- quota Number
- IP allowlist quota for current identity
Outputs
All input properties are implicitly available as output properties. Additionally, the AllowedIpAddress resource produces the following output properties:
- Enable
Ip boolList - Enable IP allowlist
- Id string
- The provider-assigned unique ID for this managed resource.
- Enable
Ip boolList - Enable IP allowlist
- Id string
- The provider-assigned unique ID for this managed resource.
- enable_
ip_ boollist - Enable IP allowlist
- id string
- The provider-assigned unique ID for this managed resource.
- enable
Ip BooleanList - Enable IP allowlist
- id String
- The provider-assigned unique ID for this managed resource.
- enable
Ip booleanList - Enable IP allowlist
- id string
- The provider-assigned unique ID for this managed resource.
- enable_
ip_ boollist - Enable IP allowlist
- id str
- The provider-assigned unique ID for this managed resource.
- enable
Ip BooleanList - Enable IP allowlist
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AllowedIpAddress Resource
Get an existing AllowedIpAddress 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?: AllowedIpAddressState, opts?: CustomResourceOptions): AllowedIpAddress@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enable_ip_list: Optional[bool] = None,
ip_lists: Optional[Sequence[AllowedIpAddressIpListArgs]] = None,
quota: Optional[int] = None,
user_id: Optional[str] = None) -> AllowedIpAddressfunc GetAllowedIpAddress(ctx *Context, name string, id IDInput, state *AllowedIpAddressState, opts ...ResourceOption) (*AllowedIpAddress, error)public static AllowedIpAddress Get(string name, Input<string> id, AllowedIpAddressState? state, CustomResourceOptions? opts = null)public static AllowedIpAddress get(String name, Output<String> id, AllowedIpAddressState state, CustomResourceOptions options)resources: _: type: volcenginecc:iam:AllowedIpAddress get: id: ${id}import {
to = volcenginecc_iam_allowedipaddress.example
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.
- Enable
Ip boolList - Enable IP allowlist
- Ip
Lists List<Volcengine.Allowed Ip Address Ip List> - Quota int
- IP allowlist quota for current identity
- User
Id string - Sub-user ID
- Enable
Ip boolList - Enable IP allowlist
- Ip
Lists []AllowedIp Address Ip List Args - Quota int
- IP allowlist quota for current identity
- User
Id string - Sub-user ID
- enable_
ip_ boollist - Enable IP allowlist
- ip_
lists list(object) - quota number
- IP allowlist quota for current identity
- user_
id string - Sub-user ID
- enable
Ip BooleanList - Enable IP allowlist
- ip
Lists List<AllowedIp Address Ip List> - quota Integer
- IP allowlist quota for current identity
- user
Id String - Sub-user ID
- enable
Ip booleanList - Enable IP allowlist
- ip
Lists AllowedIp Address Ip List[] - quota number
- IP allowlist quota for current identity
- user
Id string - Sub-user ID
- enable_
ip_ boollist - Enable IP allowlist
- ip_
lists Sequence[AllowedIp Address Ip List Args] - quota int
- IP allowlist quota for current identity
- user_
id str - Sub-user ID
- enable
Ip BooleanList - Enable IP allowlist
- ip
Lists List<Property Map> - quota Number
- IP allowlist quota for current identity
- user
Id String - Sub-user ID
Supporting Types
AllowedIpAddressIpList, AllowedIpAddressIpListArgs
- Description string
- Description
- Ip string
- IP address
- Description string
- Description
- Ip string
- IP address
- description string
- Description
- ip string
- IP address
- description String
- Description
- ip String
- IP address
- description string
- Description
- ip string
- IP address
- description str
- Description
- ip str
- IP address
- description String
- Description
- ip String
- IP address
Import
$ pulumi import volcenginecc:iam/allowedIpAddress:AllowedIpAddress example "user_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, Jun 15, 2026 by Volcengine