azure-native.network.getNspAccessRule
Explore with Pulumi AI
Gets the specified NSP access rule by name.
Uses Azure REST API version 2023-08-01-preview.
Other available API versions: 2021-02-01-preview, 2023-07-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the version guide for details.
Using getNspAccessRule
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 getNspAccessRule(args: GetNspAccessRuleArgs, opts?: InvokeOptions): Promise<GetNspAccessRuleResult>
function getNspAccessRuleOutput(args: GetNspAccessRuleOutputArgs, opts?: InvokeOptions): Output<GetNspAccessRuleResult>def get_nsp_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) -> GetNspAccessRuleResult
def get_nsp_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[GetNspAccessRuleResult]func LookupNspAccessRule(ctx *Context, args *LookupNspAccessRuleArgs, opts ...InvokeOption) (*LookupNspAccessRuleResult, error)
func LookupNspAccessRuleOutput(ctx *Context, args *LookupNspAccessRuleOutputArgs, opts ...InvokeOption) LookupNspAccessRuleResultOutput> Note: This function is named LookupNspAccessRule in the Go SDK.
public static class GetNspAccessRule 
{
    public static Task<GetNspAccessRuleResult> InvokeAsync(GetNspAccessRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetNspAccessRuleResult> Invoke(GetNspAccessRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNspAccessRuleResult> getNspAccessRule(GetNspAccessRuleArgs args, InvokeOptions options)
public static Output<GetNspAccessRuleResult> getNspAccessRule(GetNspAccessRuleArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:network:getNspAccessRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Access
Rule stringName  - The name of the NSP access rule.
 - Network
Security stringPerimeter Name  - The name of the network security perimeter.
 - Profile
Name string - The name of the NSP profile.
 - Resource
Group stringName  - The name of the resource group.
 
- Access
Rule stringName  - The name of the NSP access rule.
 - Network
Security stringPerimeter Name  - The name of the network security perimeter.
 - Profile
Name string - The name of the NSP profile.
 - Resource
Group stringName  - The name of the resource group.
 
- access
Rule StringName  - The name of the NSP access rule.
 - network
Security StringPerimeter Name  - The name of the network security perimeter.
 - profile
Name String - The name of the NSP profile.
 - resource
Group StringName  - The name of the resource group.
 
- access
Rule stringName  - The name of the NSP access rule.
 - network
Security stringPerimeter Name  - The name of the network security perimeter.
 - profile
Name string - The name of the NSP profile.
 - resource
Group stringName  - The name of the resource group.
 
- access_
rule_ strname  - The name of the NSP access rule.
 - network_
security_ strperimeter_ name  - The name of the network security perimeter.
 - profile_
name str - The name of the NSP profile.
 - resource_
group_ strname  - The name of the resource group.
 
- access
Rule StringName  - The name of the NSP access rule.
 - network
Security StringPerimeter Name  - The name of the network security perimeter.
 - profile
Name String - The name of the NSP profile.
 - resource
Group StringName  - The name of the resource group.
 
getNspAccessRule Result
The following output properties are available:
- Azure
Api stringVersion  - The Azure API version of the resource.
 - Id string
 - Resource ID.
 - Name string
 - Resource name.
 - Network
Security List<Pulumi.Perimeters Azure Native. Network. Outputs. Perimeter Based Access Rule Response>  - Rule specified by the perimeter id.
 - Provisioning
State string - The provisioning state of the scope assignment resource.
 - Type string
 - Resource type.
 - Address
Prefixes List<string> - Inbound address prefixes (IPv4/IPv6)
 - Direction string
 - Direction that specifies whether the access rules is inbound/outbound.
 - Email
Addresses List<string> - Outbound rules email address format.
 - Fully
Qualified List<string>Domain Names  - Outbound rules fully qualified domain name format.
 - Location string
 - Resource location.
 - Phone
Numbers List<string> - Outbound rules phone number format.
 - List<string>
 - Inbound rules service tag names.
 - Subscriptions
List<Pulumi.
Azure Native. Network. Outputs. Subscription Id Response>  - List of subscription ids
 - Dictionary<string, string>
 - Resource tags.
 
- Azure
Api stringVersion  - The Azure API version of the resource.
 - Id string
 - Resource ID.
 - Name string
 - Resource name.
 - Network
Security []PerimeterPerimeters Based Access Rule Response  - Rule specified by the perimeter id.
 - Provisioning
State string - The provisioning state of the scope assignment resource.
 - Type string
 - Resource type.
 - Address
Prefixes []string - Inbound address prefixes (IPv4/IPv6)
 - Direction string
 - Direction that specifies whether the access rules is inbound/outbound.
 - Email
Addresses []string - Outbound rules email address format.
 - Fully
Qualified []stringDomain Names  - Outbound rules fully qualified domain name format.
 - Location string
 - Resource location.
 - Phone
Numbers []string - Outbound rules phone number format.
 - []string
 - Inbound rules service tag names.
 - Subscriptions
[]Subscription
Id Response  - List of subscription ids
 - map[string]string
 - Resource tags.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - id String
 - Resource ID.
 - name String
 - Resource name.
 - network
Security List<PerimeterPerimeters Based Access Rule Response>  - Rule specified by the perimeter id.
 - provisioning
State String - The provisioning state of the scope assignment resource.
 - type String
 - Resource type.
 - address
Prefixes List<String> - Inbound address prefixes (IPv4/IPv6)
 - direction String
 - Direction that specifies whether the access rules is inbound/outbound.
 - email
Addresses List<String> - Outbound rules email address format.
 - fully
Qualified List<String>Domain Names  - Outbound rules fully qualified domain name format.
 - location String
 - Resource location.
 - phone
Numbers List<String> - Outbound rules phone number format.
 - List<String>
 - Inbound rules service tag names.
 - subscriptions
List<Subscription
Id Response>  - List of subscription ids
 - Map<String,String>
 - Resource tags.
 
- azure
Api stringVersion  - The Azure API version of the resource.
 - id string
 - Resource ID.
 - name string
 - Resource name.
 - network
Security PerimeterPerimeters Based Access Rule Response[]  - Rule specified by the perimeter id.
 - provisioning
State string - The provisioning state of the scope assignment resource.
 - type string
 - Resource type.
 - address
Prefixes string[] - Inbound address prefixes (IPv4/IPv6)
 - direction string
 - Direction that specifies whether the access rules is inbound/outbound.
 - email
Addresses string[] - Outbound rules email address format.
 - fully
Qualified string[]Domain Names  - Outbound rules fully qualified domain name format.
 - location string
 - Resource location.
 - phone
Numbers string[] - Outbound rules phone number format.
 - string[]
 - Inbound rules service tag names.
 - subscriptions
Subscription
Id Response[]  - List of subscription ids
 - {[key: string]: string}
 - Resource tags.
 
- azure_
api_ strversion  - The Azure API version of the resource.
 - id str
 - Resource ID.
 - name str
 - Resource name.
 - network_
security_ Sequence[Perimeterperimeters Based Access Rule Response]  - 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_ Sequence[str]domain_ names  - Outbound rules fully qualified domain name format.
 - location str
 - Resource location.
 - phone_
numbers Sequence[str] - Outbound rules phone number format.
 - Sequence[str]
 - Inbound rules service tag names.
 - subscriptions
Sequence[Subscription
Id Response]  - List of subscription ids
 - Mapping[str, str]
 - Resource tags.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - id String
 - Resource ID.
 - name String
 - Resource name.
 - network
Security List<Property Map>Perimeters  - Rule specified by the perimeter id.
 - provisioning
State String - The provisioning state of the scope assignment resource.
 - type String
 - Resource type.
 - address
Prefixes List<String> - Inbound address prefixes (IPv4/IPv6)
 - direction String
 - Direction that specifies whether the access rules is inbound/outbound.
 - email
Addresses List<String> - Outbound rules email address format.
 - fully
Qualified List<String>Domain Names  - Outbound rules fully qualified domain name format.
 - location String
 - Resource location.
 - phone
Numbers List<String> - Outbound rules phone number format.
 - List<String>
 - Inbound rules service tag names.
 - subscriptions List<Property Map>
 - List of subscription ids
 - Map<String>
 - Resource tags.
 
Supporting Types
PerimeterBasedAccessRuleResponse    
- Id string
 - NSP id in the ARM id format.
 - Location string
 - Location of the NSP supplied.
 - Perimeter
Guid string - Resource guid of the NSP supplied.
 
- Id string
 - NSP id in the ARM id format.
 - Location string
 - Location of the NSP supplied.
 - Perimeter
Guid string - Resource guid of the NSP supplied.
 
- id String
 - NSP id in the ARM id format.
 - location String
 - Location of the NSP supplied.
 - perimeter
Guid String - Resource guid of the NSP supplied.
 
- id string
 - NSP id in the ARM id format.
 - location string
 - Location of the NSP supplied.
 - perimeter
Guid string - Resource guid of the NSP supplied.
 
- id str
 - NSP id in the ARM id format.
 - location str
 - Location of the NSP supplied.
 - perimeter_
guid str - Resource guid of the NSP supplied.
 
- id String
 - NSP id in the ARM id format.
 - location String
 - Location of the NSP supplied.
 - perimeter
Guid 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