1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. getNetworkSecurityPerimeterAccessRule
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.network.getNetworkSecurityPerimeterAccessRule

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Gets the specified NSP access rule by name.

Uses Azure REST API version 2024-06-01-preview.

Using getNetworkSecurityPerimeterAccessRule

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getNetworkSecurityPerimeterAccessRule(args: GetNetworkSecurityPerimeterAccessRuleArgs, opts?: InvokeOptions): Promise<GetNetworkSecurityPerimeterAccessRuleResult>
function getNetworkSecurityPerimeterAccessRuleOutput(args: GetNetworkSecurityPerimeterAccessRuleOutputArgs, opts?: InvokeOptions): Output<GetNetworkSecurityPerimeterAccessRuleResult>
Copy
def get_network_security_perimeter_access_rule(access_rule_name: Optional[str] = None,
                                               network_security_perimeter_name: Optional[str] = None,
                                               profile_name: Optional[str] = None,
                                               resource_group_name: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetNetworkSecurityPerimeterAccessRuleResult
def get_network_security_perimeter_access_rule_output(access_rule_name: Optional[pulumi.Input[str]] = None,
                                               network_security_perimeter_name: Optional[pulumi.Input[str]] = None,
                                               profile_name: Optional[pulumi.Input[str]] = None,
                                               resource_group_name: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetNetworkSecurityPerimeterAccessRuleResult]
Copy
func LookupNetworkSecurityPerimeterAccessRule(ctx *Context, args *LookupNetworkSecurityPerimeterAccessRuleArgs, opts ...InvokeOption) (*LookupNetworkSecurityPerimeterAccessRuleResult, error)
func LookupNetworkSecurityPerimeterAccessRuleOutput(ctx *Context, args *LookupNetworkSecurityPerimeterAccessRuleOutputArgs, opts ...InvokeOption) LookupNetworkSecurityPerimeterAccessRuleResultOutput
Copy

> Note: This function is named LookupNetworkSecurityPerimeterAccessRule in the Go SDK.

public static class GetNetworkSecurityPerimeterAccessRule 
{
    public static Task<GetNetworkSecurityPerimeterAccessRuleResult> InvokeAsync(GetNetworkSecurityPerimeterAccessRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkSecurityPerimeterAccessRuleResult> Invoke(GetNetworkSecurityPerimeterAccessRuleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworkSecurityPerimeterAccessRuleResult> getNetworkSecurityPerimeterAccessRule(GetNetworkSecurityPerimeterAccessRuleArgs args, InvokeOptions options)
public static Output<GetNetworkSecurityPerimeterAccessRuleResult> getNetworkSecurityPerimeterAccessRule(GetNetworkSecurityPerimeterAccessRuleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:network:getNetworkSecurityPerimeterAccessRule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccessRuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the NSP access rule.
NetworkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network security perimeter.
ProfileName
This property is required.
Changes to this property will trigger replacement.
string
The name of the NSP profile.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
AccessRuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the NSP access rule.
NetworkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network security perimeter.
ProfileName
This property is required.
Changes to this property will trigger replacement.
string
The name of the NSP profile.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
accessRuleName
This property is required.
Changes to this property will trigger replacement.
String
The name of the NSP access rule.
networkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network security perimeter.
profileName
This property is required.
Changes to this property will trigger replacement.
String
The name of the NSP profile.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
accessRuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the NSP access rule.
networkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network security perimeter.
profileName
This property is required.
Changes to this property will trigger replacement.
string
The name of the NSP profile.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
access_rule_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the NSP access rule.
network_security_perimeter_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the network security perimeter.
profile_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the NSP profile.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
accessRuleName
This property is required.
Changes to this property will trigger replacement.
String
The name of the NSP access rule.
networkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network security perimeter.
profileName
This property is required.
Changes to this property will trigger replacement.
String
The name of the NSP profile.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.

getNetworkSecurityPerimeterAccessRule Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
Resource ID.
Name string
Resource name.
NetworkSecurityPerimeters List<Pulumi.AzureNative.Network.Outputs.PerimeterBasedAccessRuleResponse>
Rule specified by the perimeter id.
ProvisioningState string
The provisioning state of the scope assignment resource.
Type string
Resource type.
AddressPrefixes List<string>
Inbound address prefixes (IPv4/IPv6)
Direction string
Direction that specifies whether the access rules is inbound/outbound.
EmailAddresses List<string>
Outbound rules email address format.
FullyQualifiedDomainNames List<string>
Outbound rules fully qualified domain name format.
Location string
Resource location.
PhoneNumbers List<string>
Outbound rules phone number format.
ServiceTags List<string>
Inbound rules service tag names.
Subscriptions List<Pulumi.AzureNative.Network.Outputs.SubscriptionIdResponse>
List of subscription ids
Tags Dictionary<string, string>
Resource tags.
AzureApiVersion string
The Azure API version of the resource.
Id string
Resource ID.
Name string
Resource name.
NetworkSecurityPerimeters []PerimeterBasedAccessRuleResponse
Rule specified by the perimeter id.
ProvisioningState string
The provisioning state of the scope assignment resource.
Type string
Resource type.
AddressPrefixes []string
Inbound address prefixes (IPv4/IPv6)
Direction string
Direction that specifies whether the access rules is inbound/outbound.
EmailAddresses []string
Outbound rules email address format.
FullyQualifiedDomainNames []string
Outbound rules fully qualified domain name format.
Location string
Resource location.
PhoneNumbers []string
Outbound rules phone number format.
ServiceTags []string
Inbound rules service tag names.
Subscriptions []SubscriptionIdResponse
List of subscription ids
Tags map[string]string
Resource tags.
azureApiVersion String
The Azure API version of the resource.
id String
Resource ID.
name String
Resource name.
networkSecurityPerimeters List<PerimeterBasedAccessRuleResponse>
Rule specified by the perimeter id.
provisioningState String
The provisioning state of the scope assignment resource.
type String
Resource type.
addressPrefixes List<String>
Inbound address prefixes (IPv4/IPv6)
direction String
Direction that specifies whether the access rules is inbound/outbound.
emailAddresses List<String>
Outbound rules email address format.
fullyQualifiedDomainNames List<String>
Outbound rules fully qualified domain name format.
location String
Resource location.
phoneNumbers List<String>
Outbound rules phone number format.
serviceTags List<String>
Inbound rules service tag names.
subscriptions List<SubscriptionIdResponse>
List of subscription ids
tags Map<String,String>
Resource tags.
azureApiVersion string
The Azure API version of the resource.
id string
Resource ID.
name string
Resource name.
networkSecurityPerimeters PerimeterBasedAccessRuleResponse[]
Rule specified by the perimeter id.
provisioningState string
The provisioning state of the scope assignment resource.
type string
Resource type.
addressPrefixes string[]
Inbound address prefixes (IPv4/IPv6)
direction string
Direction that specifies whether the access rules is inbound/outbound.
emailAddresses string[]
Outbound rules email address format.
fullyQualifiedDomainNames string[]
Outbound rules fully qualified domain name format.
location string
Resource location.
phoneNumbers string[]
Outbound rules phone number format.
serviceTags string[]
Inbound rules service tag names.
subscriptions SubscriptionIdResponse[]
List of subscription ids
tags {[key: string]: string}
Resource tags.
azure_api_version str
The Azure API version of the resource.
id str
Resource ID.
name str
Resource name.
network_security_perimeters Sequence[PerimeterBasedAccessRuleResponse]
Rule specified by the perimeter id.
provisioning_state str
The provisioning state of the scope assignment resource.
type str
Resource type.
address_prefixes Sequence[str]
Inbound address prefixes (IPv4/IPv6)
direction str
Direction that specifies whether the access rules is inbound/outbound.
email_addresses Sequence[str]
Outbound rules email address format.
fully_qualified_domain_names Sequence[str]
Outbound rules fully qualified domain name format.
location str
Resource location.
phone_numbers Sequence[str]
Outbound rules phone number format.
service_tags Sequence[str]
Inbound rules service tag names.
subscriptions Sequence[SubscriptionIdResponse]
List of subscription ids
tags Mapping[str, str]
Resource tags.
azureApiVersion String
The Azure API version of the resource.
id String
Resource ID.
name String
Resource name.
networkSecurityPerimeters List<Property Map>
Rule specified by the perimeter id.
provisioningState String
The provisioning state of the scope assignment resource.
type String
Resource type.
addressPrefixes List<String>
Inbound address prefixes (IPv4/IPv6)
direction String
Direction that specifies whether the access rules is inbound/outbound.
emailAddresses List<String>
Outbound rules email address format.
fullyQualifiedDomainNames List<String>
Outbound rules fully qualified domain name format.
location String
Resource location.
phoneNumbers List<String>
Outbound rules phone number format.
serviceTags List<String>
Inbound rules service tag names.
subscriptions List<Property Map>
List of subscription ids
tags Map<String>
Resource tags.

Supporting Types

PerimeterBasedAccessRuleResponse

Id This property is required. string
NSP id in the ARM id format.
Location This property is required. string
Location of the NSP supplied.
PerimeterGuid This property is required. string
Resource guid of the NSP supplied.
Id This property is required. string
NSP id in the ARM id format.
Location This property is required. string
Location of the NSP supplied.
PerimeterGuid This property is required. string
Resource guid of the NSP supplied.
id This property is required. String
NSP id in the ARM id format.
location This property is required. String
Location of the NSP supplied.
perimeterGuid This property is required. String
Resource guid of the NSP supplied.
id This property is required. string
NSP id in the ARM id format.
location This property is required. string
Location of the NSP supplied.
perimeterGuid This property is required. string
Resource guid of the NSP supplied.
id This property is required. str
NSP id in the ARM id format.
location This property is required. str
Location of the NSP supplied.
perimeter_guid This property is required. str
Resource guid of the NSP supplied.
id This property is required. String
NSP id in the ARM id format.
location This property is required. String
Location of the NSP supplied.
perimeterGuid This property is required. String
Resource guid of the NSP supplied.

SubscriptionIdResponse

Id string
Subscription id in the ARM id format.
Id string
Subscription id in the ARM id format.
id String
Subscription id in the ARM id format.
id string
Subscription id in the ARM id format.
id str
Subscription id in the ARM id format.
id String
Subscription id in the ARM id format.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi