OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud
ovh.Ip.getFirewall
Explore with Pulumi AI
Use this data source to retrieve information about an IP firewall.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const myFirewall = ovh.Ip.getFirewall({
    ip: "XXXXXX",
    ipOnFirewall: "XXXXXX",
});
import pulumi
import pulumi_ovh as ovh
my_firewall = ovh.Ip.get_firewall(ip="XXXXXX",
    ip_on_firewall="XXXXXX")
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/ip"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ip.GetFirewall(ctx, &ip.GetFirewallArgs{
			Ip:           "XXXXXX",
			IpOnFirewall: "XXXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var myFirewall = Ovh.Ip.GetFirewall.Invoke(new()
    {
        Ip = "XXXXXX",
        IpOnFirewall = "XXXXXX",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Ip.IpFunctions;
import com.pulumi.ovh.Ip.inputs.GetFirewallArgs;
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 myFirewall = IpFunctions.getFirewall(GetFirewallArgs.builder()
            .ip("XXXXXX")
            .ipOnFirewall("XXXXXX")
            .build());
    }
}
variables:
  myFirewall:
    fn::invoke:
      function: ovh:Ip:getFirewall
      arguments:
        ip: XXXXXX
        ipOnFirewall: XXXXXX
Using getFirewall
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 getFirewall(args: GetFirewallArgs, opts?: InvokeOptions): Promise<GetFirewallResult>
function getFirewallOutput(args: GetFirewallOutputArgs, opts?: InvokeOptions): Output<GetFirewallResult>def get_firewall(ip: Optional[str] = None,
                 ip_on_firewall: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetFirewallResult
def get_firewall_output(ip: Optional[pulumi.Input[str]] = None,
                 ip_on_firewall: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetFirewallResult]func GetFirewall(ctx *Context, args *GetFirewallArgs, opts ...InvokeOption) (*GetFirewallResult, error)
func GetFirewallOutput(ctx *Context, args *GetFirewallOutputArgs, opts ...InvokeOption) GetFirewallResultOutput> Note: This function is named GetFirewall in the Go SDK.
public static class GetFirewall 
{
    public static Task<GetFirewallResult> InvokeAsync(GetFirewallArgs args, InvokeOptions? opts = null)
    public static Output<GetFirewallResult> Invoke(GetFirewallInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFirewallResult> getFirewall(GetFirewallArgs args, InvokeOptions options)
public static Output<GetFirewallResult> getFirewall(GetFirewallArgs args, InvokeOptions options)
fn::invoke:
  function: ovh:Ip/getFirewall:getFirewall
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ip string
 - The IP or the CIDR
 - Ip
On stringFirewall  - IPv4 address
 
- Ip string
 - The IP or the CIDR
 - Ip
On stringFirewall  - IPv4 address
 
- ip String
 - The IP or the CIDR
 - ip
On StringFirewall  - IPv4 address
 
- ip string
 - The IP or the CIDR
 - ip
On stringFirewall  - IPv4 address
 
- ip str
 - The IP or the CIDR
 - ip_
on_ strfirewall  - IPv4 address
 
- ip String
 - The IP or the CIDR
 - ip
On StringFirewall  - IPv4 address
 
getFirewall Result
The following output properties are available:
- Enabled bool
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ip string
 - The IP or the CIDR
 - Ip
On stringFirewall  - IPv4 address
enabled- Whether firewall is enabled
 - State string
 - Current state of your ip on firewall
 
- Enabled bool
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ip string
 - The IP or the CIDR
 - Ip
On stringFirewall  - IPv4 address
enabled- Whether firewall is enabled
 - State string
 - Current state of your ip on firewall
 
- enabled Boolean
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ip String
 - The IP or the CIDR
 - ip
On StringFirewall  - IPv4 address
enabled- Whether firewall is enabled
 - state String
 - Current state of your ip on firewall
 
- enabled boolean
 - id string
 - The provider-assigned unique ID for this managed resource.
 - ip string
 - The IP or the CIDR
 - ip
On stringFirewall  - IPv4 address
enabled- Whether firewall is enabled
 - state string
 - Current state of your ip on firewall
 
- enabled bool
 - id str
 - The provider-assigned unique ID for this managed resource.
 - ip str
 - The IP or the CIDR
 - ip_
on_ strfirewall  - IPv4 address
enabled- Whether firewall is enabled
 - state str
 - Current state of your ip on firewall
 
- enabled Boolean
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ip String
 - The IP or the CIDR
 - ip
On StringFirewall  - IPv4 address
enabled- Whether firewall is enabled
 - state String
 - Current state of your ip on firewall
 
Package Details
- Repository
 - ovh ovh/pulumi-ovh
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ovhTerraform Provider.