FlexibleServerFirewallRuleArgs

data class FlexibleServerFirewallRuleArgs(val endIpAddress: Output<String>? = null, val name: Output<String>? = null, val serverId: Output<String>? = null, val startIpAddress: Output<String>? = null) : ConvertibleToJava<FlexibleServerFirewallRuleArgs>

Manages a PostgreSQL Flexible Server Firewall Rule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.postgresql.FlexibleServer;
import com.pulumi.azure.postgresql.FlexibleServerArgs;
import com.pulumi.azure.postgresql.FlexibleServerFirewallRule;
import com.pulumi.azure.postgresql.FlexibleServerFirewallRuleArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleFlexibleServer = new FlexibleServer("exampleFlexibleServer", FlexibleServerArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.version("12")
.administratorLogin("psqladmin")
.administratorPassword("H@Sh1CoR3!")
.storageMb(32768)
.skuName("GP_Standard_D4s_v3")
.build());
var exampleFlexibleServerFirewallRule = new FlexibleServerFirewallRule("exampleFlexibleServerFirewallRule", FlexibleServerFirewallRuleArgs.builder()
.serverId(exampleFlexibleServer.id())
.startIpAddress("122.122.0.0")
.endIpAddress("122.122.0.0")
.build());
}
}

Import

PostgreSQL Flexible Server Firewall Rules can be imported using the resource id, e.g.

$ pulumi import azure:postgresql/flexibleServerFirewallRule:FlexibleServerFirewallRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DBforPostgreSQL/flexibleServers/flexibleServer1/firewallRules/firewallRule1

Constructors

Link copied to clipboard
fun FlexibleServerFirewallRuleArgs(endIpAddress: Output<String>? = null, name: Output<String>? = null, serverId: Output<String>? = null, startIpAddress: Output<String>? = null)

Functions

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

Properties

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

The End IP Address associated with this PostgreSQL Flexible Server Firewall Rule.

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

The name which should be used for this PostgreSQL Flexible Server Firewall Rule. Changing this forces a new PostgreSQL Flexible Server Firewall Rule to be created.

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

The ID of the PostgreSQL Flexible Server from which to create this PostgreSQL Flexible Server Firewall Rule. Changing this forces a new PostgreSQL Flexible Server Firewall Rule to be created.

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

The Start IP Address associated with this PostgreSQL Flexible Server Firewall Rule.