1. Packages
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. PortalIpAllowList
Viewing docs for konnect 3.18.1
published on Thursday, Jun 11, 2026 by kong
Viewing docs for konnect 3.18.1
published on Thursday, Jun 11, 2026 by kong

    PortalIPAllowList Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myPortalipallowlist = new konnect.PortalIpAllowList("my_portalipallowlist", {
        allowedIps: [
            "192.168.1.1",
            "192.168.1.0/22",
        ],
        portalId: "f32d905a-ed33-46a3-a093-d8f536af9a8a",
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_portalipallowlist = konnect.PortalIpAllowList("my_portalipallowlist",
        allowed_ips=[
            "192.168.1.1",
            "192.168.1.0/22",
        ],
        portal_id="f32d905a-ed33-46a3-a093-d8f536af9a8a")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := konnect.NewPortalIpAllowList(ctx, "my_portalipallowlist", &konnect.PortalIpAllowListArgs{
    			AllowedIps: pulumi.StringArray{
    				pulumi.String("192.168.1.1"),
    				pulumi.String("192.168.1.0/22"),
    			},
    			PortalId: pulumi.String("f32d905a-ed33-46a3-a093-d8f536af9a8a"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Konnect = Pulumi.Konnect;
    
    return await Deployment.RunAsync(() => 
    {
        var myPortalipallowlist = new Konnect.PortalIpAllowList("my_portalipallowlist", new()
        {
            AllowedIps = new[]
            {
                "192.168.1.1",
                "192.168.1.0/22",
            },
            PortalId = "f32d905a-ed33-46a3-a093-d8f536af9a8a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.PortalIpAllowList;
    import com.pulumi.konnect.PortalIpAllowListArgs;
    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 myPortalipallowlist = new PortalIpAllowList("myPortalipallowlist", PortalIpAllowListArgs.builder()
                .allowedIps(            
                    "192.168.1.1",
                    "192.168.1.0/22")
                .portalId("f32d905a-ed33-46a3-a093-d8f536af9a8a")
                .build());
    
        }
    }
    
    resources:
      myPortalipallowlist:
        type: konnect:PortalIpAllowList
        name: my_portalipallowlist
        properties:
          allowedIps:
            - 192.168.1.1
            - 192.168.1.0/22
          portalId: f32d905a-ed33-46a3-a093-d8f536af9a8a
    
    Example coming soon!
    

    Create PortalIpAllowList Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PortalIpAllowList(name: string, args: PortalIpAllowListArgs, opts?: CustomResourceOptions);
    @overload
    def PortalIpAllowList(resource_name: str,
                          args: PortalIpAllowListArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def PortalIpAllowList(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          allowed_ips: Optional[Sequence[str]] = None,
                          portal_id: Optional[str] = None)
    func NewPortalIpAllowList(ctx *Context, name string, args PortalIpAllowListArgs, opts ...ResourceOption) (*PortalIpAllowList, error)
    public PortalIpAllowList(string name, PortalIpAllowListArgs args, CustomResourceOptions? opts = null)
    public PortalIpAllowList(String name, PortalIpAllowListArgs args)
    public PortalIpAllowList(String name, PortalIpAllowListArgs args, CustomResourceOptions options)
    
    type: konnect:PortalIpAllowList
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "konnect_portalipallowlist" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PortalIpAllowListArgs
    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 PortalIpAllowListArgs
    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 PortalIpAllowListArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PortalIpAllowListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PortalIpAllowListArgs
    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 portalIpAllowListResource = new Konnect.PortalIpAllowList("portalIpAllowListResource", new()
    {
        AllowedIps = new[]
        {
            "string",
        },
        PortalId = "string",
    });
    
    example, err := konnect.NewPortalIpAllowList(ctx, "portalIpAllowListResource", &konnect.PortalIpAllowListArgs{
    	AllowedIps: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PortalId: pulumi.String("string"),
    })
    
    resource "konnect_portalipallowlist" "portalIpAllowListResource" {
      allowed_ips = ["string"]
      portal_id   = "string"
    }
    
    var portalIpAllowListResource = new PortalIpAllowList("portalIpAllowListResource", PortalIpAllowListArgs.builder()
        .allowedIps("string")
        .portalId("string")
        .build());
    
    portal_ip_allow_list_resource = konnect.PortalIpAllowList("portalIpAllowListResource",
        allowed_ips=["string"],
        portal_id="string")
    
    const portalIpAllowListResource = new konnect.PortalIpAllowList("portalIpAllowListResource", {
        allowedIps: ["string"],
        portalId: "string",
    });
    
    type: konnect:PortalIpAllowList
    properties:
        allowedIps:
            - string
        portalId: string
    

    PortalIpAllowList 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 PortalIpAllowList resource accepts the following input properties:

    AllowedIps List<string>
    The list of allowed ips for the portal.
    PortalId string
    The Portal identifier
    AllowedIps []string
    The list of allowed ips for the portal.
    PortalId string
    The Portal identifier
    allowed_ips list(string)
    The list of allowed ips for the portal.
    portal_id string
    The Portal identifier
    allowedIps List<String>
    The list of allowed ips for the portal.
    portalId String
    The Portal identifier
    allowedIps string[]
    The list of allowed ips for the portal.
    portalId string
    The Portal identifier
    allowed_ips Sequence[str]
    The list of allowed ips for the portal.
    portal_id str
    The Portal identifier
    allowedIps List<String>
    The list of allowed ips for the portal.
    portalId String
    The Portal identifier

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PortalIpAllowList 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 PortalIpAllowList Resource

    Get an existing PortalIpAllowList 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?: PortalIpAllowListState, opts?: CustomResourceOptions): PortalIpAllowList
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allowed_ips: Optional[Sequence[str]] = None,
            portal_id: Optional[str] = None) -> PortalIpAllowList
    func GetPortalIpAllowList(ctx *Context, name string, id IDInput, state *PortalIpAllowListState, opts ...ResourceOption) (*PortalIpAllowList, error)
    public static PortalIpAllowList Get(string name, Input<string> id, PortalIpAllowListState? state, CustomResourceOptions? opts = null)
    public static PortalIpAllowList get(String name, Output<String> id, PortalIpAllowListState state, CustomResourceOptions options)
    resources:  _:    type: konnect:PortalIpAllowList    get:      id: ${id}
    import {
      to = konnect_portalipallowlist.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.
    The following state arguments are supported:
    AllowedIps List<string>
    The list of allowed ips for the portal.
    PortalId string
    The Portal identifier
    AllowedIps []string
    The list of allowed ips for the portal.
    PortalId string
    The Portal identifier
    allowed_ips list(string)
    The list of allowed ips for the portal.
    portal_id string
    The Portal identifier
    allowedIps List<String>
    The list of allowed ips for the portal.
    portalId String
    The Portal identifier
    allowedIps string[]
    The list of allowed ips for the portal.
    portalId string
    The Portal identifier
    allowed_ips Sequence[str]
    The list of allowed ips for the portal.
    portal_id str
    The Portal identifier
    allowedIps List<String>
    The list of allowed ips for the portal.
    portalId String
    The Portal identifier

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = konnect_portal_ip_allow_list.my_konnect_portal_ip_allow_list

    id = jsonencode({

    id        = "..."
    
    portal_id = "f32d905a-ed33-46a3-a093-d8f536af9a8a"
    

    })

    }

    The pulumi import command can be used, for example:

    $ pulumi import konnect:index/portalIpAllowList:PortalIpAllowList my_konnect_portal_ip_allow_list '{"id": "...", "portal_id": "f32d905a-ed33-46a3-a093-d8f536af9a8a"}'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    konnect kong/terraform-provider-konnect
    License
    Notes
    This Pulumi package is based on the konnect Terraform Provider.
    Viewing docs for konnect 3.18.1
    published on Thursday, Jun 11, 2026 by kong

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial