azure-native.network.DefaultUserRule
Explore with Pulumi AI
Network security default user rule. API Version: 2021-02-01-preview.
Example Usage
Create a default user rule
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var defaultUserRule = new AzureNative.Network.DefaultUserRule("defaultUserRule", new()
{
ConfigurationName = "myTestSecurityConfig",
Flag = "AllowVnetInbound",
Kind = "Default",
NetworkManagerName = "testNetworkManager",
ResourceGroupName = "rg1",
RuleCollectionName = "testRuleCollection",
RuleName = "SampleDefaultUserRule",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewDefaultUserRule(ctx, "defaultUserRule", &network.DefaultUserRuleArgs{
ConfigurationName: pulumi.String("myTestSecurityConfig"),
Flag: pulumi.String("AllowVnetInbound"),
Kind: pulumi.String("Default"),
NetworkManagerName: pulumi.String("testNetworkManager"),
ResourceGroupName: pulumi.String("rg1"),
RuleCollectionName: pulumi.String("testRuleCollection"),
RuleName: pulumi.String("SampleDefaultUserRule"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.DefaultUserRule;
import com.pulumi.azurenative.network.DefaultUserRuleArgs;
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 defaultUserRule = new DefaultUserRule("defaultUserRule", DefaultUserRuleArgs.builder()
.configurationName("myTestSecurityConfig")
.flag("AllowVnetInbound")
.kind("Default")
.networkManagerName("testNetworkManager")
.resourceGroupName("rg1")
.ruleCollectionName("testRuleCollection")
.ruleName("SampleDefaultUserRule")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
default_user_rule = azure_native.network.DefaultUserRule("defaultUserRule",
configuration_name="myTestSecurityConfig",
flag="AllowVnetInbound",
kind="Default",
network_manager_name="testNetworkManager",
resource_group_name="rg1",
rule_collection_name="testRuleCollection",
rule_name="SampleDefaultUserRule")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const defaultUserRule = new azure_native.network.DefaultUserRule("defaultUserRule", {
configurationName: "myTestSecurityConfig",
flag: "AllowVnetInbound",
kind: "Default",
networkManagerName: "testNetworkManager",
resourceGroupName: "rg1",
ruleCollectionName: "testRuleCollection",
ruleName: "SampleDefaultUserRule",
});
resources:
defaultUserRule:
type: azure-native:network:DefaultUserRule
properties:
configurationName: myTestSecurityConfig
flag: AllowVnetInbound
kind: Default
networkManagerName: testNetworkManager
resourceGroupName: rg1
ruleCollectionName: testRuleCollection
ruleName: SampleDefaultUserRule
Create a user rule
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var defaultUserRule = new AzureNative.Network.DefaultUserRule("defaultUserRule", new()
{
ConfigurationName = "myTestSecurityConfig",
NetworkManagerName = "testNetworkManager",
ResourceGroupName = "rg1",
RuleCollectionName = "testRuleCollection",
RuleName = "SampleUserRule",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewDefaultUserRule(ctx, "defaultUserRule", &network.DefaultUserRuleArgs{
ConfigurationName: pulumi.String("myTestSecurityConfig"),
NetworkManagerName: pulumi.String("testNetworkManager"),
ResourceGroupName: pulumi.String("rg1"),
RuleCollectionName: pulumi.String("testRuleCollection"),
RuleName: pulumi.String("SampleUserRule"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.DefaultUserRule;
import com.pulumi.azurenative.network.DefaultUserRuleArgs;
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 defaultUserRule = new DefaultUserRule("defaultUserRule", DefaultUserRuleArgs.builder()
.configurationName("myTestSecurityConfig")
.networkManagerName("testNetworkManager")
.resourceGroupName("rg1")
.ruleCollectionName("testRuleCollection")
.ruleName("SampleUserRule")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
default_user_rule = azure_native.network.DefaultUserRule("defaultUserRule",
configuration_name="myTestSecurityConfig",
network_manager_name="testNetworkManager",
resource_group_name="rg1",
rule_collection_name="testRuleCollection",
rule_name="SampleUserRule")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const defaultUserRule = new azure_native.network.DefaultUserRule("defaultUserRule", {
configurationName: "myTestSecurityConfig",
networkManagerName: "testNetworkManager",
resourceGroupName: "rg1",
ruleCollectionName: "testRuleCollection",
ruleName: "SampleUserRule",
});
resources:
defaultUserRule:
type: azure-native:network:DefaultUserRule
properties:
configurationName: myTestSecurityConfig
networkManagerName: testNetworkManager
resourceGroupName: rg1
ruleCollectionName: testRuleCollection
ruleName: SampleUserRule
Create DefaultUserRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DefaultUserRule(name: string, args: DefaultUserRuleArgs, opts?: CustomResourceOptions);
@overload
def DefaultUserRule(resource_name: str,
args: DefaultUserRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DefaultUserRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
configuration_name: Optional[str] = None,
network_manager_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
rule_collection_name: Optional[str] = None,
flag: Optional[str] = None,
rule_name: Optional[str] = None)
func NewDefaultUserRule(ctx *Context, name string, args DefaultUserRuleArgs, opts ...ResourceOption) (*DefaultUserRule, error)
public DefaultUserRule(string name, DefaultUserRuleArgs args, CustomResourceOptions? opts = null)
public DefaultUserRule(String name, DefaultUserRuleArgs args)
public DefaultUserRule(String name, DefaultUserRuleArgs args, CustomResourceOptions options)
type: azure-native:network:DefaultUserRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DefaultUserRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DefaultUserRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DefaultUserRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultUserRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DefaultUserRuleArgs
- 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 defaultUserRuleResource = new AzureNative.Network.DefaultUserRule("defaultUserRuleResource", new()
{
ConfigurationName = "string",
Kind = "string",
NetworkManagerName = "string",
ResourceGroupName = "string",
RuleCollectionName = "string",
Flag = "string",
RuleName = "string",
});
example, err := network.NewDefaultUserRule(ctx, "defaultUserRuleResource", &network.DefaultUserRuleArgs{
ConfigurationName: "string",
Kind: "string",
NetworkManagerName: "string",
ResourceGroupName: "string",
RuleCollectionName: "string",
Flag: "string",
RuleName: "string",
})
var defaultUserRuleResource = new DefaultUserRule("defaultUserRuleResource", DefaultUserRuleArgs.builder()
.configurationName("string")
.kind("string")
.networkManagerName("string")
.resourceGroupName("string")
.ruleCollectionName("string")
.flag("string")
.ruleName("string")
.build());
default_user_rule_resource = azure_native.network.DefaultUserRule("defaultUserRuleResource",
configuration_name=string,
kind=string,
network_manager_name=string,
resource_group_name=string,
rule_collection_name=string,
flag=string,
rule_name=string)
const defaultUserRuleResource = new azure_native.network.DefaultUserRule("defaultUserRuleResource", {
configurationName: "string",
kind: "string",
networkManagerName: "string",
resourceGroupName: "string",
ruleCollectionName: "string",
flag: "string",
ruleName: "string",
});
type: azure-native:network:DefaultUserRule
properties:
configurationName: string
flag: string
kind: string
networkManagerName: string
resourceGroupName: string
ruleCollectionName: string
ruleName: string
DefaultUserRule 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 DefaultUserRule resource accepts the following input properties:
- Configuration
Name string - The name of the network manager security Configuration.
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group.
- Rule
Collection stringName - The name of the network manager security Configuration rule collection.
- Flag string
- Default rule flag.
- Rule
Name string - The name of the rule.
- Configuration
Name string - The name of the network manager security Configuration.
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group.
- Rule
Collection stringName - The name of the network manager security Configuration rule collection.
- Flag string
- Default rule flag.
- Rule
Name string - The name of the rule.
- configuration
Name String - The name of the network manager security Configuration.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group.
- rule
Collection StringName - The name of the network manager security Configuration rule collection.
- flag String
- Default rule flag.
- rule
Name String - The name of the rule.
- configuration
Name string - The name of the network manager security Configuration.
- network
Manager stringName - The name of the network manager.
- resource
Group stringName - The name of the resource group.
- rule
Collection stringName - The name of the network manager security Configuration rule collection.
- flag string
- Default rule flag.
- rule
Name string - The name of the rule.
- configuration_
name str - The name of the network manager security Configuration.
- network_
manager_ strname - The name of the network manager.
- resource_
group_ strname - The name of the resource group.
- rule_
collection_ strname - The name of the network manager security Configuration rule collection.
- flag str
- Default rule flag.
- rule_
name str - The name of the rule.
- configuration
Name String - The name of the network manager security Configuration.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group.
- rule
Collection StringName - The name of the network manager security Configuration rule collection.
- flag String
- Default rule flag.
- rule
Name String - The name of the rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the DefaultUserRule resource produces the following output properties:
- Description string
- A description for this rule. Restricted to 140 chars.
- Destination
Port List<string>Ranges - The destination port ranges.
- Destinations
List<Pulumi.
Azure Native. Network. Outputs. Address Prefix Item Response> - The destination address prefixes. CIDR or destination IP ranges.
- Direction string
- Indicates if the traffic matched against the rule in inbound or outbound.
- Display
Name string - A friendly name for the rule.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Protocol string
- Network protocol this rule applies to.
- Provisioning
State string - The provisioning state of the security configuration user rule resource.
- Source
Port List<string>Ranges - The source port ranges.
- Sources
List<Pulumi.
Azure Native. Network. Outputs. Address Prefix Item Response> - The CIDR or source IP ranges.
- System
Data Pulumi.Azure Native. Network. Outputs. System Data Response - The system metadata related to this resource.
- Type string
- Resource type.
- Description string
- A description for this rule. Restricted to 140 chars.
- Destination
Port []stringRanges - The destination port ranges.
- Destinations
[]Address
Prefix Item Response - The destination address prefixes. CIDR or destination IP ranges.
- Direction string
- Indicates if the traffic matched against the rule in inbound or outbound.
- Display
Name string - A friendly name for the rule.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Protocol string
- Network protocol this rule applies to.
- Provisioning
State string - The provisioning state of the security configuration user rule resource.
- Source
Port []stringRanges - The source port ranges.
- Sources
[]Address
Prefix Item Response - The CIDR or source IP ranges.
- System
Data SystemData Response - The system metadata related to this resource.
- Type string
- Resource type.
- description String
- A description for this rule. Restricted to 140 chars.
- destination
Port List<String>Ranges - The destination port ranges.
- destinations
List<Address
Prefix Item Response> - The destination address prefixes. CIDR or destination IP ranges.
- direction String
- Indicates if the traffic matched against the rule in inbound or outbound.
- display
Name String - A friendly name for the rule.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- protocol String
- Network protocol this rule applies to.
- provisioning
State String - The provisioning state of the security configuration user rule resource.
- source
Port List<String>Ranges - The source port ranges.
- sources
List<Address
Prefix Item Response> - The CIDR or source IP ranges.
- system
Data SystemData Response - The system metadata related to this resource.
- type String
- Resource type.
- description string
- A description for this rule. Restricted to 140 chars.
- destination
Port string[]Ranges - The destination port ranges.
- destinations
Address
Prefix Item Response[] - The destination address prefixes. CIDR or destination IP ranges.
- direction string
- Indicates if the traffic matched against the rule in inbound or outbound.
- display
Name string - A friendly name for the rule.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- protocol string
- Network protocol this rule applies to.
- provisioning
State string - The provisioning state of the security configuration user rule resource.
- source
Port string[]Ranges - The source port ranges.
- sources
Address
Prefix Item Response[] - The CIDR or source IP ranges.
- system
Data SystemData Response - The system metadata related to this resource.
- type string
- Resource type.
- description str
- A description for this rule. Restricted to 140 chars.
- destination_
port_ Sequence[str]ranges - The destination port ranges.
- destinations
Sequence[Address
Prefix Item Response] - The destination address prefixes. CIDR or destination IP ranges.
- direction str
- Indicates if the traffic matched against the rule in inbound or outbound.
- display_
name str - A friendly name for the rule.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- protocol str
- Network protocol this rule applies to.
- provisioning_
state str - The provisioning state of the security configuration user rule resource.
- source_
port_ Sequence[str]ranges - The source port ranges.
- sources
Sequence[Address
Prefix Item Response] - The CIDR or source IP ranges.
- system_
data SystemData Response - The system metadata related to this resource.
- type str
- Resource type.
- description String
- A description for this rule. Restricted to 140 chars.
- destination
Port List<String>Ranges - The destination port ranges.
- destinations List<Property Map>
- The destination address prefixes. CIDR or destination IP ranges.
- direction String
- Indicates if the traffic matched against the rule in inbound or outbound.
- display
Name String - A friendly name for the rule.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- protocol String
- Network protocol this rule applies to.
- provisioning
State String - The provisioning state of the security configuration user rule resource.
- source
Port List<String>Ranges - The source port ranges.
- sources List<Property Map>
- The CIDR or source IP ranges.
- system
Data Property Map - The system metadata related to this resource.
- type String
- Resource type.
Supporting Types
AddressPrefixItemResponse, AddressPrefixItemResponseArgs
- Address
Prefix string - Address prefix.
- Address
Prefix stringType - Address prefix type.
- Address
Prefix string - Address prefix.
- Address
Prefix stringType - Address prefix type.
- address
Prefix String - Address prefix.
- address
Prefix StringType - Address prefix type.
- address
Prefix string - Address prefix.
- address
Prefix stringType - Address prefix type.
- address_
prefix str - Address prefix.
- address_
prefix_ strtype - Address prefix type.
- address
Prefix String - Address prefix.
- address
Prefix StringType - Address prefix type.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The type of identity that last modified the resource.
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:DefaultUserRule SampleUserRule /subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityUserConfigurations/Policy1/ruleCollections/testRuleCollection/rules/SampleUserRule
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0