azure-native.network.AdminRule
Deprecated:
Please use one of the variants: AdminRule, DefaultAdminRule.
Network base admin rule. API Version: 2021-02-01-preview.
Example Usage
Create a default admin rule
using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var adminRule = new AzureNative.Network.AdminRule("adminRule", new()
{
ConfigurationName = "myTestSecurityConfig",
Kind = "Default",
NetworkManagerName = "testNetworkManager",
ResourceGroupName = "rg1",
RuleCollectionName = "testRuleCollection",
RuleName = "SampleDefaultAdminRule",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewAdminRule(ctx, "adminRule", &network.AdminRuleArgs{
ConfigurationName: pulumi.String("myTestSecurityConfig"),
Kind: pulumi.String("Default"),
NetworkManagerName: pulumi.String("testNetworkManager"),
ResourceGroupName: pulumi.String("rg1"),
RuleCollectionName: pulumi.String("testRuleCollection"),
RuleName: pulumi.String("SampleDefaultAdminRule"),
})
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.AdminRule;
import com.pulumi.azurenative.network.AdminRuleArgs;
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 adminRule = new AdminRule("adminRule", AdminRuleArgs.builder()
.configurationName("myTestSecurityConfig")
.kind("Default")
.networkManagerName("testNetworkManager")
.resourceGroupName("rg1")
.ruleCollectionName("testRuleCollection")
.ruleName("SampleDefaultAdminRule")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
admin_rule = azure_native.network.AdminRule("adminRule",
configuration_name="myTestSecurityConfig",
kind="Default",
network_manager_name="testNetworkManager",
resource_group_name="rg1",
rule_collection_name="testRuleCollection",
rule_name="SampleDefaultAdminRule")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const adminRule = new azure_native.network.AdminRule("adminRule", {
configurationName: "myTestSecurityConfig",
kind: "Default",
networkManagerName: "testNetworkManager",
resourceGroupName: "rg1",
ruleCollectionName: "testRuleCollection",
ruleName: "SampleDefaultAdminRule",
});
resources:
adminRule:
type: azure-native:network:AdminRule
properties:
configurationName: myTestSecurityConfig
kind: Default
networkManagerName: testNetworkManager
resourceGroupName: rg1
ruleCollectionName: testRuleCollection
ruleName: SampleDefaultAdminRule
Create an admin rule
using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var adminRule = new AzureNative.Network.AdminRule("adminRule", new()
{
ConfigurationName = "myTestSecurityConfig",
Kind = "Custom",
NetworkManagerName = "testNetworkManager",
ResourceGroupName = "rg1",
RuleCollectionName = "testRuleCollection",
RuleName = "SampleAdminRule",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewAdminRule(ctx, "adminRule", &network.AdminRuleArgs{
ConfigurationName: pulumi.String("myTestSecurityConfig"),
Kind: pulumi.String("Custom"),
NetworkManagerName: pulumi.String("testNetworkManager"),
ResourceGroupName: pulumi.String("rg1"),
RuleCollectionName: pulumi.String("testRuleCollection"),
RuleName: pulumi.String("SampleAdminRule"),
})
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.AdminRule;
import com.pulumi.azurenative.network.AdminRuleArgs;
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 adminRule = new AdminRule("adminRule", AdminRuleArgs.builder()
.configurationName("myTestSecurityConfig")
.kind("Custom")
.networkManagerName("testNetworkManager")
.resourceGroupName("rg1")
.ruleCollectionName("testRuleCollection")
.ruleName("SampleAdminRule")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
admin_rule = azure_native.network.AdminRule("adminRule",
configuration_name="myTestSecurityConfig",
kind="Custom",
network_manager_name="testNetworkManager",
resource_group_name="rg1",
rule_collection_name="testRuleCollection",
rule_name="SampleAdminRule")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const adminRule = new azure_native.network.AdminRule("adminRule", {
configurationName: "myTestSecurityConfig",
kind: "Custom",
networkManagerName: "testNetworkManager",
resourceGroupName: "rg1",
ruleCollectionName: "testRuleCollection",
ruleName: "SampleAdminRule",
});
resources:
adminRule:
type: azure-native:network:AdminRule
properties:
configurationName: myTestSecurityConfig
kind: Custom
networkManagerName: testNetworkManager
resourceGroupName: rg1
ruleCollectionName: testRuleCollection
ruleName: SampleAdminRule
Create AdminRule Resource
new AdminRule(name: string, args: AdminRuleArgs, opts?: CustomResourceOptions);
@overload
def AdminRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
configuration_name: Optional[str] = None,
kind: Optional[Union[str, AdminRuleKind]] = None,
network_manager_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
rule_collection_name: Optional[str] = None,
rule_name: Optional[str] = None)
@overload
def AdminRule(resource_name: str,
args: AdminRuleArgs,
opts: Optional[ResourceOptions] = None)
func NewAdminRule(ctx *Context, name string, args AdminRuleArgs, opts ...ResourceOption) (*AdminRule, error)
public AdminRule(string name, AdminRuleArgs args, CustomResourceOptions? opts = null)
public AdminRule(String name, AdminRuleArgs args)
public AdminRule(String name, AdminRuleArgs args, CustomResourceOptions options)
type: azure-native:network:AdminRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AdminRuleArgs
- 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 AdminRuleArgs
- 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 AdminRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AdminRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AdminRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AdminRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AdminRule resource accepts the following input properties:
- Configuration
Name string The name of the network manager security Configuration.
- Kind
string | Pulumi.
Azure Native. Network. Admin Rule Kind Whether the rule is custom or default.
- 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.
- Rule
Name string The name of the rule.
- Configuration
Name string The name of the network manager security Configuration.
- Kind
string | Admin
Rule Kind Whether the rule is custom or default.
- 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.
- Rule
Name string The name of the rule.
- configuration
Name String The name of the network manager security Configuration.
- kind
String | Admin
Rule Kind Whether the rule is custom or default.
- 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.
- rule
Name String The name of the rule.
- configuration
Name string The name of the network manager security Configuration.
- kind
string | Admin
Rule Kind Whether the rule is custom or default.
- 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.
- rule
Name string The name of the rule.
- configuration_
name str The name of the network manager security Configuration.
- kind
str | Admin
Rule Kind Whether the rule is custom or default.
- 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.
- rule_
name str The name of the rule.
- configuration
Name String The name of the network manager security Configuration.
- kind String | "Custom" | "Default"
Whether the rule is custom or default.
- 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.
- rule
Name String The name of the rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the AdminRule resource produces the following output properties:
- 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.
- System
Data Pulumi.Azure Native. Network. Outputs. System Data Response The system metadata related to this resource.
- Type string
Resource type.
- 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.
- System
Data SystemData Response The system metadata related to this resource.
- Type string
Resource type.
- 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.
- system
Data SystemData Response The system metadata related to this resource.
- type String
Resource type.
- 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.
- system
Data SystemData Response The system metadata related to this resource.
- type string
Resource type.
- 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.
- system_
data SystemData Response The system metadata related to this resource.
- type str
Resource type.
- 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.
- system
Data Property Map The system metadata related to this resource.
- type String
Resource type.
Supporting Types
AdminRuleKind
- Custom
- Custom
- Default
- Default
- Admin
Rule Kind Custom - Custom
- Admin
Rule Kind Default - Default
- Custom
- Custom
- Default
- Default
- Custom
- Custom
- Default
- Default
- CUSTOM
- Custom
- DEFAULT
- Default
- "Custom"
- Custom
- "Default"
- Default
SystemDataResponse
- 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:AdminRule SampleAdminRule /subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0