FirewallRule

class FirewallRule : KotlinCustomResource

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

Properties

Link copied to clipboard
val endIpAddress: Output<String>

Specifies the End IP Address associated with this Firewall Rule.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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>

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

Link copied to clipboard
val startIpAddress: Output<String>

Specifies the Start IP Address associated with this Firewall Rule.

Link copied to clipboard
val urn: Output<String>