azure-native-v2.dbformariadb.VirtualNetworkRule
Explore with Pulumi AI
A virtual network rule. Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 2018-06-01.
Other available API versions: 2018-06-01-preview.
Create VirtualNetworkRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualNetworkRule(name: string, args: VirtualNetworkRuleArgs, opts?: CustomResourceOptions);
@overload
def VirtualNetworkRule(resource_name: str,
args: VirtualNetworkRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualNetworkRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
virtual_network_subnet_id: Optional[str] = None,
ignore_missing_vnet_service_endpoint: Optional[bool] = None,
virtual_network_rule_name: Optional[str] = None)
func NewVirtualNetworkRule(ctx *Context, name string, args VirtualNetworkRuleArgs, opts ...ResourceOption) (*VirtualNetworkRule, error)
public VirtualNetworkRule(string name, VirtualNetworkRuleArgs args, CustomResourceOptions? opts = null)
public VirtualNetworkRule(String name, VirtualNetworkRuleArgs args)
public VirtualNetworkRule(String name, VirtualNetworkRuleArgs args, CustomResourceOptions options)
type: azure-native:dbformariadb:VirtualNetworkRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. VirtualNetworkRuleArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. VirtualNetworkRuleArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. VirtualNetworkRuleArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. VirtualNetworkRuleArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. VirtualNetworkRuleArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeVirtualNetworkRuleResource = new AzureNative.Dbformariadb.VirtualNetworkRule("azure-nativeVirtualNetworkRuleResource", new()
{
ResourceGroupName = "string",
ServerName = "string",
VirtualNetworkSubnetId = "string",
IgnoreMissingVnetServiceEndpoint = false,
VirtualNetworkRuleName = "string",
});
example, err := dbformariadb.NewVirtualNetworkRule(ctx, "azure-nativeVirtualNetworkRuleResource", &dbformariadb.VirtualNetworkRuleArgs{
ResourceGroupName: "string",
ServerName: "string",
VirtualNetworkSubnetId: "string",
IgnoreMissingVnetServiceEndpoint: false,
VirtualNetworkRuleName: "string",
})
var azure_nativeVirtualNetworkRuleResource = new VirtualNetworkRule("azure-nativeVirtualNetworkRuleResource", VirtualNetworkRuleArgs.builder()
.resourceGroupName("string")
.serverName("string")
.virtualNetworkSubnetId("string")
.ignoreMissingVnetServiceEndpoint(false)
.virtualNetworkRuleName("string")
.build());
azure_native_virtual_network_rule_resource = azure_native.dbformariadb.VirtualNetworkRule("azure-nativeVirtualNetworkRuleResource",
resource_group_name=string,
server_name=string,
virtual_network_subnet_id=string,
ignore_missing_vnet_service_endpoint=False,
virtual_network_rule_name=string)
const azure_nativeVirtualNetworkRuleResource = new azure_native.dbformariadb.VirtualNetworkRule("azure-nativeVirtualNetworkRuleResource", {
resourceGroupName: "string",
serverName: "string",
virtualNetworkSubnetId: "string",
ignoreMissingVnetServiceEndpoint: false,
virtualNetworkRuleName: "string",
});
type: azure-native:dbformariadb:VirtualNetworkRule
properties:
ignoreMissingVnetServiceEndpoint: false
resourceGroupName: string
serverName: string
virtualNetworkRuleName: string
virtualNetworkSubnetId: string
VirtualNetworkRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VirtualNetworkRule resource accepts the following input properties:
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- Virtual
Network Subnet Id This property is required. string - The ARM resource id of the virtual network subnet.
- Ignore
Missing boolVnet Service Endpoint - Create firewall rule before the virtual network has vnet service endpoint enabled.
- Virtual
Network Rule Name Changes to this property will trigger replacement.
- The name of the virtual network rule.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- Virtual
Network Subnet Id This property is required. string - The ARM resource id of the virtual network subnet.
- Ignore
Missing boolVnet Service Endpoint - Create firewall rule before the virtual network has vnet service endpoint enabled.
- Virtual
Network Rule Name Changes to this property will trigger replacement.
- The name of the virtual network rule.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- virtual
Network Subnet Id This property is required. String - The ARM resource id of the virtual network subnet.
- ignore
Missing BooleanVnet Service Endpoint - Create firewall rule before the virtual network has vnet service endpoint enabled.
- virtual
Network Rule Name Changes to this property will trigger replacement.
- The name of the virtual network rule.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- virtual
Network Subnet Id This property is required. string - The ARM resource id of the virtual network subnet.
- ignore
Missing booleanVnet Service Endpoint - Create firewall rule before the virtual network has vnet service endpoint enabled.
- virtual
Network Rule Name Changes to this property will trigger replacement.
- The name of the virtual network rule.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- server_
name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- virtual_
network_ subnet_ id This property is required. str - The ARM resource id of the virtual network subnet.
- ignore_
missing_ boolvnet_ service_ endpoint - Create firewall rule before the virtual network has vnet service endpoint enabled.
- virtual_
network_ rule_ name Changes to this property will trigger replacement.
- The name of the virtual network rule.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- server
Name This property is required. Changes to this property will trigger replacement.
- The name of the server.
- virtual
Network Subnet Id This property is required. String - The ARM resource id of the virtual network subnet.
- ignore
Missing BooleanVnet Service Endpoint - Create firewall rule before the virtual network has vnet service endpoint enabled.
- virtual
Network Rule Name Changes to this property will trigger replacement.
- The name of the virtual network rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualNetworkRule resource produces the following output properties:
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:dbformariadb:VirtualNetworkRule vnet-firewall-rule /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0