1. Packages
  2. Packages
  3. Supabase Provider
  4. API Docs
  5. getNetworkBans
Viewing docs for supabase 1.9.0
published on Wednesday, Apr 8, 2026 by supabase
supabase logo
Viewing docs for supabase 1.9.0
published on Wednesday, Apr 8, 2026 by supabase

    Network bans data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as supabase from "@pulumi/supabase";
    
    const test = supabase.getNetworkBans({
        projectRef: "mayuaycdtijbctgqbycg",
    });
    
    import pulumi
    import pulumi_supabase as supabase
    
    test = supabase.get_network_bans(project_ref="mayuaycdtijbctgqbycg")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/supabase/supabase"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := supabase.GetNetworkBans(ctx, &supabase.GetNetworkBansArgs{
    			ProjectRef: "mayuaycdtijbctgqbycg",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Supabase = Pulumi.Supabase;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Supabase.GetNetworkBans.Invoke(new()
        {
            ProjectRef = "mayuaycdtijbctgqbycg",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.supabase.SupabaseFunctions;
    import com.pulumi.supabase.inputs.GetNetworkBansArgs;
    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 test = SupabaseFunctions.getNetworkBans(GetNetworkBansArgs.builder()
                .projectRef("mayuaycdtijbctgqbycg")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: supabase:getNetworkBans
          arguments:
            projectRef: mayuaycdtijbctgqbycg
    

    Using getNetworkBans

    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 getNetworkBans(args: GetNetworkBansArgs, opts?: InvokeOptions): Promise<GetNetworkBansResult>
    function getNetworkBansOutput(args: GetNetworkBansOutputArgs, opts?: InvokeOptions): Output<GetNetworkBansResult>
    def get_network_bans(project_ref: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetNetworkBansResult
    def get_network_bans_output(project_ref: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetNetworkBansResult]
    func GetNetworkBans(ctx *Context, args *GetNetworkBansArgs, opts ...InvokeOption) (*GetNetworkBansResult, error)
    func GetNetworkBansOutput(ctx *Context, args *GetNetworkBansOutputArgs, opts ...InvokeOption) GetNetworkBansResultOutput

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

    public static class GetNetworkBans 
    {
        public static Task<GetNetworkBansResult> InvokeAsync(GetNetworkBansArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkBansResult> Invoke(GetNetworkBansInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkBansResult> getNetworkBans(GetNetworkBansArgs args, InvokeOptions options)
    public static Output<GetNetworkBansResult> getNetworkBans(GetNetworkBansArgs args, InvokeOptions options)
    
    fn::invoke:
      function: supabase:index/getNetworkBans:getNetworkBans
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectRef string
    Project reference ID
    ProjectRef string
    Project reference ID
    projectRef String
    Project reference ID
    projectRef string
    Project reference ID
    project_ref str
    Project reference ID
    projectRef String
    Project reference ID

    getNetworkBans Result

    The following output properties are available:

    BannedIpv4Addresses List<string>
    List of banned IPv4 addresses
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectRef string
    Project reference ID
    BannedIpv4Addresses []string
    List of banned IPv4 addresses
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectRef string
    Project reference ID
    bannedIpv4Addresses List<String>
    List of banned IPv4 addresses
    id String
    The provider-assigned unique ID for this managed resource.
    projectRef String
    Project reference ID
    bannedIpv4Addresses string[]
    List of banned IPv4 addresses
    id string
    The provider-assigned unique ID for this managed resource.
    projectRef string
    Project reference ID
    banned_ipv4_addresses Sequence[str]
    List of banned IPv4 addresses
    id str
    The provider-assigned unique ID for this managed resource.
    project_ref str
    Project reference ID
    bannedIpv4Addresses List<String>
    List of banned IPv4 addresses
    id String
    The provider-assigned unique ID for this managed resource.
    projectRef String
    Project reference ID

    Package Details

    Repository
    supabase supabase/terraform-provider-supabase
    License
    Notes
    This Pulumi package is based on the supabase Terraform Provider.
    supabase logo
    Viewing docs for supabase 1.9.0
    published on Wednesday, Apr 8, 2026 by supabase
      Try Pulumi Cloud free. Your team will thank you.