1. Packages
  2. Constellix Provider
  3. API Docs
  4. getGeoFilter
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

constellix.getGeoFilter

Explore with Pulumi AI

constellix logo
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

    Data source for Geofilters for A, AAAA, CNAME or ANAME records.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as constellix from "@pulumi/constellix";
    
    const firstgeofilter = constellix.getGeoFilter({
        name: "firstfilter",
    });
    
    import pulumi
    import pulumi_constellix as constellix
    
    firstgeofilter = constellix.get_geo_filter(name="firstfilter")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/constellix/constellix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := constellix.LookupGeoFilter(ctx, &constellix.LookupGeoFilterArgs{
    			Name: "firstfilter",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Constellix = Pulumi.Constellix;
    
    return await Deployment.RunAsync(() => 
    {
        var firstgeofilter = Constellix.GetGeoFilter.Invoke(new()
        {
            Name = "firstfilter",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.constellix.ConstellixFunctions;
    import com.pulumi.constellix.inputs.GetGeoFilterArgs;
    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 firstgeofilter = ConstellixFunctions.getGeoFilter(GetGeoFilterArgs.builder()
                .name("firstfilter")
                .build());
    
        }
    }
    
    variables:
      firstgeofilter:
        fn::invoke:
          function: constellix:getGeoFilter
          arguments:
            name: firstfilter
    

    Attribute Reference

    • geoip_continents - (Optional) Two digit Continents Code.
    • geoip_countries - (Optional)Two digit Countries Code.
    • geoip_regions - (Optional) Two digit country code followed by “/” followed by two digit region code.
    • asn - (Optional) Autonomous System Number (ASN). ASN code should be a number between 0 and 4294967295.
    • ipv4 - (Optional) IPV4 Address.
    • ipv6 - (Optional) IPV6 Address.
    • filter_rules_limit - (Optional) Default is 100. For more than 100 rules, parameter should be set explicitly for ADD and Update API calls. Value should be in mulitple of 100 like 200, 300 …upto the quota limit assigned to the account. Check quota details for IP Filter Rule Limit.

    Using getGeoFilter

    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 getGeoFilter(args: GetGeoFilterArgs, opts?: InvokeOptions): Promise<GetGeoFilterResult>
    function getGeoFilterOutput(args: GetGeoFilterOutputArgs, opts?: InvokeOptions): Output<GetGeoFilterResult>
    def get_geo_filter(asns: Optional[Sequence[float]] = None,
                       filterruleslimit: Optional[float] = None,
                       geoipcontinents: Optional[Sequence[str]] = None,
                       geoipcountries: Optional[Sequence[str]] = None,
                       geoipregions: Optional[Sequence[str]] = None,
                       id: Optional[str] = None,
                       ipv4s: Optional[Sequence[str]] = None,
                       ipv6s: Optional[Sequence[str]] = None,
                       name: Optional[str] = None,
                       regions: Optional[Mapping[str, str]] = None,
                       opts: Optional[InvokeOptions] = None) -> GetGeoFilterResult
    def get_geo_filter_output(asns: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                       filterruleslimit: Optional[pulumi.Input[float]] = None,
                       geoipcontinents: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       geoipcountries: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       geoipregions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       ipv4s: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       ipv6s: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       regions: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetGeoFilterResult]
    func LookupGeoFilter(ctx *Context, args *LookupGeoFilterArgs, opts ...InvokeOption) (*LookupGeoFilterResult, error)
    func LookupGeoFilterOutput(ctx *Context, args *LookupGeoFilterOutputArgs, opts ...InvokeOption) LookupGeoFilterResultOutput

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

    public static class GetGeoFilter 
    {
        public static Task<GetGeoFilterResult> InvokeAsync(GetGeoFilterArgs args, InvokeOptions? opts = null)
        public static Output<GetGeoFilterResult> Invoke(GetGeoFilterInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGeoFilterResult> getGeoFilter(GetGeoFilterArgs args, InvokeOptions options)
    public static Output<GetGeoFilterResult> getGeoFilter(GetGeoFilterArgs args, InvokeOptions options)
    
    fn::invoke:
      function: constellix:index/getGeoFilter:getGeoFilter
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Geo Filter name should be unique.
    Asns List<double>
    Filterruleslimit double
    Geoipcontinents List<string>
    Geoipcountries List<string>
    Geoipregions List<string>
    Id string
    Ipv4s List<string>
    Ipv6s List<string>
    Regions Dictionary<string, string>
    Name string
    Geo Filter name should be unique.
    Asns []float64
    Filterruleslimit float64
    Geoipcontinents []string
    Geoipcountries []string
    Geoipregions []string
    Id string
    Ipv4s []string
    Ipv6s []string
    Regions map[string]string
    name String
    Geo Filter name should be unique.
    asns List<Double>
    filterruleslimit Double
    geoipcontinents List<String>
    geoipcountries List<String>
    geoipregions List<String>
    id String
    ipv4s List<String>
    ipv6s List<String>
    regions Map<String,String>
    name string
    Geo Filter name should be unique.
    asns number[]
    filterruleslimit number
    geoipcontinents string[]
    geoipcountries string[]
    geoipregions string[]
    id string
    ipv4s string[]
    ipv6s string[]
    regions {[key: string]: string}
    name str
    Geo Filter name should be unique.
    asns Sequence[float]
    filterruleslimit float
    geoipcontinents Sequence[str]
    geoipcountries Sequence[str]
    geoipregions Sequence[str]
    id str
    ipv4s Sequence[str]
    ipv6s Sequence[str]
    regions Mapping[str, str]
    name String
    Geo Filter name should be unique.
    asns List<Number>
    filterruleslimit Number
    geoipcontinents List<String>
    geoipcountries List<String>
    geoipregions List<String>
    id String
    ipv4s List<String>
    ipv6s List<String>
    regions Map<String>

    getGeoFilter Result

    The following output properties are available:

    Asns List<double>
    Filterruleslimit double
    Geoipcontinents List<string>
    Geoipcountries List<string>
    Geoipregions List<string>
    Id string
    Ipv4s List<string>
    Ipv6s List<string>
    Name string
    Regions Dictionary<string, string>
    Asns []float64
    Filterruleslimit float64
    Geoipcontinents []string
    Geoipcountries []string
    Geoipregions []string
    Id string
    Ipv4s []string
    Ipv6s []string
    Name string
    Regions map[string]string
    asns List<Double>
    filterruleslimit Double
    geoipcontinents List<String>
    geoipcountries List<String>
    geoipregions List<String>
    id String
    ipv4s List<String>
    ipv6s List<String>
    name String
    regions Map<String,String>
    asns number[]
    filterruleslimit number
    geoipcontinents string[]
    geoipcountries string[]
    geoipregions string[]
    id string
    ipv4s string[]
    ipv6s string[]
    name string
    regions {[key: string]: string}
    asns Sequence[float]
    filterruleslimit float
    geoipcontinents Sequence[str]
    geoipcountries Sequence[str]
    geoipregions Sequence[str]
    id str
    ipv4s Sequence[str]
    ipv6s Sequence[str]
    name str
    regions Mapping[str, str]
    asns List<Number>
    filterruleslimit Number
    geoipcontinents List<String>
    geoipcountries List<String>
    geoipregions List<String>
    id String
    ipv4s List<String>
    ipv6s List<String>
    name String
    regions Map<String>

    Package Details

    Repository
    constellix constellix/terraform-provider-constellix
    License
    Notes
    This Pulumi package is based on the constellix Terraform Provider.
    constellix logo
    constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix