GitHub v6.3.2 published on Friday, Oct 11, 2024 by Pulumi
github.getOrganizationIpAllowList
Explore with Pulumi AI
Use this data source to retrieve information about the IP allow list of an organization. The allow list for IP addresses will block access to private resources via the web, API, and Git from any IP addresses that are not on the allow list.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const all = github.getOrganizationIpAllowList({});
import pulumi
import pulumi_github as github
all = github.get_organization_ip_allow_list()
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.GetOrganizationIpAllowList(ctx, map[string]interface{}{}, nil)
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 all = Github.GetOrganizationIpAllowList.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.GithubFunctions;
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) {
final var all = GithubFunctions.getOrganizationIpAllowList();
}
}
variables:
all:
fn::invoke:
Function: github:getOrganizationIpAllowList
Arguments: {}
Using getOrganizationIpAllowList
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 getOrganizationIpAllowList(opts?: InvokeOptions): Promise<GetOrganizationIpAllowListResult>
function getOrganizationIpAllowListOutput(opts?: InvokeOptions): Output<GetOrganizationIpAllowListResult>
def get_organization_ip_allow_list(opts: Optional[InvokeOptions] = None) -> GetOrganizationIpAllowListResult
def get_organization_ip_allow_list_output(opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationIpAllowListResult]
func GetOrganizationIpAllowList(ctx *Context, opts ...InvokeOption) (*GetOrganizationIpAllowListResult, error)
func GetOrganizationIpAllowListOutput(ctx *Context, opts ...InvokeOption) GetOrganizationIpAllowListResultOutput
> Note: This function is named GetOrganizationIpAllowList
in the Go SDK.
public static class GetOrganizationIpAllowList
{
public static Task<GetOrganizationIpAllowListResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetOrganizationIpAllowListResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetOrganizationIpAllowListResult> getOrganizationIpAllowList(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: github:index/getOrganizationIpAllowList:getOrganizationIpAllowList
arguments:
# arguments dictionary
getOrganizationIpAllowList Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Allow List<GetLists Organization Ip Allow List Ip Allow List> - An Array of allowed IP addresses.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Allow []GetLists Organization Ip Allow List Ip Allow List - An Array of allowed IP addresses.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Allow List<GetLists Organization Ip Allow List Ip Allow List> - An Array of allowed IP addresses.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Allow GetLists Organization Ip Allow List Ip Allow List[] - An Array of allowed IP addresses.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
allow_ Sequence[Getlists Organization Ip Allow List Ip Allow List] - An Array of allowed IP addresses.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Allow List<Property Map>Lists - An Array of allowed IP addresses.
Supporting Types
GetOrganizationIpAllowListIpAllowList
- Allow
List stringValue - A single IP address or range of IP addresses in CIDR notation.
- Created
At string - Identifies the date and time when the object was created.
- Id string
- The ID of the IP allow list entry.
- Is
Active bool - Whether the entry is currently active.
- Name string
- The name of the IP allow list entry.
- Updated
At string - Identifies the date and time when the object was last updated.
- Allow
List stringValue - A single IP address or range of IP addresses in CIDR notation.
- Created
At string - Identifies the date and time when the object was created.
- Id string
- The ID of the IP allow list entry.
- Is
Active bool - Whether the entry is currently active.
- Name string
- The name of the IP allow list entry.
- Updated
At string - Identifies the date and time when the object was last updated.
- allow
List StringValue - A single IP address or range of IP addresses in CIDR notation.
- created
At String - Identifies the date and time when the object was created.
- id String
- The ID of the IP allow list entry.
- is
Active Boolean - Whether the entry is currently active.
- name String
- The name of the IP allow list entry.
- updated
At String - Identifies the date and time when the object was last updated.
- allow
List stringValue - A single IP address or range of IP addresses in CIDR notation.
- created
At string - Identifies the date and time when the object was created.
- id string
- The ID of the IP allow list entry.
- is
Active boolean - Whether the entry is currently active.
- name string
- The name of the IP allow list entry.
- updated
At string - Identifies the date and time when the object was last updated.
- allow_
list_ strvalue - A single IP address or range of IP addresses in CIDR notation.
- created_
at str - Identifies the date and time when the object was created.
- id str
- The ID of the IP allow list entry.
- is_
active bool - Whether the entry is currently active.
- name str
- The name of the IP allow list entry.
- updated_
at str - Identifies the date and time when the object was last updated.
- allow
List StringValue - A single IP address or range of IP addresses in CIDR notation.
- created
At String - Identifies the date and time when the object was created.
- id String
- The ID of the IP allow list entry.
- is
Active Boolean - Whether the entry is currently active.
- name String
- The name of the IP allow list entry.
- updated
At String - Identifies the date and time when the object was last updated.
Package Details
- Repository
- GitHub pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
github
Terraform Provider.