Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this data source to retrieve information about an IP firewall.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/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 LookupFirewall(ctx *Context, args *LookupFirewallArgs, opts ...InvokeOption) (*LookupFirewallResult, error)
func LookupFirewallOutput(ctx *Context, args *LookupFirewallOutputArgs, opts ...InvokeOption) LookupFirewallResultOutput> Note: This function is named LookupFirewall 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
- 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
- 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
- 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
- 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
- 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
- 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.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
