1. Packages
  2. stackit
  3. API Docs
  4. getPublicIpRanges
stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud

    A list of all public IP ranges that STACKIT uses.

    Example Usage

    data "stackit_public_ip_ranges" "example" {}
    
    # example usage: allow stackit services and customer vpn cidr to access observability apis
    locals {
      vpn_cidrs = ["X.X.X.X/32", "X.X.X.X/24"]
    }
    
    resource "stackit_observability_instance" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "example-instance"
      plan_name  = "Observability-Monitoring-Medium-EU01"
      # Allow all stackit services and customer vpn cidr to access observability apis
      acl                                    = concat(data.stackit_public_ip_ranges.example.cidr_list, local.vpn_cidrs)
      metrics_retention_days                 = 90
      metrics_retention_days_5m_downsampling = 90
      metrics_retention_days_1h_downsampling = 90
    }
    

    Using getPublicIpRanges

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getPublicIpRanges(opts?: InvokeOptions): Promise<GetPublicIpRangesResult>
    function getPublicIpRangesOutput(opts?: InvokeOptions): Output<GetPublicIpRangesResult>
    def get_public_ip_ranges(opts: Optional[InvokeOptions] = None) -> GetPublicIpRangesResult
    def get_public_ip_ranges_output(opts: Optional[InvokeOptions] = None) -> Output[GetPublicIpRangesResult]
    func GetPublicIpRanges(ctx *Context, opts ...InvokeOption) (*GetPublicIpRangesResult, error)
    func GetPublicIpRangesOutput(ctx *Context, opts ...InvokeOption) GetPublicIpRangesResultOutput

    > Note: This function is named GetPublicIpRanges in the Go SDK.

    public static class GetPublicIpRanges 
    {
        public static Task<GetPublicIpRangesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetPublicIpRangesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPublicIpRangesResult> getPublicIpRanges(InvokeOptions options)
    public static Output<GetPublicIpRangesResult> getPublicIpRanges(InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getPublicIpRanges:getPublicIpRanges
      arguments:
        # arguments dictionary

    getPublicIpRanges Result

    The following output properties are available:

    CidrLists List<string>
    A list of IP range strings (CIDRs) extracted from the publicipranges for easy consumption.
    Id string
    PublicIpRanges List<GetPublicIpRangesPublicIpRange>
    A list of all public IP ranges.
    CidrLists []string
    A list of IP range strings (CIDRs) extracted from the publicipranges for easy consumption.
    Id string
    PublicIpRanges []GetPublicIpRangesPublicIpRange
    A list of all public IP ranges.
    cidrLists List<String>
    A list of IP range strings (CIDRs) extracted from the publicipranges for easy consumption.
    id String
    publicIpRanges List<GetPublicIpRangesPublicIpRange>
    A list of all public IP ranges.
    cidrLists string[]
    A list of IP range strings (CIDRs) extracted from the publicipranges for easy consumption.
    id string
    publicIpRanges GetPublicIpRangesPublicIpRange[]
    A list of all public IP ranges.
    cidr_lists Sequence[str]
    A list of IP range strings (CIDRs) extracted from the publicipranges for easy consumption.
    id str
    public_ip_ranges Sequence[GetPublicIpRangesPublicIpRange]
    A list of all public IP ranges.
    cidrLists List<String>
    A list of IP range strings (CIDRs) extracted from the publicipranges for easy consumption.
    id String
    publicIpRanges List<Property Map>
    A list of all public IP ranges.

    Supporting Types

    GetPublicIpRangesPublicIpRange

    Cidr string
    Classless Inter-Domain Routing (CIDR)
    Cidr string
    Classless Inter-Domain Routing (CIDR)
    cidr String
    Classless Inter-Domain Routing (CIDR)
    cidr string
    Classless Inter-Domain Routing (CIDR)
    cidr str
    Classless Inter-Domain Routing (CIDR)
    cidr String
    Classless Inter-Domain Routing (CIDR)

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud
      Meet Neo: Your AI Platform Teammate