azure-native.dbforpostgresql.SingleServerVirtualNetworkRule
Explore with Pulumi AI
A virtual network rule.
Uses Azure REST API version 2017-12-01.
Create SingleServerVirtualNetworkRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SingleServerVirtualNetworkRule(name: string, args: SingleServerVirtualNetworkRuleArgs, opts?: CustomResourceOptions);
@overload
def SingleServerVirtualNetworkRule(resource_name: str,
args: SingleServerVirtualNetworkRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SingleServerVirtualNetworkRule(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 NewSingleServerVirtualNetworkRule(ctx *Context, name string, args SingleServerVirtualNetworkRuleArgs, opts ...ResourceOption) (*SingleServerVirtualNetworkRule, error)
public SingleServerVirtualNetworkRule(string name, SingleServerVirtualNetworkRuleArgs args, CustomResourceOptions? opts = null)
public SingleServerVirtualNetworkRule(String name, SingleServerVirtualNetworkRuleArgs args)
public SingleServerVirtualNetworkRule(String name, SingleServerVirtualNetworkRuleArgs args, CustomResourceOptions options)
type: azure-native:dbforpostgresql:SingleServerVirtualNetworkRule
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. SingleServerVirtualNetworkRuleArgs - 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. SingleServerVirtualNetworkRuleArgs - 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. SingleServerVirtualNetworkRuleArgs - 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. SingleServerVirtualNetworkRuleArgs - 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. SingleServerVirtualNetworkRuleArgs - 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_nativeSingleServerVirtualNetworkRuleResource = new AzureNative.DBforPostgreSQL.SingleServerVirtualNetworkRule("azure-nativeSingleServerVirtualNetworkRuleResource", new()
{
ResourceGroupName = "string",
ServerName = "string",
VirtualNetworkSubnetId = "string",
IgnoreMissingVnetServiceEndpoint = false,
VirtualNetworkRuleName = "string",
});
example, err := dbforpostgresql.NewSingleServerVirtualNetworkRule(ctx, "azure-nativeSingleServerVirtualNetworkRuleResource", &dbforpostgresql.SingleServerVirtualNetworkRuleArgs{
ResourceGroupName: pulumi.String("string"),
ServerName: pulumi.String("string"),
VirtualNetworkSubnetId: pulumi.String("string"),
IgnoreMissingVnetServiceEndpoint: pulumi.Bool(false),
VirtualNetworkRuleName: pulumi.String("string"),
})
var azure_nativeSingleServerVirtualNetworkRuleResource = new SingleServerVirtualNetworkRule("azure-nativeSingleServerVirtualNetworkRuleResource", SingleServerVirtualNetworkRuleArgs.builder()
.resourceGroupName("string")
.serverName("string")
.virtualNetworkSubnetId("string")
.ignoreMissingVnetServiceEndpoint(false)
.virtualNetworkRuleName("string")
.build());
azure_native_single_server_virtual_network_rule_resource = azure_native.dbforpostgresql.SingleServerVirtualNetworkRule("azure-nativeSingleServerVirtualNetworkRuleResource",
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_nativeSingleServerVirtualNetworkRuleResource = new azure_native.dbforpostgresql.SingleServerVirtualNetworkRule("azure-nativeSingleServerVirtualNetworkRuleResource", {
resourceGroupName: "string",
serverName: "string",
virtualNetworkSubnetId: "string",
ignoreMissingVnetServiceEndpoint: false,
virtualNetworkRuleName: "string",
});
type: azure-native:dbforpostgresql:SingleServerVirtualNetworkRule
properties:
ignoreMissingVnetServiceEndpoint: false
resourceGroupName: string
serverName: string
virtualNetworkRuleName: string
virtualNetworkSubnetId: string
SingleServerVirtualNetworkRule 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 SingleServerVirtualNetworkRule 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 SingleServerVirtualNetworkRule resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- State string
- Virtual Network Rule State
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- State string
- Virtual Network Rule State
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- state String
- Virtual Network Rule State
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- state string
- Virtual Network Rule State
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- state str
- Virtual Network Rule State
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- state String
- Virtual Network Rule State
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:dbforpostgresql:SingleServerVirtualNetworkRule vnet-firewall-rule /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0