FirewallRuleArgs

data class FirewallRuleArgs(val firewallRuleName: Output<String>? = null, val fleetName: Output<String>? = null, val fleetspaceName: Output<String>? = null, val properties: Output<FirewallRulePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<FirewallRuleArgs>

A firewall rule. Uses Azure REST API version 2025-02-01-preview.

Example Usage

Create or Update Firewall Rule - Generated by Policy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var firewallRule = new AzureNative.DatabaseFleetManager.FirewallRule("firewallRule", new()
{
FirewallRuleName = "allow-10-0-0-0-24-to-10-1-0-0-24",
FleetName = "data-fleet-01",
FleetspaceName = "prod-environment",
Properties = new AzureNative.DatabaseFleetManager.Inputs.FirewallRulePropertiesArgs
{
EndIpAddress = "10.0.0.255",
StartIpAddress = "10.0.0.0",
},
ResourceGroupName = "rg-networking-operations",
});
});
package main
import (
databasefleetmanager "github.com/pulumi/pulumi-azure-native-sdk/databasefleetmanager/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasefleetmanager.NewFirewallRule(ctx, "firewallRule", &databasefleetmanager.FirewallRuleArgs{
FirewallRuleName: pulumi.String("allow-10-0-0-0-24-to-10-1-0-0-24"),
FleetName: pulumi.String("data-fleet-01"),
FleetspaceName: pulumi.String("prod-environment"),
Properties: &databasefleetmanager.FirewallRulePropertiesArgs{
EndIpAddress: pulumi.String("10.0.0.255"),
StartIpAddress: pulumi.String("10.0.0.0"),
},
ResourceGroupName: pulumi.String("rg-networking-operations"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.databasefleetmanager.FirewallRule;
import com.pulumi.azurenative.databasefleetmanager.FirewallRuleArgs;
import com.pulumi.azurenative.databasefleetmanager.inputs.FirewallRulePropertiesArgs;
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) {
var firewallRule = new FirewallRule("firewallRule", FirewallRuleArgs.builder()
.firewallRuleName("allow-10-0-0-0-24-to-10-1-0-0-24")
.fleetName("data-fleet-01")
.fleetspaceName("prod-environment")
.properties(FirewallRulePropertiesArgs.builder()
.endIpAddress("10.0.0.255")
.startIpAddress("10.0.0.0")
.build())
.resourceGroupName("rg-networking-operations")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:databasefleetmanager:FirewallRule allow-10-0-0-0-24-to-10-1-0-0-24 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseFleetManager/fleets/{fleetName}/fleetspaces/{fleetspaceName}/firewallRules/{firewallRuleName}

Constructors

Link copied to clipboard
constructor(firewallRuleName: Output<String>? = null, fleetName: Output<String>? = null, fleetspaceName: Output<String>? = null, properties: Output<FirewallRulePropertiesArgs>? = null, resourceGroupName: Output<String>? = null)

Properties

Link copied to clipboard
val firewallRuleName: Output<String>? = null

Name of the firewall rule.

Link copied to clipboard
val fleetName: Output<String>? = null

Name of the database fleet.

Link copied to clipboard
val fleetspaceName: Output<String>? = null

Name of the fleetspace.

Link copied to clipboard

A Firewall rule properties.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Functions

Link copied to clipboard
open override fun toJava(): FirewallRuleArgs