FirewallRuleArgs

data class FirewallRuleArgs(val endIpAddress: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serverName: Output<String>? = null, val startIpAddress: Output<String>? = null) : ConvertibleToJava<FirewallRuleArgs>

Manages a Firewall Rule for a MariaDB Server

Example Usage

Single IP Address)

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.mariadb.FirewallRule;
import com.pulumi.azure.mariadb.FirewallRuleArgs;
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 example = new FirewallRule("example", FirewallRuleArgs.builder()
.endIpAddress("40.112.8.12")
.resourceGroupName("test-rg")
.serverName("test-server")
.startIpAddress("40.112.8.12")
.build());
}
}

IP Range)

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.mariadb.FirewallRule;
import com.pulumi.azure.mariadb.FirewallRuleArgs;
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 example = new FirewallRule("example", FirewallRuleArgs.builder()
.endIpAddress("40.112.255.255")
.resourceGroupName("test-rg")
.serverName("test-server")
.startIpAddress("40.112.0.0")
.build());
}
}

Import

MariaDB Firewall rules can be imported using the resource id, e.g.

$ pulumi import azure:mariadb/firewallRule:FirewallRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DBforMariaDB/servers/server1/firewallRules/rule1

Constructors

Link copied to clipboard
fun FirewallRuleArgs(endIpAddress: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, serverName: Output<String>? = null, startIpAddress: Output<String>? = null)

Functions

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

Properties

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

Specifies the End IP Address associated with this Firewall Rule.

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

Specifies the name of the MariaDB Firewall Rule. Changing this forces a new resource to be created.

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

The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.

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

Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.

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

Specifies the Start IP Address associated with this Firewall Rule.