This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi
azure-native.azurestackhci.getSecurityRule
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi
Gets the specified security rule. Azure REST API version: 2024-02-01-preview.
Using getSecurityRule
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 getSecurityRule(args: GetSecurityRuleArgs, opts?: InvokeOptions): Promise<GetSecurityRuleResult>
function getSecurityRuleOutput(args: GetSecurityRuleOutputArgs, opts?: InvokeOptions): Output<GetSecurityRuleResult>
def get_security_rule(network_security_group_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
security_rule_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityRuleResult
def get_security_rule_output(network_security_group_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
security_rule_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityRuleResult]
func LookupSecurityRule(ctx *Context, args *LookupSecurityRuleArgs, opts ...InvokeOption) (*LookupSecurityRuleResult, error)
func LookupSecurityRuleOutput(ctx *Context, args *LookupSecurityRuleOutputArgs, opts ...InvokeOption) LookupSecurityRuleResultOutput
> Note: This function is named LookupSecurityRule
in the Go SDK.
public static class GetSecurityRule
{
public static Task<GetSecurityRuleResult> InvokeAsync(GetSecurityRuleArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityRuleResult> Invoke(GetSecurityRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecurityRuleResult> getSecurityRule(GetSecurityRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:azurestackhci:getSecurityRule
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Security stringGroup Name - Name of the network security group
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Security
Rule stringName - Name of the security rule.
- Network
Security stringGroup Name - Name of the network security group
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Security
Rule stringName - Name of the security rule.
- network
Security StringGroup Name - Name of the network security group
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- security
Rule StringName - Name of the security rule.
- network
Security stringGroup Name - Name of the network security group
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- security
Rule stringName - Name of the security rule.
- network_
security_ strgroup_ name - Name of the network security group
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- security_
rule_ strname - Name of the security rule.
- network
Security StringGroup Name - Name of the network security group
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- security
Rule StringName - Name of the security rule.
getSecurityRule Result
The following output properties are available:
- Access string
- The network traffic is allowed or denied.
- Direction string
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Priority int
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- Protocol string
- Network protocol this rule applies to.
- Provisioning
State string - Provisioning state of the SR
- System
Data Pulumi.Azure Native. Azure Stack HCI. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Description string
- A description for this rule. Restricted to 140 chars.
- Destination
Address List<string>Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- Destination
Port List<string>Ranges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- Extended
Location Pulumi.Azure Native. Azure Stack HCI. Outputs. Extended Location Response - The extendedLocation of the resource.
- Source
Address List<string>Prefixes - The CIDR or source IP ranges.
- Source
Port List<string>Ranges - The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- Access string
- The network traffic is allowed or denied.
- Direction string
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Priority int
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- Protocol string
- Network protocol this rule applies to.
- Provisioning
State string - Provisioning state of the SR
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Description string
- A description for this rule. Restricted to 140 chars.
- Destination
Address []stringPrefixes - The destination address prefixes. CIDR or destination IP ranges.
- Destination
Port []stringRanges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- Extended
Location ExtendedLocation Response - The extendedLocation of the resource.
- Source
Address []stringPrefixes - The CIDR or source IP ranges.
- Source
Port []stringRanges - The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access String
- The network traffic is allowed or denied.
- direction String
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- priority Integer
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- protocol String
- Network protocol this rule applies to.
- provisioning
State String - Provisioning state of the SR
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description String
- A description for this rule. Restricted to 140 chars.
- destination
Address List<String>Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination
Port List<String>Ranges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extended
Location ExtendedLocation Response - The extendedLocation of the resource.
- source
Address List<String>Prefixes - The CIDR or source IP ranges.
- source
Port List<String>Ranges - The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access string
- The network traffic is allowed or denied.
- direction string
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- priority number
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- protocol string
- Network protocol this rule applies to.
- provisioning
State string - Provisioning state of the SR
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description string
- A description for this rule. Restricted to 140 chars.
- destination
Address string[]Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination
Port string[]Ranges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extended
Location ExtendedLocation Response - The extendedLocation of the resource.
- source
Address string[]Prefixes - The CIDR or source IP ranges.
- source
Port string[]Ranges - The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access str
- The network traffic is allowed or denied.
- direction str
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- priority int
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- protocol str
- Network protocol this rule applies to.
- provisioning_
state str - Provisioning state of the SR
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description str
- A description for this rule. Restricted to 140 chars.
- destination_
address_ Sequence[str]prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination_
port_ Sequence[str]ranges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extended_
location ExtendedLocation Response - The extendedLocation of the resource.
- source_
address_ Sequence[str]prefixes - The CIDR or source IP ranges.
- source_
port_ Sequence[str]ranges - The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access String
- The network traffic is allowed or denied.
- direction String
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- priority Number
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- protocol String
- Network protocol this rule applies to.
- provisioning
State String - Provisioning state of the SR
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description String
- A description for this rule. Restricted to 140 chars.
- destination
Address List<String>Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination
Port List<String>Ranges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extended
Location Property Map - The extendedLocation of the resource.
- source
Address List<String>Prefixes - The CIDR or source IP ranges.
- source
Port List<String>Ranges - The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
Supporting Types
ExtendedLocationResponse
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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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 v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi