published on Thursday, Nov 12, 2026 by timescale
published on Thursday, Nov 12, 2026 by timescale
An IP allow list for the project, optionally bound to services. Import using the numeric list ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as timescale from "@pulumi/timescale";
const db = new timescale.Service("db", {name: "my-service"});
const office = new timescale.IpAllowList("office", {
description: "Office network",
cidrBlocks: [
"203.0.113.0/24",
"198.51.100.7/32",
],
serviceIds: [db.id],
});
import pulumi
import pulumi_timescale as timescale
db = timescale.Service("db", name="my-service")
office = timescale.IpAllowList("office",
description="Office network",
cidr_blocks=[
"203.0.113.0/24",
"198.51.100.7/32",
],
service_ids=[db.id])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/timescale/v2/timescale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
db, err := timescale.NewService(ctx, "db", ×cale.ServiceArgs{
Name: pulumi.String("my-service"),
})
if err != nil {
return err
}
_, err = timescale.NewIpAllowList(ctx, "office", ×cale.IpAllowListArgs{
Description: pulumi.String("Office network"),
CidrBlocks: pulumi.StringArray{
pulumi.String("203.0.113.0/24"),
pulumi.String("198.51.100.7/32"),
},
ServiceIds: pulumi.StringArray{
db.ID(),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Timescale = Pulumi.Timescale;
return await Deployment.RunAsync(() =>
{
var db = new Timescale.Service("db", new()
{
Name = "my-service",
});
var office = new Timescale.IpAllowList("office", new()
{
Description = "Office network",
CidrBlocks = new[]
{
"203.0.113.0/24",
"198.51.100.7/32",
},
ServiceIds = new[]
{
db.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.timescale.Service;
import com.pulumi.timescale.ServiceArgs;
import com.pulumi.timescale.IpAllowList;
import com.pulumi.timescale.IpAllowListArgs;
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 db = new Service("db", ServiceArgs.builder()
.name("my-service")
.build());
var office = new IpAllowList("office", IpAllowListArgs.builder()
.description("Office network")
.cidrBlocks(
"203.0.113.0/24",
"198.51.100.7/32")
.serviceIds(db.id())
.build());
}
}
resources:
db:
type: timescale:Service
properties:
name: my-service
office:
type: timescale:IpAllowList
properties:
description: Office network
cidrBlocks:
- 203.0.113.0/24
- 198.51.100.7/32
serviceIds:
- ${db.id}
Example coming soon!
Create IpAllowList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpAllowList(name: string, args: IpAllowListArgs, opts?: CustomResourceOptions);@overload
def IpAllowList(resource_name: str,
args: IpAllowListArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IpAllowList(resource_name: str,
opts: Optional[ResourceOptions] = None,
cidr_blocks: Optional[Sequence[str]] = None,
description: Optional[str] = None,
service_ids: Optional[Sequence[str]] = None)func NewIpAllowList(ctx *Context, name string, args IpAllowListArgs, opts ...ResourceOption) (*IpAllowList, error)public IpAllowList(string name, IpAllowListArgs args, CustomResourceOptions? opts = null)
public IpAllowList(String name, IpAllowListArgs args)
public IpAllowList(String name, IpAllowListArgs args, CustomResourceOptions options)
type: timescale:IpAllowList
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "timescale_ip_allow_list" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args IpAllowListArgs
- 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 IpAllowListArgs
- 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 IpAllowListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpAllowListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpAllowListArgs
- 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 ipAllowListResource = new Timescale.IpAllowList("ipAllowListResource", new()
{
CidrBlocks = new[]
{
"string",
},
Description = "string",
ServiceIds = new[]
{
"string",
},
});
example, err := timescale.NewIpAllowList(ctx, "ipAllowListResource", ×cale.IpAllowListArgs{
CidrBlocks: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
ServiceIds: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "timescale_ip_allow_list" "ipAllowListResource" {
lifecycle {
create_before_destroy = true
}
cidr_blocks = ["string"]
description = "string"
service_ids = ["string"]
}
var ipAllowListResource = new IpAllowList("ipAllowListResource", IpAllowListArgs.builder()
.cidrBlocks("string")
.description("string")
.serviceIds("string")
.build());
ip_allow_list_resource = timescale.IpAllowList("ipAllowListResource",
cidr_blocks=["string"],
description="string",
service_ids=["string"])
const ipAllowListResource = new timescale.IpAllowList("ipAllowListResource", {
cidrBlocks: ["string"],
description: "string",
serviceIds: ["string"],
});
type: timescale:IpAllowList
properties:
cidrBlocks:
- string
description: string
serviceIds:
- string
IpAllowList 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 IpAllowList resource accepts the following input properties:
- Cidr
Blocks List<string> - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - Description string
- A description of the IP allow list.
- Service
Ids List<string>
- Cidr
Blocks []string - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - Description string
- A description of the IP allow list.
- Service
Ids []string
- cidr_
blocks list(string) - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description string
- A description of the IP allow list.
- service_
ids list(string)
- cidr
Blocks List<String> - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description String
- A description of the IP allow list.
- service
Ids List<String>
- cidr
Blocks string[] - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description string
- A description of the IP allow list.
- service
Ids string[]
- cidr_
blocks Sequence[str] - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description str
- A description of the IP allow list.
- service_
ids Sequence[str]
- cidr
Blocks List<String> - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description String
- A description of the IP allow list.
- service
Ids List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the IpAllowList resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing IpAllowList Resource
Get an existing IpAllowList 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?: IpAllowListState, opts?: CustomResourceOptions): IpAllowList@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr_blocks: Optional[Sequence[str]] = None,
description: Optional[str] = None,
service_ids: Optional[Sequence[str]] = None) -> IpAllowListfunc GetIpAllowList(ctx *Context, name string, id IDInput, state *IpAllowListState, opts ...ResourceOption) (*IpAllowList, error)public static IpAllowList Get(string name, Input<string> id, IpAllowListState? state, CustomResourceOptions? opts = null)public static IpAllowList get(String name, Output<String> id, IpAllowListState state, CustomResourceOptions options)resources: existingIpAllowList: type: timescale:IpAllowList get: id: ${id}import {
to = timescale_ip_allow_list.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state IpAllowListState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state IpAllowListState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state IpAllowListState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state IpAllowListState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Cidr
Blocks List<string> - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - Description string
- A description of the IP allow list.
- Service
Ids List<string>
- Cidr
Blocks []string - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - Description string
- A description of the IP allow list.
- Service
Ids []string
- cidr_
blocks list(string) - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description string
- A description of the IP allow list.
- service_
ids list(string)
- cidr
Blocks List<String> - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description String
- A description of the IP allow list.
- service
Ids List<String>
- cidr
Blocks string[] - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description string
- A description of the IP allow list.
- service
Ids string[]
- cidr_
blocks Sequence[str] - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description str
- A description of the IP allow list.
- service_
ids Sequence[str]
- cidr
Blocks List<String> - IPv4 addresses or CIDR blocks allowed to connect, e.g.
203.0.113.7/32. At least one entry is required. To delete the list, remove the resource from your configuration. - description String
- A description of the IP allow list.
- service
Ids List<String>
Package Details
- Repository
- timescale timescale/terraform-provider-timescale
- License
- Notes
- This Pulumi package is based on the
timescaleTerraform Provider.
published on Thursday, Nov 12, 2026 by timescale