1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCisIpAddresses
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getCisIpAddresses

Explore with Pulumi AI

ibm logo
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

    Example Usage

    The following example retrieves information about IP addresses that IBM Cloud Internet Services uses for name servers.

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const ipAddresses = ibm.getCisIpAddresses({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    ip_addresses = ibm.get_cis_ip_addresses()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetCisIpAddresses(ctx, &ibm.GetCisIpAddressesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var ipAddresses = Ibm.GetCisIpAddresses.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetCisIpAddressesArgs;
    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 ipAddresses = IbmFunctions.getCisIpAddresses();
    
        }
    }
    
    variables:
      ipAddresses:
        fn::invoke:
          function: ibm:getCisIpAddresses
          arguments: {}
    

    Using getCisIpAddresses

    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 getCisIpAddresses(args: GetCisIpAddressesArgs, opts?: InvokeOptions): Promise<GetCisIpAddressesResult>
    function getCisIpAddressesOutput(args: GetCisIpAddressesOutputArgs, opts?: InvokeOptions): Output<GetCisIpAddressesResult>
    def get_cis_ip_addresses(id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCisIpAddressesResult
    def get_cis_ip_addresses_output(id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetCisIpAddressesResult]
    func GetCisIpAddresses(ctx *Context, args *GetCisIpAddressesArgs, opts ...InvokeOption) (*GetCisIpAddressesResult, error)
    func GetCisIpAddressesOutput(ctx *Context, args *GetCisIpAddressesOutputArgs, opts ...InvokeOption) GetCisIpAddressesResultOutput

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

    public static class GetCisIpAddresses 
    {
        public static Task<GetCisIpAddressesResult> InvokeAsync(GetCisIpAddressesArgs args, InvokeOptions? opts = null)
        public static Output<GetCisIpAddressesResult> Invoke(GetCisIpAddressesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCisIpAddressesResult> getCisIpAddresses(GetCisIpAddressesArgs args, InvokeOptions options)
    public static Output<GetCisIpAddressesResult> getCisIpAddresses(GetCisIpAddressesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCisIpAddresses:getCisIpAddresses
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getCisIpAddresses Result

    The following output properties are available:

    Id string
    Ipv4Cidrs List<string>
    (String) The IPv4 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    Ipv6Cidrs List<string>
    (String) The IPv6 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    Id string
    Ipv4Cidrs []string
    (String) The IPv4 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    Ipv6Cidrs []string
    (String) The IPv6 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    id String
    ipv4Cidrs List<String>
    (String) The IPv4 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    ipv6Cidrs List<String>
    (String) The IPv6 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    id string
    ipv4Cidrs string[]
    (String) The IPv4 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    ipv6Cidrs string[]
    (String) The IPv6 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    id str
    ipv4_cidrs Sequence[str]
    (String) The IPv4 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    ipv6_cidrs Sequence[str]
    (String) The IPv6 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    id String
    ipv4Cidrs List<String>
    (String) The IPv4 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.
    ipv6Cidrs List<String>
    (String) The IPv6 address ranges that the CIS proxy uses and that you can reference to configure and allowed IP addresses in firewalls, network ACLs, and security groups.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud