We recommend using Azure Native.
Manages a Network Security Perimeter Access Rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleNetworkSecurityPerimeter = new azure.network.NetworkSecurityPerimeter("example", {
name: "example",
resourceGroupName: example.name,
location: "West Europe",
});
const exampleNetworkSecurityPerimeterProfile = new azure.network.NetworkSecurityPerimeterProfile("example", {
name: "example",
networkSecurityPerimeterId: exampleNetworkSecurityPerimeter.id,
});
const exampleNetworkSecurityPerimeterAccessRule = new azure.network.NetworkSecurityPerimeterAccessRule("example", {
name: "example",
networkSecurityPerimeterProfileId: exampleNetworkSecurityPerimeterProfile.id,
direction: "Inbound",
addressPrefixes: ["8.8.8.8/32"],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_network_security_perimeter = azure.network.NetworkSecurityPerimeter("example",
name="example",
resource_group_name=example.name,
location="West Europe")
example_network_security_perimeter_profile = azure.network.NetworkSecurityPerimeterProfile("example",
name="example",
network_security_perimeter_id=example_network_security_perimeter.id)
example_network_security_perimeter_access_rule = azure.network.NetworkSecurityPerimeterAccessRule("example",
name="example",
network_security_perimeter_profile_id=example_network_security_perimeter_profile.id,
direction="Inbound",
address_prefixes=["8.8.8.8/32"])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleNetworkSecurityPerimeter, err := network.NewNetworkSecurityPerimeter(ctx, "example", &network.NetworkSecurityPerimeterArgs{
Name: pulumi.String("example"),
ResourceGroupName: example.Name,
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleNetworkSecurityPerimeterProfile, err := network.NewNetworkSecurityPerimeterProfile(ctx, "example", &network.NetworkSecurityPerimeterProfileArgs{
Name: pulumi.String("example"),
NetworkSecurityPerimeterId: exampleNetworkSecurityPerimeter.ID(),
})
if err != nil {
return err
}
_, err = network.NewNetworkSecurityPerimeterAccessRule(ctx, "example", &network.NetworkSecurityPerimeterAccessRuleArgs{
Name: pulumi.String("example"),
NetworkSecurityPerimeterProfileId: exampleNetworkSecurityPerimeterProfile.ID(),
Direction: pulumi.String("Inbound"),
AddressPrefixes: pulumi.StringArray{
pulumi.String("8.8.8.8/32"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleNetworkSecurityPerimeter = new Azure.Network.NetworkSecurityPerimeter("example", new()
{
Name = "example",
ResourceGroupName = example.Name,
Location = "West Europe",
});
var exampleNetworkSecurityPerimeterProfile = new Azure.Network.NetworkSecurityPerimeterProfile("example", new()
{
Name = "example",
NetworkSecurityPerimeterId = exampleNetworkSecurityPerimeter.Id,
});
var exampleNetworkSecurityPerimeterAccessRule = new Azure.Network.NetworkSecurityPerimeterAccessRule("example", new()
{
Name = "example",
NetworkSecurityPerimeterProfileId = exampleNetworkSecurityPerimeterProfile.Id,
Direction = "Inbound",
AddressPrefixes = new[]
{
"8.8.8.8/32",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.NetworkSecurityPerimeter;
import com.pulumi.azure.network.NetworkSecurityPerimeterArgs;
import com.pulumi.azure.network.NetworkSecurityPerimeterProfile;
import com.pulumi.azure.network.NetworkSecurityPerimeterProfileArgs;
import com.pulumi.azure.network.NetworkSecurityPerimeterAccessRule;
import com.pulumi.azure.network.NetworkSecurityPerimeterAccessRuleArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleNetworkSecurityPerimeter = new NetworkSecurityPerimeter("exampleNetworkSecurityPerimeter", NetworkSecurityPerimeterArgs.builder()
.name("example")
.resourceGroupName(example.name())
.location("West Europe")
.build());
var exampleNetworkSecurityPerimeterProfile = new NetworkSecurityPerimeterProfile("exampleNetworkSecurityPerimeterProfile", NetworkSecurityPerimeterProfileArgs.builder()
.name("example")
.networkSecurityPerimeterId(exampleNetworkSecurityPerimeter.id())
.build());
var exampleNetworkSecurityPerimeterAccessRule = new NetworkSecurityPerimeterAccessRule("exampleNetworkSecurityPerimeterAccessRule", NetworkSecurityPerimeterAccessRuleArgs.builder()
.name("example")
.networkSecurityPerimeterProfileId(exampleNetworkSecurityPerimeterProfile.id())
.direction("Inbound")
.addressPrefixes("8.8.8.8/32")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleNetworkSecurityPerimeter:
type: azure:network:NetworkSecurityPerimeter
name: example
properties:
name: example
resourceGroupName: ${example.name}
location: West Europe
exampleNetworkSecurityPerimeterProfile:
type: azure:network:NetworkSecurityPerimeterProfile
name: example
properties:
name: example
networkSecurityPerimeterId: ${exampleNetworkSecurityPerimeter.id}
exampleNetworkSecurityPerimeterAccessRule:
type: azure:network:NetworkSecurityPerimeterAccessRule
name: example
properties:
name: example
networkSecurityPerimeterProfileId: ${exampleNetworkSecurityPerimeterProfile.id}
direction: Inbound
addressPrefixes:
- 8.8.8.8/32
API Providers
This resource uses the following Azure API Providers:
Microsoft.Network- 2025-01-01
Create NetworkSecurityPerimeterAccessRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkSecurityPerimeterAccessRule(name: string, args: NetworkSecurityPerimeterAccessRuleArgs, opts?: CustomResourceOptions);@overload
def NetworkSecurityPerimeterAccessRule(resource_name: str,
args: NetworkSecurityPerimeterAccessRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkSecurityPerimeterAccessRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
direction: Optional[str] = None,
network_security_perimeter_profile_id: Optional[str] = None,
address_prefixes: Optional[Sequence[str]] = None,
fqdns: Optional[Sequence[str]] = None,
name: Optional[str] = None,
service_tags: Optional[Sequence[str]] = None,
subscription_ids: Optional[Sequence[str]] = None)func NewNetworkSecurityPerimeterAccessRule(ctx *Context, name string, args NetworkSecurityPerimeterAccessRuleArgs, opts ...ResourceOption) (*NetworkSecurityPerimeterAccessRule, error)public NetworkSecurityPerimeterAccessRule(string name, NetworkSecurityPerimeterAccessRuleArgs args, CustomResourceOptions? opts = null)
public NetworkSecurityPerimeterAccessRule(String name, NetworkSecurityPerimeterAccessRuleArgs args)
public NetworkSecurityPerimeterAccessRule(String name, NetworkSecurityPerimeterAccessRuleArgs args, CustomResourceOptions options)
type: azure:network:NetworkSecurityPerimeterAccessRule
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 NetworkSecurityPerimeterAccessRuleArgs
- 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 NetworkSecurityPerimeterAccessRuleArgs
- 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 NetworkSecurityPerimeterAccessRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkSecurityPerimeterAccessRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkSecurityPerimeterAccessRuleArgs
- 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 networkSecurityPerimeterAccessRuleResource = new Azure.Network.NetworkSecurityPerimeterAccessRule("networkSecurityPerimeterAccessRuleResource", new()
{
Direction = "string",
NetworkSecurityPerimeterProfileId = "string",
AddressPrefixes = new[]
{
"string",
},
Fqdns = new[]
{
"string",
},
Name = "string",
ServiceTags = new[]
{
"string",
},
SubscriptionIds = new[]
{
"string",
},
});
example, err := network.NewNetworkSecurityPerimeterAccessRule(ctx, "networkSecurityPerimeterAccessRuleResource", &network.NetworkSecurityPerimeterAccessRuleArgs{
Direction: pulumi.String("string"),
NetworkSecurityPerimeterProfileId: pulumi.String("string"),
AddressPrefixes: pulumi.StringArray{
pulumi.String("string"),
},
Fqdns: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
ServiceTags: pulumi.StringArray{
pulumi.String("string"),
},
SubscriptionIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var networkSecurityPerimeterAccessRuleResource = new NetworkSecurityPerimeterAccessRule("networkSecurityPerimeterAccessRuleResource", NetworkSecurityPerimeterAccessRuleArgs.builder()
.direction("string")
.networkSecurityPerimeterProfileId("string")
.addressPrefixes("string")
.fqdns("string")
.name("string")
.serviceTags("string")
.subscriptionIds("string")
.build());
network_security_perimeter_access_rule_resource = azure.network.NetworkSecurityPerimeterAccessRule("networkSecurityPerimeterAccessRuleResource",
direction="string",
network_security_perimeter_profile_id="string",
address_prefixes=["string"],
fqdns=["string"],
name="string",
service_tags=["string"],
subscription_ids=["string"])
const networkSecurityPerimeterAccessRuleResource = new azure.network.NetworkSecurityPerimeterAccessRule("networkSecurityPerimeterAccessRuleResource", {
direction: "string",
networkSecurityPerimeterProfileId: "string",
addressPrefixes: ["string"],
fqdns: ["string"],
name: "string",
serviceTags: ["string"],
subscriptionIds: ["string"],
});
type: azure:network:NetworkSecurityPerimeterAccessRule
properties:
addressPrefixes:
- string
direction: string
fqdns:
- string
name: string
networkSecurityPerimeterProfileId: string
serviceTags:
- string
subscriptionIds:
- string
NetworkSecurityPerimeterAccessRule 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 NetworkSecurityPerimeterAccessRule resource accepts the following input properties:
- Direction string
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - Network
Security stringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- Address
Prefixes List<string> - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - Fqdns List<string>
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - Name string
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- List<string>
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - Subscription
Ids List<string> - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- Direction string
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - Network
Security stringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- Address
Prefixes []string - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - Fqdns []string
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - Name string
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- []string
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - Subscription
Ids []string - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- direction String
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - network
Security StringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- address
Prefixes List<String> - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - fqdns List<String>
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - name String
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- List<String>
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - subscription
Ids List<String> - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- direction string
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - network
Security stringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- address
Prefixes string[] - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - fqdns string[]
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - name string
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- string[]
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - subscription
Ids string[] - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- direction str
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - network_
security_ strperimeter_ profile_ id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- address_
prefixes Sequence[str] - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - fqdns Sequence[str]
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - name str
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- Sequence[str]
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - subscription_
ids Sequence[str] - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- direction String
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - network
Security StringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- address
Prefixes List<String> - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - fqdns List<String>
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - name String
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- List<String>
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - subscription
Ids List<String> - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkSecurityPerimeterAccessRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NetworkSecurityPerimeterAccessRule Resource
Get an existing NetworkSecurityPerimeterAccessRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkSecurityPerimeterAccessRuleState, opts?: CustomResourceOptions): NetworkSecurityPerimeterAccessRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_prefixes: Optional[Sequence[str]] = None,
direction: Optional[str] = None,
fqdns: Optional[Sequence[str]] = None,
name: Optional[str] = None,
network_security_perimeter_profile_id: Optional[str] = None,
service_tags: Optional[Sequence[str]] = None,
subscription_ids: Optional[Sequence[str]] = None) -> NetworkSecurityPerimeterAccessRulefunc GetNetworkSecurityPerimeterAccessRule(ctx *Context, name string, id IDInput, state *NetworkSecurityPerimeterAccessRuleState, opts ...ResourceOption) (*NetworkSecurityPerimeterAccessRule, error)public static NetworkSecurityPerimeterAccessRule Get(string name, Input<string> id, NetworkSecurityPerimeterAccessRuleState? state, CustomResourceOptions? opts = null)public static NetworkSecurityPerimeterAccessRule get(String name, Output<String> id, NetworkSecurityPerimeterAccessRuleState state, CustomResourceOptions options)resources: _: type: azure:network:NetworkSecurityPerimeterAccessRule get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address
Prefixes List<string> - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - Direction string
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - Fqdns List<string>
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - Name string
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- Network
Security stringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- List<string>
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - Subscription
Ids List<string> - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- Address
Prefixes []string - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - Direction string
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - Fqdns []string
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - Name string
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- Network
Security stringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- []string
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - Subscription
Ids []string - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- address
Prefixes List<String> - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - direction String
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - fqdns List<String>
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - name String
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- network
Security StringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- List<String>
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - subscription
Ids List<String> - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- address
Prefixes string[] - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - direction string
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - fqdns string[]
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - name string
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- network
Security stringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- string[]
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - subscription
Ids string[] - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- address_
prefixes Sequence[str] - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - direction str
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - fqdns Sequence[str]
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - name str
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- network_
security_ strperimeter_ profile_ id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- Sequence[str]
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - subscription_
ids Sequence[str] - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
- address
Prefixes List<String> - Specifies a list of CIDRs. Can only be specified when direction is set to
Inbound. Conflicts withfqdns,service_tags,subscription_ids. - direction String
- The direction of the rule. Possible values are
InboundandOutbound. Changing this forces a new Network Security Perimeter Access Rule to be created. - fqdns List<String>
- Specifies a list of fully qualified domain names. Can only be specified when direction is set to
Outbound. Conflicts withaddress_prefixes,service_tags, andsubscription_ids. - name String
- The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created.
- network
Security StringPerimeter Profile Id - The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created.
- List<String>
- Specifies a list of service tags. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andsubscription_ids. - subscription
Ids List<String> - Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to
Inbound. Conflicts withaddress_prefixes,fqdns, andservice_tags.
Import
Network Security Perimeter Access Rules can be imported using the resource id, e.g.
$ pulumi import azure:network/networkSecurityPerimeterAccessRule:NetworkSecurityPerimeterAccessRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Network/networkSecurityPerimeters/example-nsp/profiles/defaultProfile/accessRules/example-accessrule
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
