1. Packages
  2. Packages
  3. Civo Provider
  4. API Docs
  5. getVpcFirewall
Viewing docs for civo 1.3.1
published on Thursday, Aug 6, 2026 by civo
civo logo
Viewing docs for civo 1.3.1
published on Thursday, Aug 6, 2026 by civo

    Retrieve information about a firewall for use in other resources.

    This data source provides all of the firewall’s properties as configured on your Civo account.

    Firewalls may be looked up by id or name, and you can optionally pass region if you want to make a lookup for a specific firewall inside that region.

    Using getVpcFirewall

    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 getVpcFirewall(args: GetVpcFirewallArgs, opts?: InvokeOptions): Promise<GetVpcFirewallResult>
    function getVpcFirewallOutput(args: GetVpcFirewallOutputArgs, opts?: InvokeOptions): Output<GetVpcFirewallResult>
    def get_vpc_firewall(id: Optional[str] = None,
                         name: Optional[str] = None,
                         region: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetVpcFirewallResult
    def get_vpc_firewall_output(id: pulumi.Input[Optional[str]] = None,
                         name: pulumi.Input[Optional[str]] = None,
                         region: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetVpcFirewallResult]
    func LookupVpcFirewall(ctx *Context, args *LookupVpcFirewallArgs, opts ...InvokeOption) (*LookupVpcFirewallResult, error)
    func LookupVpcFirewallOutput(ctx *Context, args *LookupVpcFirewallOutputArgs, opts ...InvokeOption) LookupVpcFirewallResultOutput

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

    public static class GetVpcFirewall 
    {
        public static Task<GetVpcFirewallResult> InvokeAsync(GetVpcFirewallArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcFirewallResult> Invoke(GetVpcFirewallInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcFirewallResult> getVpcFirewall(GetVpcFirewallArgs args, InvokeOptions options)
    public static Output<GetVpcFirewallResult> getVpcFirewall(GetVpcFirewallArgs args, InvokeOptions options)
    
    fn::invoke:
      function: civo:index/getVpcFirewall:getVpcFirewall
      arguments:
        # arguments dictionary
    data "civo_get_vpc_firewall" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of this resource.
    Name string
    The name of the firewall
    Region string
    The region where the firewall is
    Id string
    The ID of this resource.
    Name string
    The name of the firewall
    Region string
    The region where the firewall is
    id string
    The ID of this resource.
    name string
    The name of the firewall
    region string
    The region where the firewall is
    id String
    The ID of this resource.
    name String
    The name of the firewall
    region String
    The region where the firewall is
    id string
    The ID of this resource.
    name string
    The name of the firewall
    region string
    The region where the firewall is
    id str
    The ID of this resource.
    name str
    The name of the firewall
    region str
    The region where the firewall is
    id String
    The ID of this resource.
    name String
    The name of the firewall
    region String
    The region where the firewall is

    getVpcFirewall Result

    The following output properties are available:

    NetworkId string
    The id of the associated network
    Id string
    The ID of this resource.
    Name string
    The name of the firewall
    Region string
    The region where the firewall is
    NetworkId string
    The id of the associated network
    Id string
    The ID of this resource.
    Name string
    The name of the firewall
    Region string
    The region where the firewall is
    network_id string
    The id of the associated network
    id string
    The ID of this resource.
    name string
    The name of the firewall
    region string
    The region where the firewall is
    networkId String
    The id of the associated network
    id String
    The ID of this resource.
    name String
    The name of the firewall
    region String
    The region where the firewall is
    networkId string
    The id of the associated network
    id string
    The ID of this resource.
    name string
    The name of the firewall
    region string
    The region where the firewall is
    network_id str
    The id of the associated network
    id str
    The ID of this resource.
    name str
    The name of the firewall
    region str
    The region where the firewall is
    networkId String
    The id of the associated network
    id String
    The ID of this resource.
    name String
    The name of the firewall
    region String
    The region where the firewall is

    Package Details

    Repository
    Civo civo/terraform-provider-civo
    License
    Notes
    This Pulumi package is based on the civo Terraform Provider.
    civo logo
    Viewing docs for civo 1.3.1
    published on Thursday, Aug 6, 2026 by civo

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial