1. Packages
  2. Packages
  3. Github Provider
  4. API Docs
  5. EnterpriseIpAllowListEntry
Viewing docs for GitHub v6.13.1
published on Wednesday, Apr 29, 2026 by Pulumi
github logo
Viewing docs for GitHub v6.13.1
published on Wednesday, Apr 29, 2026 by Pulumi

    This resource allows you to create and manage IP allow list entries for a GitHub Enterprise account. IP allow list entries define IP addresses or ranges that are permitted to access private resources in the enterprise.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const test = new github.EnterpriseIpAllowListEntry("test", {
        enterpriseSlug: "my-enterprise",
        ip: "192.168.1.0/20",
        name: "My IP Range Name",
        isActive: true,
    });
    
    import pulumi
    import pulumi_github as github
    
    test = github.EnterpriseIpAllowListEntry("test",
        enterprise_slug="my-enterprise",
        ip="192.168.1.0/20",
        name="My IP Range Name",
        is_active=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := github.NewEnterpriseIpAllowListEntry(ctx, "test", &github.EnterpriseIpAllowListEntryArgs{
    			EnterpriseSlug: pulumi.String("my-enterprise"),
    			Ip:             pulumi.String("192.168.1.0/20"),
    			Name:           pulumi.String("My IP Range Name"),
    			IsActive:       pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Github.Index.EnterpriseIpAllowListEntry("test", new()
        {
            EnterpriseSlug = "my-enterprise",
            Ip = "192.168.1.0/20",
            Name = "My IP Range Name",
            IsActive = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.github.EnterpriseIpAllowListEntry;
    import com.pulumi.github.EnterpriseIpAllowListEntryArgs;
    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 test = new EnterpriseIpAllowListEntry("test", EnterpriseIpAllowListEntryArgs.builder()
                .enterpriseSlug("my-enterprise")
                .ip("192.168.1.0/20")
                .name("My IP Range Name")
                .isActive(true)
                .build());
    
        }
    }
    
    resources:
      test:
        type: github:EnterpriseIpAllowListEntry
        properties:
          enterpriseSlug: my-enterprise
          ip: 192.168.1.0/20
          name: My IP Range Name
          isActive: true
    

    Create EnterpriseIpAllowListEntry Resource

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

    Constructor syntax

    new EnterpriseIpAllowListEntry(name: string, args: EnterpriseIpAllowListEntryArgs, opts?: CustomResourceOptions);
    @overload
    def EnterpriseIpAllowListEntry(resource_name: str,
                                   args: EnterpriseIpAllowListEntryArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnterpriseIpAllowListEntry(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   enterprise_slug: Optional[str] = None,
                                   ip: Optional[str] = None,
                                   is_active: Optional[bool] = None,
                                   name: Optional[str] = None)
    func NewEnterpriseIpAllowListEntry(ctx *Context, name string, args EnterpriseIpAllowListEntryArgs, opts ...ResourceOption) (*EnterpriseIpAllowListEntry, error)
    public EnterpriseIpAllowListEntry(string name, EnterpriseIpAllowListEntryArgs args, CustomResourceOptions? opts = null)
    public EnterpriseIpAllowListEntry(String name, EnterpriseIpAllowListEntryArgs args)
    public EnterpriseIpAllowListEntry(String name, EnterpriseIpAllowListEntryArgs args, CustomResourceOptions options)
    
    type: github:EnterpriseIpAllowListEntry
    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 EnterpriseIpAllowListEntryArgs
    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 EnterpriseIpAllowListEntryArgs
    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 EnterpriseIpAllowListEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnterpriseIpAllowListEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnterpriseIpAllowListEntryArgs
    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 enterpriseIpAllowListEntryResource = new Github.EnterpriseIpAllowListEntry("enterpriseIpAllowListEntryResource", new()
    {
        EnterpriseSlug = "string",
        Ip = "string",
        IsActive = false,
        Name = "string",
    });
    
    example, err := github.NewEnterpriseIpAllowListEntry(ctx, "enterpriseIpAllowListEntryResource", &github.EnterpriseIpAllowListEntryArgs{
    	EnterpriseSlug: pulumi.String("string"),
    	Ip:             pulumi.String("string"),
    	IsActive:       pulumi.Bool(false),
    	Name:           pulumi.String("string"),
    })
    
    var enterpriseIpAllowListEntryResource = new EnterpriseIpAllowListEntry("enterpriseIpAllowListEntryResource", EnterpriseIpAllowListEntryArgs.builder()
        .enterpriseSlug("string")
        .ip("string")
        .isActive(false)
        .name("string")
        .build());
    
    enterprise_ip_allow_list_entry_resource = github.EnterpriseIpAllowListEntry("enterpriseIpAllowListEntryResource",
        enterprise_slug="string",
        ip="string",
        is_active=False,
        name="string")
    
    const enterpriseIpAllowListEntryResource = new github.EnterpriseIpAllowListEntry("enterpriseIpAllowListEntryResource", {
        enterpriseSlug: "string",
        ip: "string",
        isActive: false,
        name: "string",
    });
    
    type: github:EnterpriseIpAllowListEntry
    properties:
        enterpriseSlug: string
        ip: string
        isActive: false
        name: string
    

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

    EnterpriseSlug string
    The slug of the enterprise.
    Ip string
    An IP address or range of IP addresses in CIDR notation.
    IsActive bool
    Whether the entry is currently active. Default: true.
    Name string
    A descriptive name for the IP allow list entry.
    EnterpriseSlug string
    The slug of the enterprise.
    Ip string
    An IP address or range of IP addresses in CIDR notation.
    IsActive bool
    Whether the entry is currently active. Default: true.
    Name string
    A descriptive name for the IP allow list entry.
    enterpriseSlug String
    The slug of the enterprise.
    ip String
    An IP address or range of IP addresses in CIDR notation.
    isActive Boolean
    Whether the entry is currently active. Default: true.
    name String
    A descriptive name for the IP allow list entry.
    enterpriseSlug string
    The slug of the enterprise.
    ip string
    An IP address or range of IP addresses in CIDR notation.
    isActive boolean
    Whether the entry is currently active. Default: true.
    name string
    A descriptive name for the IP allow list entry.
    enterprise_slug str
    The slug of the enterprise.
    ip str
    An IP address or range of IP addresses in CIDR notation.
    is_active bool
    Whether the entry is currently active. Default: true.
    name str
    A descriptive name for the IP allow list entry.
    enterpriseSlug String
    The slug of the enterprise.
    ip String
    An IP address or range of IP addresses in CIDR notation.
    isActive Boolean
    Whether the entry is currently active. Default: true.
    name String
    A descriptive name for the IP allow list entry.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnterpriseIpAllowListEntry resource produces the following output properties:

    CreatedAt string
    Timestamp of when the entry was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Timestamp of when the entry was last updated.
    CreatedAt string
    Timestamp of when the entry was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Timestamp of when the entry was last updated.
    createdAt String
    Timestamp of when the entry was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Timestamp of when the entry was last updated.
    createdAt string
    Timestamp of when the entry was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    Timestamp of when the entry was last updated.
    created_at str
    Timestamp of when the entry was created.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    Timestamp of when the entry was last updated.
    createdAt String
    Timestamp of when the entry was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Timestamp of when the entry was last updated.

    Look up Existing EnterpriseIpAllowListEntry Resource

    Get an existing EnterpriseIpAllowListEntry 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?: EnterpriseIpAllowListEntryState, opts?: CustomResourceOptions): EnterpriseIpAllowListEntry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            enterprise_slug: Optional[str] = None,
            ip: Optional[str] = None,
            is_active: Optional[bool] = None,
            name: Optional[str] = None,
            updated_at: Optional[str] = None) -> EnterpriseIpAllowListEntry
    func GetEnterpriseIpAllowListEntry(ctx *Context, name string, id IDInput, state *EnterpriseIpAllowListEntryState, opts ...ResourceOption) (*EnterpriseIpAllowListEntry, error)
    public static EnterpriseIpAllowListEntry Get(string name, Input<string> id, EnterpriseIpAllowListEntryState? state, CustomResourceOptions? opts = null)
    public static EnterpriseIpAllowListEntry get(String name, Output<String> id, EnterpriseIpAllowListEntryState state, CustomResourceOptions options)
    resources:  _:    type: github:EnterpriseIpAllowListEntry    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.
    The following state arguments are supported:
    CreatedAt string
    Timestamp of when the entry was created.
    EnterpriseSlug string
    The slug of the enterprise.
    Ip string
    An IP address or range of IP addresses in CIDR notation.
    IsActive bool
    Whether the entry is currently active. Default: true.
    Name string
    A descriptive name for the IP allow list entry.
    UpdatedAt string
    Timestamp of when the entry was last updated.
    CreatedAt string
    Timestamp of when the entry was created.
    EnterpriseSlug string
    The slug of the enterprise.
    Ip string
    An IP address or range of IP addresses in CIDR notation.
    IsActive bool
    Whether the entry is currently active. Default: true.
    Name string
    A descriptive name for the IP allow list entry.
    UpdatedAt string
    Timestamp of when the entry was last updated.
    createdAt String
    Timestamp of when the entry was created.
    enterpriseSlug String
    The slug of the enterprise.
    ip String
    An IP address or range of IP addresses in CIDR notation.
    isActive Boolean
    Whether the entry is currently active. Default: true.
    name String
    A descriptive name for the IP allow list entry.
    updatedAt String
    Timestamp of when the entry was last updated.
    createdAt string
    Timestamp of when the entry was created.
    enterpriseSlug string
    The slug of the enterprise.
    ip string
    An IP address or range of IP addresses in CIDR notation.
    isActive boolean
    Whether the entry is currently active. Default: true.
    name string
    A descriptive name for the IP allow list entry.
    updatedAt string
    Timestamp of when the entry was last updated.
    created_at str
    Timestamp of when the entry was created.
    enterprise_slug str
    The slug of the enterprise.
    ip str
    An IP address or range of IP addresses in CIDR notation.
    is_active bool
    Whether the entry is currently active. Default: true.
    name str
    A descriptive name for the IP allow list entry.
    updated_at str
    Timestamp of when the entry was last updated.
    createdAt String
    Timestamp of when the entry was created.
    enterpriseSlug String
    The slug of the enterprise.
    ip String
    An IP address or range of IP addresses in CIDR notation.
    isActive Boolean
    Whether the entry is currently active. Default: true.
    name String
    A descriptive name for the IP allow list entry.
    updatedAt String
    Timestamp of when the entry was last updated.

    Import

    This resource can be imported using the ID of the IP allow list entry:

    $ pulumi import github:index/enterpriseIpAllowListEntry:EnterpriseIpAllowListEntry test IALE_kwHOC1234567890a
    

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

    Package Details

    Repository
    GitHub pulumi/pulumi-github
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the github Terraform Provider.
    github logo
    Viewing docs for GitHub v6.13.1
    published on Wednesday, Apr 29, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.