Class FirewallRule
Manages a Firewall Rule for a MariaDB Server
Example Usage (Single IP Address)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = new Azure.MariaDB.FirewallRule("example", new Azure.MariaDB.FirewallRuleArgs
{
EndIpAddress = "40.112.8.12",
ResourceGroupName = "test-rg",
ServerName = "test-server",
StartIpAddress = "40.112.8.12",
});
}
}
Example Usage (IP Range)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = new Azure.MariaDB.FirewallRule("example", new Azure.MariaDB.FirewallRuleArgs
{
EndIpAddress = "40.112.255.255",
ResourceGroupName = "test-rg",
ServerName = "test-server",
StartIpAddress = "40.112.0.0",
});
}
}
Inherited Members
Namespace: Pulumi.Azure.MariaDB
Assembly: Pulumi.Azure.dll
Syntax
public class FirewallRule : CustomResource
Constructors
View SourceFirewallRule(String, FirewallRuleArgs, CustomResourceOptions)
Create a FirewallRule resource with the given unique name, arguments, and options.
Declaration
public FirewallRule(string name, FirewallRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FirewallRuleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEndIpAddress
Specifies the End IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.
Declaration
public Output<string> EndIpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Specifies the name of the MariaDB Firewall Rule. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServerName
Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
Declaration
public Output<string> ServerName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StartIpAddress
Specifies the Start IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.
Declaration
public Output<string> StartIpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, FirewallRuleState, CustomResourceOptions)
Get an existing FirewallRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static FirewallRule Get(string name, Input<string> id, FirewallRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| FirewallRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| FirewallRule |